Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280083 - xfce-base/xfconf-4.6.1 compiles with -pg flag when profile USE flag is disabled
Summary: xfce-base/xfconf-4.6.1 compiles with -pg flag when profile USE flag is disabled
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-02 19:05 UTC by Darren Smith
Modified: 2009-08-02 19:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (xfconf-4.6.1.ebuild,1.27 KB, text/plain)
2009-08-02 19:11 UTC, Darren Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Smith 2009-08-02 19:05:56 UTC
While trying to setup a new ~x86 setup, I got the following build error:
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -DHAVE_GNUC_VISIBILITY -DG_LOG_DOMAIN=\"xfconfd\" -DLIBXFCONF_COMPILATION -DBINDIR=\"/usr/bin\" -DLOCALEDIR=\"/usr/share/locale\" -I.. -I../common -I.. -I../common -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pg -O3 -march=native -pipe -fomit-frame-pointer -c -o xfconfd-xfconf-backend.o `test -f 'xfconf-backend.c' || echo './'`xfconf-backend.c
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible
make[3]: *** [xfconfd-main.o] Error 1
make[3]: *** Waiting for unfinished jobs....

It seems the ebuild is not working as desired for the profile USE flag. I don't have that flag enabled:
# emerge -pv xfconf

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] xfce-base/xfconf-4.6.1  USE="perl -debug -profile" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

# grep CFLAGS /etc/make.conf
CFLAGS="-O3 -march=native -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

I fixed the problem by taking the profile lines out of the ebuild. I'll attach that ebuild shortly.

Reproducible: Always
Comment 1 Darren Smith 2009-08-02 19:11:22 UTC
Created attachment 199951 [details]
ebuild

This is just a workaround to get xfconf to build. It does not address the bug as profiling support is completely removed.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-08-02 19:13:41 UTC
The ebuild contains: use profile && filter-flags -fomit-frame-pointer. Maybe it should be:

if use profile; then
    filter-flags -fomit-frame-pointer
else
    filter-flags -pg
fi

or something like that.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-08-02 19:14:50 UTC
No. This was already fixed silently in Portage few hours ago. Please sync.