Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 715568

Summary: sys-fs/jfsutils-1.1.15-r1 : fssubs.c: error: _PATH_MNTTAB undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: polynomial-c
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/28317
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-fs:jfsutils-1.1.15:20200331-032828.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-31 07:08:40 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I../include    -O2 -pipe -march=native -c fssubs.c
fssubs.c: In function Is_Device_Type_JFS:
fssubs.c:224:32: error: _PATH_MNTTAB undeclared (first use in this function)
  224 |  if ((FS_Info_File = setmntent(_PATH_MNTTAB, r)) == NULL) {
      |                                ^~~~~~~~~~~~
fssubs.c:224:32: note: each undeclared identifier is reported only once for each function it appears in

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-20200328-201618

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Mar 31 01:38:59 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO sys-fs/jfsutils
[ebuild  N    ] sys-fs/jfsutils-1.1.15  USE="-static"
Comment 1 Toralf Förster gentoo-dev 2020-03-31 07:08:44 UTC
Created attachment 627768 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-31 07:08:48 UTC
Created attachment 627770 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-31 07:08:52 UTC
Created attachment 627772 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-31 07:08:55 UTC
Created attachment 627774 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-31 07:08:58 UTC
Created attachment 627776 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-31 07:09:01 UTC
Created attachment 627778 [details]
sys-fs:jfsutils-1.1.15:20200331-032828.log
Comment 7 Toralf Förster gentoo-dev 2020-03-31 07:09:04 UTC
Created attachment 627780 [details]
temp.tbz2
Comment 9 Agostino Sarubbo gentoo-dev 2022-02-09 07:04:56 UTC
tinderbox_musl has reproduced this issue with version 1.1.15-r1 - Updating summary.
Comment 10 Larry the Git Cow gentoo-dev 2022-11-18 02:20:22 UTC
The bug has been closed via the following commit(s):

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

commit 5e7ab79918a995d18bb4b61fc3404ca05e20fda3
Author:     Ian Jordan <immoloism@gmail.com>
AuthorDate: 2022-11-17 23:20:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-18 02:18:03 +0000

    sys-fs/jfsutils: musl patch
    
    Patch from Alpine Linux to fix jfsutils not working on Musl systems.
    
    This has been tested on both Glibc and Musl systems to work.
    
    Orginal Alpine commit - https://git.alpinelinux.org/aports/commit/main/jfsutils/musl-fix-includes.patch?id=d9768c312ddc047df6c2c9b1674b2ab37ddf4e2a
    
    Closes: https://bugs.gentoo.org/715568
    Signed-off-by: Ian Jordan <immoloism@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/28317
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/jfsutils-1.1.15-musl-fix-includes.patch  | 23 +++++++++
 sys-fs/jfsutils/jfsutils-1.1.15-r2.ebuild          | 55 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)