qtcurve-gtk2 1.5.2-1 is not built with $RPM_OPT_FLAGS, see the gcc line(s) in build output. http://kojipkgs.fedoraproject.org/packages/qtcurve-gtk2/1.5.2/1.fc15/data/logs/i686/build.log
Problem still persists in 1.6.3-1. http://kojipkgs.fedoraproject.org/packages/qtcurve-gtk2/1.6.3/1.fc15/data/logs/x86_64/build.log
Looks like a generalized cmake problem. The default %cmake macro ends up building with only '-O3 -NDEBUG' flags, which comes from /usr/share/cmake/Platform/*.cmake To address this, there are several (not necessarily mutually exclusive) options off the top of my head: 1. munge the /usr/share/cmake/Platform/*.cmake stuff to include fedora's default $RPM_OPT_FLAGS 2. modify %cmake macro to define the various, CMAKE_C_FLAGS CMAKE_CXX_FLAGS some other better ideas?
I don't think so. A simple cmake project will happily take the CFLAGS/CXXFLAGS environment variables. qtcurve-gtk2 must be doing something to ignore/override them. Here you go: QtCurve-Gtk2-1.6.3/style/CMakeLists.txt:set(CMAKE_C_FLAGS "${GTK_CFLAGS}")
Good catch, ugh, coulda swore my greping for FLAG munging in qtcurve came up empty.
OK, closer, by changing the above to set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GTK_CFLAGS}") I'm seeing, cd /home/rdieter1/pkgs.fedoraproject.org/qtcurve-gtk2/QtCurve-Gtk2-1.6.3/x86_64-redhat-linux-gnu/style && /usr/lib64/ccache/gcc -Dqtcurve_EXPORTS -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -O3 -DNDEBUG -fPIC -I/home/rdieter1/pkgs.fedoraproject.org/qtcurve-gtk2/QtCurve-Gtk2-1.6.3 -I/home/rdieter1/pkgs.fedoraproject.org/qtcurve-gtk2/QtCurve-Gtk2-1.6.3/x86_64-redhat-linux-gnu/style -I/home/rdieter1/pkgs.fedoraproject.org/qtcurve-gtk2/QtCurve-Gtk2-1.6.3/common -I/home/rdieter1/pkgs.fedoraproject.org/qtcurve-gtk2/QtCurve-Gtk2-1.6.3/x86_64-redhat-linux-gnu -DQTC_MOZILLA_DIR=\"/usr/share/themes/QtCurve/mozilla\" -o CMakeFiles/qtcurve.dir/qtcurve.o -c /home/rdieter1/pkgs.fedoraproject.org/qtcurve-gtk2/QtCurve-Gtk2-1.6.3/style/qtcurve.c ie, -O3 -DNDEBUG still being added, -O3 in particular overriding our default -O2
(In reply to comment #5) > ie, -O3 -DNDEBUG still being added, -O3 in particular overriding our default > -O2 http://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags If you ask me, -O3 a _much_ smaller concern than the previously missing security related options and faulty debuginfo, and as far as I'm concerned there's no need to keep this bug open because of that (be sure to read the guidelines above though). -DNDEBUG is possibly quite desirable to have there, with caveat: haven't looked at the source, this is just based on experience with other packages.
qtcurve-gtk2-1.7.0-1.fc14,qtcurve-kde4-1.7.0-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/qtcurve-gtk2-1.7.0-1.fc14,qtcurve-kde4-1.7.0-1.fc14
qtcurve-gtk2-1.7.0-1.fc14, qtcurve-kde4-1.7.0-1.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update qtcurve-gtk2 qtcurve-kde4'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/qtcurve-gtk2-1.7.0-1.fc14,qtcurve-kde4-1.7.0-1.fc14
qtcurve-gtk2-1.7.0-1.fc14, qtcurve-kde4-1.7.0-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.