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 783461 - RPM dependency in GNOME modules
RPM dependency in GNOME modules
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2017-06-06 06:37 UTC by Ting-Wei Lan
Modified: 2017-06-08 15:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ting-Wei Lan 2017-06-06 06:37:07 UTC
Both appstream-glib and gnome-software have optional dependencies on RPM, and the default values of enable-rpm option are true. This is fine for distributions using RPM as their system package managers, but it causes meson to fail on non-RPM distributions.

*** Configuring appstream-glib *** [1/1]
The Meson build system
Version: 0.40.1
...
Meson encountered an error in file meson.build, line 73, column 4:
Native dependency 'rpm' not found
*** Error during phase configure of appstream-glib: ########## Error running meson --prefix ... *** [1/1]

I know it is possible to avoid the error by setting module_mesonargs['appstream-glib'] = '-Denable-rpm=false' in jhbuildrc, but asking all users of non-RPM distributions to manually add a line in jhbuildrc doesn't seem to be a correct solution. We have condition set support in jhbuild, but we don't have an 'rpm' condition that can be used to conditionally add '-Denable-rpm=false' in modulesets.
Comment 1 Michael Catanzaro 2017-06-06 15:12:25 UTC
Is there any particular reason we ever need to build with RPM support in JHBuild? Can't we disable RPM support always?
Comment 2 Ting-Wei Lan 2017-06-07 15:36:19 UTC
I think it is enabled only because it is the default ... Always disabling RPM seems to be a good solution if we don't need it enabled conditionally in jhbuild.
Comment 3 Michael Catanzaro 2017-06-07 16:15:30 UTC
I don't think we need it, so feel free to push that change.
Comment 4 Ting-Wei Lan 2017-06-08 15:13:01 UTC
I pushed commit ff4f978 to master - 3.26: Disable RPM support in appstream-glib and gnome-software