Bug 24495 - fails to build on platforms without PATH_MAX (like hurd)
Summary: fails to build on platforms without PATH_MAX (like hurd)
Status: RESOLVED FIXED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 03:34 UTC by Michael Biebl
Modified: 2009-10-15 13:59 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Avoid unconditional use of PATH_MAX (599 bytes, patch)
2009-10-13 03:34 UTC, Michael Biebl
Details | Splinter Review
updated patch (1.40 KB, patch)
2009-10-15 05:47 UTC, Michael Biebl
Details | Splinter Review

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.