After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747400 - Fix build on OpenBSD
Fix build on OpenBSD
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: general
3.16.x
Other OpenBSD
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-04-06 09:24 UTC by Antoine Jacoutot
Modified: 2015-05-12 22:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
allow building on OpenBSD (1.04 KB, patch)
2015-04-06 09:24 UTC, Antoine Jacoutot
accepted-commit_now Details | Review

Description Antoine Jacoutot 2015-04-06 09:24:56 UTC
Created attachment 301003 [details] [review]
allow building on OpenBSD

Hi.

Trivial diff that allows me to build gnome-builder on OpenBSD.
Would it be alright if I pushed this?
Thanks.
Comment 1 Christian Hergert 2015-04-06 18:30:24 UTC
Review of attachment 301003 [details] [review]:

LGTM, thanks!
Comment 2 Antoine Jacoutot 2015-04-06 19:58:47 UTC
Awesome, thanks Christian.
It's in: 42a3d2a4ca6793d1ff8dd97914999921268c2667
Comment 3 Christian Hergert 2015-05-11 21:49:35 UTC
We did a bunch of build cleanup in the last week or two, and I'd love to know if things are still working on OpenBSD.

Any chance you can give it a shot?
Comment 4 Antoine Jacoutot 2015-05-12 07:24:36 UTC
(In reply to Christian Hergert from comment #3)
> We did a bunch of build cleanup in the last week or two, and I'd love to
> know if things are still working on OpenBSD.
> 
> Any chance you can give it a shot?

Hi Christian.

I just built gnome-builder HEAD as of an hour ago on OpenBSD.
The only issue I ran into is the unconditional passing of '-lrt':
warning: could not find a rt library
Link error: rt not found!

librt does not exist on OpenBSD and is not needed, we don't need it to get sem_*, sched_* and friends.
If you could add a configure check for it, then gnome-builder would build out-of-the-box.
Thanks :-)
Comment 5 Christian Hergert 2015-05-12 17:39:01 UTC
I simplified things to use atomics if we don't have rdtscp (since ensuring that sched_getcpu() is fast is difficult across all platforms anyway).

Additionally, commit 0b04fe6d8302179659970850d4e46e39118144ae does a AC_CHECK_FUNCS() to determine the location of shm_open(), allowing us to avoid -lrt.
Comment 6 Antoine Jacoutot 2015-05-12 22:27:58 UTC
(In reply to Christian Hergert from comment #5)
> I simplified things to use atomics if we don't have rdtscp (since ensuring
> that sched_getcpu() is fast is difficult across all platforms anyway).
> 
> Additionally, commit 0b04fe6d8302179659970850d4e46e39118144ae does a
> AC_CHECK_FUNCS() to determine the location of shm_open(), allowing us to
> avoid -lrt.

That's just perfect. Thanks Christian :-)