Bug 2047009 - shared-mime-info: FTBFS in Fedora rawhide/f36
Summary: shared-mime-info: FTBFS in Fedora rawhide/f36
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: shared-mime-info
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2078106 (view as bug list)
Depends On:
Blocks: F36FTBFS F37FTBFS 2050761
TreeView+ depends on / blocked
 
Reported: 2022-01-27 09:51 UTC by Fedora Release Engineering
Modified: 2022-05-11 21:01 UTC (History)
11 users (show)

Fixed In Version: shared-mime-info-2.2-1.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-23 23:28:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (13.89 KB, text/plain)
2022-01-27 09:51 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2022-01-27 09:51 UTC, Fedora Release Engineering
no flags Details
state.log (1008 bytes, text/plain)
2022-01-27 09:51 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2022-01-27 09:51:02 UTC
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/

Comment 1 Fedora Release Engineering 2022-01-27 09:51:06 UTC
Created attachment 1856630 [details]
build.log

Comment 2 Fedora Release Engineering 2022-01-27 09:51:08 UTC
Created attachment 1856631 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-01-27 09:51:09 UTC
Created attachment 1856632 [details]
state.log

Comment 4 Miro Hrončok 2022-01-27 10:42:13 UTC
+ /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

Comment 5 Rex Dieter 2022-02-02 16:46:56 UTC
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"

Comment 6 Rex Dieter 2022-02-02 16:48:34 UTC
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

Comment 7 Rex Dieter 2022-02-04 15:16:15 UTC
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

Comment 8 Ben Cotton 2022-02-08 20:15:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 9 Miro Hrončok 2022-04-23 17:52:09 UTC
*** Bug 2078106 has been marked as a duplicate of this bug. ***

Comment 11 Fedora Update System 2022-04-23 23:26:27 UTC
FEDORA-2022-64aa98d6fc has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-64aa98d6fc

Comment 12 Fedora Update System 2022-04-23 23:28:18 UTC
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.

Comment 13 Tom Stellard 2022-05-11 20:40:23 UTC
This package is still FTBFS in f36.  Do we need to backport this fix?

Comment 14 Miro Hrončok 2022-05-11 21:01:04 UTC
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


Note You need to log in before you can comment on or make changes to this bug.