Bug 73821 - [patch] Fail to build polkit on FreeBSD
Summary: [patch] Fail to build polkit on FreeBSD
Status: RESOLVED MOVED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: libpolkit (show other bugs)
Version: unspecified
Hardware: Other FreeBSD
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 07:54 UTC by Ting-Wei Lan
Modified: 2018-08-20 21:35 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Fix build problem on FreeBSD (4.29 KB, text/plain)
2014-01-20 07:54 UTC, Ting-Wei Lan
Details
Correct the patch to fix the build problem (4.30 KB, patch)
2014-01-27 16:36 UTC, Ting-Wei Lan
Details | Splinter Review

Description Ting-Wei Lan 2014-01-20 07:54:03 UTC
Created attachment 92426 [details]
Fix build problem on FreeBSD

There are various problems prevent polkit from working on FreeBSD.

 1. FreeBSD does not have fdatasync().
 2. setnetgrent() on FreeBSD does not have return value.
 3. FreeBSD does not have SIGPOLL.
 4. mocklibc cannot be built on FreeBSD.
Comment 1 Allison Lortie (desrt) 2014-01-23 06:52:29 UTC
(In reply to comment #0)
> Created attachment 92426 [details]

+#ifdef HAVE_SETNETGRENT

I think you meant HAVE_SETNETGRENT_RETURN here?
Comment 2 Ting-Wei Lan 2014-01-27 16:36:00 UTC
Created attachment 92867 [details] [review]
Correct the patch to fix the build problem

Sorry for the typo. I upload the correct patch now.
Comment 3 Colin Walters 2014-02-19 00:26:13 UTC
I don't much care for "--disable-test" as a build option name.  What's the conflict?  Can we auto-detect whether the platform can support the tests?

Nevertheless I'll push this for now.  I only made minor tweaks for wording.

In the future, split up patches that each do one thing are preferable.
Comment 5 Colin Walters 2014-02-19 00:27:00 UTC
Leaving the bug open for followup.
Comment 6 Allison Lortie (desrt) 2014-02-19 01:34:52 UTC
mocklibc won't build due to a number of issues:

 - the return type of the mocked functions setnetgrent() and setgrent() are not the same as the headers define them to be on FreeBSD.

 - we are missing fgetgrent() and fgetpwent()

All attempts to track down information about mocklibc and FreeBSD pretty much point to people talking about polkit build failures...
Comment 7 Kamil Rytarowski 2015-06-07 14:50:03 UTC
fgetpwent(3) and fgetgrent(3) are missing on NetBSD as well.
Comment 9 GitLab Migration User 2018-08-20 21:35:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/polkit/polkit/issues/28.


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.