shared-mime-info failed to build from source in Fedora rawhide/f36 https://koji.fedoraproject.org/koji/taskinfo?taskID=81986524 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Please fix shared-mime-info at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, shared-mime-info will be orphaned. Before branching of Fedora 37, shared-mime-info will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
Created attachment 1856630 [details] build.log
Created attachment 1856631 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1856632 [details] state.log
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C xdgmime make: Entering directory '/builddir/build/BUILD/shared-mime-info-2.1/xdgmime' target=`echo all-recursive | sed s/-recursive//`; \ for subdir in src; do \ (cd $subdir && make "$target") \ done; make[1]: Entering directory '/builddir/build/BUILD/shared-mime-info-2.1/xdgmime/src' make[1]: Leaving directory '/builddir/build/BUILD/shared-mime-info-2.1/xdgmime/src' make[1]: Entering directory '/builddir/build/BUILD/shared-mime-info-2.1/xdgmime/src' gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmime.o xdgmime.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmimeglob.o xdgmimeglob.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmimeint.o xdgmimeint.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmimemagic.o xdgmimemagic.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmimealias.o xdgmimealias.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmimeparent.o xdgmimeparent.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmimecache.o xdgmimecache.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -c -o xdgmimeicon.o xdgmimeicon.c gcc -Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/shared-mime-info-2.1/.package_note-shared-mime-info-2.1-4.fc36.x86_64.ld test-mime.c xdgmime.o xdgmimeglob.o xdgmimeint.o xdgmimemagic.o xdgmimealias.o xdgmimeparent.o xdgmimecache.o xdgmimeicon.o -o test-mime make[1]: Leaving directory '/builddir/build/BUILD/shared-mime-info-2.1/xdgmime/src' make: Leaving directory '/builddir/build/BUILD/shared-mime-info-2.1/xdgmime' RPM build errors: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. /usr/bin/ld: /tmp/ccdtSZi3.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmime.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmimeglob.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmimeint.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmimemagic.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmimealias.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmimeparent.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmimecache.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: xdgmimeicon.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status
First attempt at fix, https://src.fedoraproject.org/rpms/shared-mime-info/c/0fe24ac6f510af5a647d4438f7a1fdb60136de3c?branch=rawhide Build gets further, but then fails related to meson, + /usr/bin/meson --buildtype=plain --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/sbin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --wrap-mode=nodownload --auto-features=enabled . redhat-linux-build -Dupdate-mimedb=true -Dxdg-mime-path=./xdgmime/ The Meson build system Version: 0.60.3 Source dir: /builddir/build/BUILD/shared-mime-info-2.1 Build dir: /builddir/build/BUILD/shared-mime-info-2.1/redhat-linux-build Build type: native build meson.build:2:0: ERROR: Unknown options: "xdg-mime-path"
Looks like in f35, meson reports that as a WARNING, but apparently is now an ERROR in f36/rawhide. I'll test simply removing that "Unknown option" -Dxdg-mimepath, when I get a chance
and now, [77/83] /builddir/build/BUILD/shared-mime-info-2.1/data/freedesktop_generate.sh /builddir/build/BUILD/shared-mime-info-2.1 /builddir/build/BUILD/shared-mime-info-2.1/redhat-linux-build FAILED: data/freedesktop.org.xml /builddir/build/BUILD/shared-mime-info-2.1/data/freedesktop_generate.sh /builddir/build/BUILD/shared-mime-info-2.1 /builddir/build/BUILD/shared-mime-info-2.1/redhat-linux-build ninja: Entering directory `/builddir/build/BUILD/shared-mime-info-2.1/redhat-linux-build' [1/2] Generating po/zh_HK/LC_MESSAGES/shared-mime-info-zh_HK.mo with a custom command [2/2] Generating po/zh_TW/LC_MESSAGES/shared-mime-info-zh_TW.mo with a custom command Error: cannot open mo file /builddir/build/BUILD/shared-mime-info-2.1/redhat-linux-build/po/*.gmo
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36.
*** Bug 2078106 has been marked as a duplicate of this bug. ***
https://src.fedoraproject.org/rpms/shared-mime-info/pull-request/3
FEDORA-2022-64aa98d6fc has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-64aa98d6fc
FEDORA-2022-64aa98d6fc has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
This package is still FTBFS in f36. Do we need to backport this fix?
This fix was to update it. And we decided not to update it for F36: https://src.fedoraproject.org/rpms/shared-mime-info/pull-request/3#comment-103448