Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mtree for openSUSE:Factory checked in at 2021-02-19 23:46:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mtree (Old) and /work/SRC/openSUSE:Factory/.mtree.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mtree" Fri Feb 19 23:46:08 2021 rev:9 rq:873859 version:1.0.4 Changes: -------- --- /work/SRC/openSUSE:Factory/mtree/mtree.changes 2020-09-06 21:39:06.237738977 +0200 +++ /work/SRC/openSUSE:Factory/.mtree.new.28504/mtree.changes 2021-02-19 23:46:35.539441452 +0100 @@ -1,0 +2,6 @@ +Fri Feb 19 17:26:27 UTC 2021 - Archie Cobbs <archie.co...@gmail.com> + +- Added mtree-stat-mtime.patch + + Fixes build issue with struct stat "st_mtimespec" field + +------------------------------------------------------------------- New: ---- mtree-stat-mtime.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mtree.spec ++++++ --- /var/tmp/diff_new_pack.rVtQOx/_old 2021-02-19 23:46:36.067441969 +0100 +++ /var/tmp/diff_new_pack.rVtQOx/_new 2021-02-19 23:46:36.071441973 +0100 @@ -1,7 +1,7 @@ # # spec file for package mtree # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2010 Archie L. Cobbs. # # All modifications and additions to the file contributed by third parties @@ -25,6 +25,7 @@ Group: Productivity/File utilities URL: https://github.com/archiecobbs/mtree-port Source: https://github.com/archiecobbs/mtree-port/archive/%{version}.tar.gz +Patch0: %{name}-stat-mtime.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: libopenssl-devel @@ -42,6 +43,7 @@ %prep %setup -q -n mtree-port-%{version} +%autopatch -p1 %build ./autogen.sh ++++++ mtree-stat-mtime.patch ++++++ diff -ur mtree-port-1.0.4.orig/compare.c mtree-port-1.0.4/compare.c --- mtree-port-1.0.4.orig/compare.c 2017-12-07 22:59:27.000000000 +0000 +++ mtree-port-1.0.4/compare.c 2021-02-19 17:21:50.697952470 +0000 @@ -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_mtim.tv_sec) || + (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_mtim.tv_sec)); if (uflag) { tv[0].tv_sec = s->st_mtimespec.tv_sec; tv[0].tv_usec = s->st_mtimespec.tv_nsec / 1000; diff -ur mtree-port-1.0.4.orig/create.c mtree-port-1.0.4/create.c --- mtree-port-1.0.4.orig/create.c 2017-12-07 22:59:27.000000000 +0000 +++ mtree-port-1.0.4/create.c 2021-02-19 16:58:58.554128154 +0000 @@ -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_mtim.tv_sec, + 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))