Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712844 - sys-apps/apply-default-acl-0.4.2 : libadacl.c: error: PATH_MAX undeclared (first use in this function)
Summary: sys-apps/apply-default-acl-0.4.2 : libadacl.c: error: PATH_MAX undeclared (fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-16 13:25 UTC by Toralf Förster
Modified: 2020-05-27 00:40 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.91 KB, text/plain)
2020-03-16 13:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,170.93 KB, text/plain)
2020-03-16 13:25 UTC, Toralf Förster
Details
environment (environment,15.08 KB, text/plain)
2020-03-16 13:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.69 KB, application/x-bzip)
2020-03-16 13:25 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.81 KB, application/x-bzip)
2020-03-16 13:25 UTC, Toralf Förster
Details
sys-apps:apply-default-acl-0.4.2:20200316-052101.log (sys-apps:apply-default-acl-0.4.2:20200316-052101.log,10.35 KB, text/plain)
2020-03-16 13:25 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,7.70 KB, application/x-bzip)
2020-03-16 13:25 UTC, Toralf Förster
Details
0001-src-libadacl.c-include-limits.h-for-PATH_MAX.patch (0001-src-libadacl.c-include-limits.h-for-PATH_MAX.patch,1.67 KB, patch)
2020-03-16 14:50 UTC, Michael Orlitzky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-16 13:25:13 UTC
libadacl.c: In function safe_open:
libadacl.c:179:18: error: PATH_MAX undeclared (first use in this function)
  179 |     char abs_cwd[PATH_MAX];
      |                  ^~~~~~~~
libadacl.c:179:18: 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-20200311-204810

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] 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-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 16 Mar 2020 04:38:59 +0000
emerge -qpvO sys-apps/apply-default-acl
[ebuild  N    ] sys-apps/apply-default-acl-0.4.2
Comment 1 Toralf Förster gentoo-dev 2020-03-16 13:25:16 UTC
Created attachment 620346 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-16 13:25:18 UTC
Created attachment 620348 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-16 13:25:22 UTC
Created attachment 620350 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-16 13:25:25 UTC
Created attachment 620352 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-16 13:25:28 UTC
Created attachment 620354 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-16 13:25:31 UTC
Created attachment 620356 [details]
sys-apps:apply-default-acl-0.4.2:20200316-052101.log
Comment 7 Toralf Förster gentoo-dev 2020-03-16 13:25:33 UTC
Created attachment 620358 [details]
temp.tbz2
Comment 8 Michael Orlitzky gentoo-dev 2020-03-16 14:50:57 UTC
Created attachment 620700 [details, diff]
0001-src-libadacl.c-include-limits.h-for-PATH_MAX.patch

Does this patch fix the issue? If so, I'll make a new release.

PATH_MAX gets defined incidentally on glibc/linux by way of dirent.h, so I think I was just missing an #include <limits.h>.
Comment 9 Michael 'veremitz' Everitt 2020-03-16 14:53:38 UTC
(In reply to Michael Orlitzky from comment #8)
> Created attachment 620700 [details, diff] [details, diff]
> 0001-src-libadacl.c-include-limits.h-for-PATH_MAX.patch
> 
> Does this patch fix the issue? If so, I'll make a new release.
> 
> PATH_MAX gets defined incidentally on glibc/linux by way of dirent.h, so I
> think I was just missing an #include <limits.h>.

That sounds familiar to me. Seen elsewhere for the same issue.
Comment 10 Toralf Förster gentoo-dev 2020-03-16 16:12:37 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 11 Michael Orlitzky gentoo-dev 2020-03-16 17:10:04 UTC
This was probably a real bug. I was missing a header that just happens to get included by another header on linux/glibc.

I've already committed the fix (to include the header), which I believe is the right thing to do regardless. Can someone check if apply-default-acl builds against musl? If not, I'll make a new release. Otherwise I'll just wait and include the fix in the next version, whenever that is.
Comment 12 Larry the Git Cow gentoo-dev 2020-05-27 00:40:05 UTC
The bug has been closed via the following commit(s):

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

commit 6076bef915626b716b5b7f8e832d28b043745f4e
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2020-05-27 00:38:50 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2020-05-27 00:39:03 +0000

    sys-apps/apply-default-acl: new version 0.4.3.
    
    This new version includes a pkg-config file, and some upstream fixes
    for bugs that were reported on Gentoo.
    
    Closes: https://bugs.gentoo.org/712844
    Closes: https://bugs.gentoo.org/725536
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sys-apps/apply-default-acl/Manifest                |  1 +
 .../apply-default-acl-0.4.3.ebuild                 | 26 ++++++++++++++++++++++
 2 files changed, 27 insertions(+)