Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775962 - sys-apps/mtree-1.0.4 - compare.c: error: struct stat has no member named st_mtimespec
Summary: sys-apps/mtree-1.0.4 - compare.c: error: struct stat has no member named st_m...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard: Fixed in a fork
Keywords: PMASKED
Depends on:
Blocks: glibc-2.33
  Show dependency tree
 
Reported: 2021-03-14 11:11 UTC by Toralf Förster
Modified: 2021-11-28 21:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.05 KB, text/plain)
2021-03-14 11:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,371.29 KB, text/plain)
2021-03-14 11:11 UTC, Toralf Förster
Details
environment (environment,61.37 KB, text/plain)
2021-03-14 11:11 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.47 KB, application/x-bzip)
2021-03-14 11:11 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.21 KB, application/x-bzip)
2021-03-14 11:11 UTC, Toralf Förster
Details
sys-apps:mtree-1.0.4:20210314-110112.log (sys-apps:mtree-1.0.4:20210314-110112.log,6.40 KB, text/plain)
2021-03-14 11:11 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,17.88 KB, application/x-bzip)
2021-03-14 11:11 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-03-14 11:11:12 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -g -O3 -pipe -Wall -Waggregate-return -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-strings -Wshadow -Wstrict-prototypes -Wcast-qual -O2 -pipe -march=native -fno-diagnostics-color  -c -o compare.o compare.c
compare.c: In function ‘compare’:
compare.c:186:54: error: ‘struct stat’ has no member named ‘st_mtimespec’
  186 |              ((s->st_mtimespec.tv_sec != p->fts_statp->st_mtimespec.tv_sec) ||
      |                                                      ^~
compare.c:187:54: error: ‘struct stat’ has no member named ‘st_mtimespec’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20210305-202144

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 14 10:36:19 UTC 2021

emerge -qpvO sys-apps/mtree
[ebuild  N    ] sys-apps/mtree-1.0.4
Comment 1 Toralf Förster gentoo-dev 2021-03-14 11:11:14 UTC
Created attachment 691341 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-14 11:11:15 UTC
Created attachment 691344 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-14 11:11:17 UTC
Created attachment 691347 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-14 11:11:18 UTC
Created attachment 691350 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-14 11:11:19 UTC
Created attachment 691353 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-14 11:11:20 UTC
Created attachment 691356 [details]
sys-apps:mtree-1.0.4:20210314-110112.log
Comment 7 Toralf Förster gentoo-dev 2021-03-14 11:11:21 UTC
Created attachment 691359 [details]
temp.tar.bz2
Comment 8 Jan Psota 2021-04-15 11:15:12 UTC
Of course it's related to glibc-2.33. On 2.32 it compiles - I've just checked.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-04 01:17:38 UTC
There's a fork/variant by the same author, instead based on NetBSD. There's a commit which fixes this issue there: https://github.com/archiecobbs/nmtree/commit/6ee37b996829fb81f3c9894becd53bd9079f619e.

Do we want to switch forks, or try backport it, or what?
Comment 10 Larry the Git Cow gentoo-dev 2021-10-25 13:28:18 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a64d48a07aa55f3a4afa84b570a5bfce5a203750

commit a64d48a07aa55f3a4afa84b570a5bfce5a203750
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-25 13:23:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-25 13:27:01 +0000

    profiles: last-rite sys-apps/mtree
    
    Bug: https://bugs.gentoo.org/716058
    Bug: https://bugs.gentoo.org/775962
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2021-11-28 21:48:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91bc9fc4979192a270f1727ec86d7040f379887b

commit 91bc9fc4979192a270f1727ec86d7040f379887b
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2021-11-28 21:43:30 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2021-11-28 21:43:30 +0000

    sys-apps/mtree: treeclean
    
    Closes: https://bugs.gentoo.org/716058
    Closes: https://bugs.gentoo.org/775962
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 profiles/package.mask             |  6 ------
 sys-apps/mtree/Manifest           |  1 -
 sys-apps/mtree/metadata.xml       | 11 -----------
 sys-apps/mtree/mtree-1.0.4.ebuild | 30 ------------------------------
 4 files changed, 48 deletions(-)