Bug 24495

Summary: fails to build on platforms without PATH_MAX (like hurd)
Product: PolicyKit Reporter: Michael Biebl <mbiebl>
Component: daemonAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact: David Zeuthen (not reading bugmail) <zeuthen>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550800
Whiteboard:
i915 platform: i915 features:
Attachments: Avoid unconditional use of PATH_MAX
updated patch

Description Michael Biebl 2009-10-13 03:34:37 UTC
Created attachment 30340 [details] [review]
Avoid unconditional use of PATH_MAX

policykit-1 currently FTBFS on hurd-i386 because of unconditional use of
PATH_MAX, which hurd-i386 doesn't define since it doesn't have such
arbitrary limitation.  The attached patch fixes it by just using
glibc's get_current_dir_name() extension when available.

The attached patch is by Samuel Thibault <sthibault@debian.org>
Comment 1 Michael Biebl 2009-10-15 05:47:54 UTC
Created attachment 30447 [details] [review]
updated patch

Original patch was incomplete. Here is a fixed one.
Comment 2 David Zeuthen (not reading bugmail) 2009-10-15 13:59:12 UTC
Committed. Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.