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

Bug 713962

Summary: app-misc/cdargs-1.35-r2 : cdargs.cc: error: PATH_MAX was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: shell-tools
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/33323
https://bugs.gentoo.org/show_bug.cgi?id=919982
Whiteboard: Missing limits.h?
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
app-misc:cdargs-1.35-r2:20200322-052407.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-22 12:41:45 UTC
      |                      ^~~~
cdargs.cc: In function char* get_cwd_as_charp():
cdargs.cc:930:14: error: PATH_MAX was not declared in this scope
  930 |     char buf[PATH_MAX];
      |              ^~~~~~~~
cdargs.cc:931:27: error: buf was not declared in this scope

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

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

  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.41.1 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar 22 04:39:13 UTC 2020
/var/db/repos/musl	Sun Mar 22 03:12:57 UTC 2020

emerge -qpvO app-misc/cdargs
[ebuild  N    ] app-misc/cdargs-1.35-r2  USE="-emacs"
Comment 1 Toralf Förster gentoo-dev 2020-03-22 12:41:47 UTC
Created attachment 624312 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-22 12:41:50 UTC
Created attachment 624314 [details]
app-misc:cdargs-1.35-r2:20200322-052407.log
Comment 3 Toralf Förster gentoo-dev 2020-03-22 12:41:53 UTC
Created attachment 624316 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-22 12:41:56 UTC
Created attachment 624318 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-22 12:41:59 UTC
Created attachment 624320 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-22 12:42:02 UTC
Created attachment 624322 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-22 12:42:05 UTC
Created attachment 624324 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-24 21:10:16 UTC
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.
Comment 9 Larry the Git Cow gentoo-dev 2023-12-15 03:25:34 UTC
The bug has been closed via the following commit(s):

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

commit 7ea943b229eaf30b5e065bd5450a46cf313c99ed
Author:     Pascal Jäger <pascal.jaeger@leimstift.de>
AuthorDate: 2023-10-14 07:14:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-15 03:19:45 +0000

    app-misc/cdargs: vbump to 2.1
    
    EAPI bump
    Build system changed to meson
    
    Closes: https://bugs.gentoo.org/713962
    
    Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
    Closes: https://github.com/gentoo/gentoo/pull/33323
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/cdargs/Manifest                    |  1 +
 app-misc/cdargs/cdargs-2.1.ebuild           | 65 +++++++++++++++++++++++++++++
 app-misc/cdargs/files/cdargs-2.1-musl.patch | 17 ++++++++
 app-misc/cdargs/metadata.xml                |  3 ++
 4 files changed, 86 insertions(+)