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 788989 - Use subdir-objects with Autotools
Use subdir-objects with Autotools
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-10-14 14:45 UTC by Emmanuele Bassi (:ebassi)
Modified: 2017-10-24 13:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Use subdir-objects with Autotools (2.80 KB, patch)
2017-10-14 14:46 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review

Description Emmanuele Bassi (:ebassi) 2017-10-14 14:45:52 UTC
Pretty trivial patch to switch to modern idiomatic Autotools, like we did in GTK+.
Comment 1 Emmanuele Bassi (:ebassi) 2017-10-14 14:46:02 UTC
Created attachment 361586 [details] [review]
build: Use subdir-objects with Autotools

We're eventually going to drop Autotools, but in the meantime we should
probably use idiomatic options and reduce warnings.

GLib is pretty much already safe for subdir-objects to be enabled,
except in the GIO tests, where the build references files that are
generated in a different level. For that, we can use the same solution
employed by GTK+, and link the appropriate file in the right
sub-directory.
Comment 2 Philip Withnall 2017-10-14 17:01:18 UTC
Review of attachment 361586 [details] [review]:

This is horrific and evil and I bet you’re just doing it to make Meson look even better.

a_c-n if distcheck still passes and it still builds with srcdir ≠ builddir.
Comment 3 Emmanuele Bassi (:ebassi) 2017-10-14 17:25:14 UTC
(In reply to Philip Withnall from comment #2)
> Review of attachment 361586 [details] [review] [review]:
> 
> This is horrific and evil and I bet you’re just doing it to make Meson look
> even better.

That's purely a side-effect of just how broken Autotools really are.

> a_c-n if distcheck still passes and it still builds with srcdir ≠ builddir.

I always do non-srcdir builds, and I verified that srcdir builds are working; I need to do a distcheck, though, just to be on the safe side.
Comment 4 Philip Withnall 2017-10-24 12:24:53 UTC
(In reply to Emmanuele Bassi (:ebassi) from comment #3)
> I need to do a distcheck, though, just to be on the safe side.

Any progress on that?
Comment 5 Emmanuele Bassi (:ebassi) 2017-10-24 12:29:59 UTC
Sorry, lost track of this. Will run a distcheck.
Comment 6 Emmanuele Bassi (:ebassi) 2017-10-24 12:52:00 UTC
The distcheck failed inside a gschema compilation test, but that happens to me without the patch as well, so I think it's another issue entirely.

The build and tests associated to this patch succeeded.
Comment 7 Philip Withnall 2017-10-24 12:57:54 UTC
Let’s push this then.
Comment 8 Emmanuele Bassi (:ebassi) 2017-10-24 13:04:29 UTC
Attachment 361586 [details] pushed as 5c13bf9 - build: Use subdir-objects with Autotools