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 783206 - Misc. build-related fixes and cleanups
Misc. build-related fixes and cleanups
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-29 17:44 UTC by Florian Müllner
Modified: 2017-05-30 12:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Drop check for gjs-console (1.47 KB, patch)
2017-05-29 17:48 UTC, Florian Müllner
committed Details | Review
build: Always install xdg-desktop-portal metadata (1.12 KB, patch)
2017-05-29 17:48 UTC, Florian Müllner
committed Details | Review
build: Stop building a separate libgnome-shell-base (3.96 KB, patch)
2017-05-29 17:48 UTC, Florian Müllner
committed Details | Review
build: Drop obsolete pkg-config check (869 bytes, patch)
2017-05-29 17:48 UTC, Florian Müllner
committed Details | Review
tests: Adjust test runner (1.27 KB, patch)
2017-05-29 17:48 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2017-05-29 17:44:32 UTC
Some stuff I stumbled upon when looking into a meson port ...
Comment 1 Florian Müllner 2017-05-29 17:48:17 UTC
Created attachment 352809 [details] [review]
build: Drop check for gjs-console

Nowadays all javascript code is run via small C-wrappers ...
Comment 2 Florian Müllner 2017-05-29 17:48:24 UTC
Created attachment 352810 [details] [review]
build: Always install xdg-desktop-portal metadata

The build target accidentally ended up in a network manager conditional,
though the portal doesn't depend on NM in any way.
Comment 3 Florian Müllner 2017-05-29 17:48:33 UTC
Created attachment 352811 [details] [review]
build: Stop building a separate libgnome-shell-base

The static library was split out to avoid duplicate compilation
of mutter-independent libgnome-shell sources when we had a
wayland/non-wayland split. With the separate libmutter-wayland
library long gone, there's no reason to make the build more
complicated than it needs to be, so fold libgnome-shell-base
back into the regular libgnome-shell.
Comment 4 Florian Müllner 2017-05-29 17:48:39 UTC
Created attachment 352812 [details] [review]
build: Drop obsolete pkg-config check

The check belongs to the test-recorder executable that was dropped
in commit d52c95a15f5e.
Comment 5 Florian Müllner 2017-05-29 17:48:47 UTC
Created attachment 352813 [details] [review]
tests: Adjust test runner

The script currently assumes that srcdir is relative to builddir,
which is not the case for build directories outside the source tree
like the one used by jhbuild.
While we could get fancy and prepend the builddir if srcdir is relative,
there's nothing wrong with a relative path as we cd into the builddir
before evaluating srcdir.
Comment 6 Rui Matos 2017-05-30 10:42:50 UTC
Review of attachment 352809 [details] [review]:

++
Comment 7 Rui Matos 2017-05-30 10:48:14 UTC
Review of attachment 352810 [details] [review]:

why not do the same for the .desktop and .service files too and drop the whole conditional?
Comment 8 Rui Matos 2017-05-30 10:51:12 UTC
Review of attachment 352812 [details] [review]:

ok
Comment 9 Rui Matos 2017-05-30 10:52:12 UTC
Review of attachment 352813 [details] [review]:

sure
Comment 10 Rui Matos 2017-05-30 10:53:22 UTC
Review of attachment 352811 [details] [review]:

looks good
Comment 11 Florian Müllner 2017-05-30 11:10:36 UTC
(In reply to Rui Matos from comment #7)
> why not do the same for the .desktop and .service files too and drop the
> whole conditional?

Those belong to the helper that pops up a login window when connecting to a network that's behind a portal, so they are indeed tied to network manager. I don't think it would actually hurt installing them anyway, but omitting them makes some sense.

The same cannot be said about the xdg-desktop-portal, which is essentially a DBus interface description to allow flatpak to use system modal dialogs when asking for app permissions.
Comment 12 Rui Matos 2017-05-30 11:24:41 UTC
Review of attachment 352810 [details] [review]:

aha, of course, I thought xdg-desktop-portal was a standard for network portals
Comment 13 Florian Müllner 2017-05-30 12:12:29 UTC
Attachment 352809 [details] pushed as e7bf238 - build: Drop check for gjs-console
Attachment 352810 [details] pushed as 60c00f0 - build: Always install xdg-desktop-portal metadata
Attachment 352811 [details] pushed as 31a4705 - build: Stop building a separate libgnome-shell-base
Attachment 352812 [details] pushed as 4bada06 - build: Drop obsolete pkg-config check
Attachment 352813 [details] pushed as 73cffb3 - tests: Adjust test runner