From 27f67648ffc807234d534fa085e061678bb6068c Mon Sep 17 00:00:00 2001 From: Abdul Rehman <7r3nzy@gmail.com> Date: Sat, 3 Dec 2022 11:50:18 +0500 Subject: [PATCH] mtree: fix for glibc-2.36 --- srcpkgs/mtree/patches/1-stat.patch | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/mtree/patches/1-stat.patch diff --git a/srcpkgs/mtree/patches/1-stat.patch b/srcpkgs/mtree/patches/1-stat.patch new file mode 100644 index 000000000000..0818184831ab --- /dev/null +++ b/srcpkgs/mtree/patches/1-stat.patch @@ -0,0 +1,32 @@ +--- a/create.c 2017-12-08 03:59:27.000000000 +0500 ++++ b/create.c 11:42:30.353325117 +0500 +@@ -213,8 +213,8 @@ + (intmax_t)p->fts_statp->st_size); + if (keys & F_TIME) + output(indent, &offset, "time=%ld.%09ld", +- (long)p->fts_statp->st_mtimespec.tv_sec, +- p->fts_statp->st_mtimespec.tv_nsec); ++ (long)p->fts_statp->st_mtime, ++ p->fts_statp->st_mtim.tv_nsec); + if (keys & F_CKSUM && S_ISREG(p->fts_statp->st_mode)) { + if ((fd = open(p->fts_accpath, O_RDONLY, 0)) < 0 || + crc(fd, &val, &len)) +--- a/compare.c 2022-12-03 11:41:16.489318329 +0500 ++++ b/compare.c 2022-12-03 11:41:23.540318977 +0500 +@@ -183,13 +183,13 @@ + * Catches nano-second differences, but doesn't display them. + */ + if ((s->flags & F_TIME) && +- ((s->st_mtimespec.tv_sec != p->fts_statp->st_mtimespec.tv_sec) || +- (s->st_mtimespec.tv_nsec != p->fts_statp->st_mtimespec.tv_nsec))) { ++ ((s->st_mtimespec.tv_sec != p->fts_statp->st_mtime) || ++ (s->st_mtimespec.tv_nsec != p->fts_statp->st_mtim.tv_nsec))) { + LABEL; + (void)printf("%smodification time expected %.24s ", + tab, ctime(&s->st_mtimespec.tv_sec)); + (void)printf("found %.24s", +- ctime(&p->fts_statp->st_mtimespec.tv_sec)); ++ ctime(&p->fts_statp->st_mtime)); + if (uflag) { + tv[0].tv_sec = s->st_mtimespec.tv_sec; + tv[0].tv_usec = s->st_mtimespec.tv_nsec / 1000;