Bug 2224508

Summary: linker flag leaks into cflags in pkgconfig file
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: gtk3Assignee: Matthias Clasen <mclasen>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: amigadave, gnome-sig, mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dan Horák 2023-07-21 08:45:50 UTC
A linker flag (-Wl,--export-dynamic) leaks into the cflags variable in gtk3 pkgconfig file, see bellow.

[root@fedora dnf]# /usr/bin/pkg-config --cflags gtk+-3.0
-I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/cloudproviders -I/usr/include/blkid -I/usr/include/at-spi-2.0 -Wl,--export-dynamic -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/sysprof-4 -pthread -I/usr/include/libpng16

- seen with gtk3-devel-3.24.38-2.fc39.s390x
- it causes eg. LibreOffice build failure in the current mass rebuild


Reproducible: Always

Comment 1 David King 2023-07-30 07:54:07 UTC
The build system in gtk3 does not use the pkg-config generators which are used by gtk4. I chatted with the gtk maintainers just now, and they are happy for the gtk3 pkg-config file generation to be using the same process in gtk3 and gtk4, so I will work on this soon.

Comment 2 Fedora Release Engineering 2023-08-16 08:13:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.