Bug 1124324

Summary: meson: Bug in meson breaks building libmodulemd
Product: [openSUSE] openSUSE Distribution Reporter: Neal Gompa <ngompa13>
Component: DevelopmentAssignee: Dominique Leuenberger <dimstar>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ms, ngompa13, simonf.lees
Version: Leap 15.1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Neal Gompa 2019-02-05 13:19:06 UTC
When I try to build libmodulemd on openSUSE Leap 15.1, it fails with the following error:

[   13s] FAILED: modulemd/v2/modulemd@v2@@modulemd@sha/meson-generated_.._modulemd-enums.c.o
[   13s] cc -Imodulemd/v2/modulemd@v2@@modulemd@sha -Imodulemd/v2 -I../modulemd/v2 -I../modulemd/v2/include/modulemd-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c11 -Wpointer-arith -Werror=missing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wuninitialized -Werror=format-security -Werror=format=2 -Werror=implicit -Werror=init-self -Werror=main -Werror=missing-braces -Werror=return-type -Werror=array-bounds -Werror=write-strings -DG_LOG_USE_STRUCTURED '-DG_LOG_DOMAIN="libmodulemd"' -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -fPIC  -MD -MQ 'modulemd/v2/modulemd@v2@@modulemd@sha/meson-generated_.._modulemd-enums.c.o' -MF 'modulemd/v2/modulemd@v2@@modulemd@sha/meson-generated_.._modulemd-enums.c.o.d' -o 'modulemd/v2/modulemd@v2@@modulemd@sha/meson-generated_.._modulemd-enums.c.o' -c modulemd/v2/modulemd-enums.c
[   13s] modulemd/v2/modulemd-enums.c:5:10: fatal error: modulemd/v2/include/modulemd-2.0/modulemd.h: No such file or directory
[   13s]  #include "modulemd/v2/include/modulemd-2.0/modulemd.h"
[   13s]           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   13s] compilation terminated.


The error is caused due to lack of the following commit from upstream not being backported to our Meson package: https://github.com/mesonbuild/meson/commit/c5865c50c444912afd92c2feb94d8739874a62b2

This was fixed in upstream meson 0.47.0, but the commit is trivial to backport to meson 0.46.0. Thus, the problem doesn't exist in openSUSE Tumbleweed (as of right now), but does exist in Leap 15.
Comment 2 Swamp Workflow Management 2019-02-07 14:40:05 UTC
This is an autogenerated message for OBS integration:
This bug (1124324) was mentioned in
https://build.opensuse.org/request/show/672479 15.1 / dnf
https://build.opensuse.org/request/show/672480 15.1 / dnf-plugins-core
https://build.opensuse.org/request/show/672481 15.1 / libcomps
https://build.opensuse.org/request/show/672482 15.1 / libdnf
https://build.opensuse.org/request/show/672483 15.1 / libmodulemd
https://build.opensuse.org/request/show/672484 15.1 / librepo
Comment 3 Swamp Workflow Management 2019-02-11 00:40:07 UTC
This is an autogenerated message for OBS integration:
This bug (1124324) was mentioned in
https://build.opensuse.org/request/show/673181 15.1 / dnf
Comment 4 Simon Lees 2019-02-11 01:48:37 UTC
I'm going to make this bug public again, no idea why it was made private.
Comment 5 Swamp Workflow Management 2019-02-11 01:50:06 UTC
This is an autogenerated message for OBS integration:
This bug (1124324) was mentioned in
https://build.opensuse.org/request/show/673183 15.1 / dnf-plugins-core
Comment 6 Swamp Workflow Management 2019-02-13 09:20:06 UTC
This is an autogenerated message for OBS integration:
This bug (1124324) was mentioned in
https://build.opensuse.org/request/show/674419 15.1 / libdnf
Comment 7 Swamp Workflow Management 2019-04-23 12:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (1124324) was mentioned in
https://build.opensuse.org/request/show/697117 15.1 / meson
Comment 8 Dominique Leuenberger 2021-09-14 06:37:38 UTC
Fixes have been released in April 2019