Bug 746349

Summary: pgadmin3 1.14.0-1 built without -g in CFLAGS
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: pgadmin3Assignee: Devrim Gündüz <devrim>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: devrim
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.14.2-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-11 15:53:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 496968    

Description Ville Skyttä 2011-10-14 21:22:31 UTC
pgadmin3 1.14.0-1 is built without -g in CFLAGS, making -debuginfo useless:
http://kojipkgs.fedoraproject.org/packages/pgadmin3/1.14.0/1.fc17/data/logs/x86_64/build.log

Comment 1 Devrim Gündüz 2011-10-17 04:38:44 UTC
I see

+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m64 -mtune=generic'

there. Am I missing something else?

Comment 2 Ville Skyttä 2011-10-17 14:54:49 UTC
(In reply to comment #1)
> Am I missing something else?

Yes.  Look at the actual compiler command lines that are used, for example:

g++ -DHAVE_CONFIG_H -I. -I..  -DDATA_DIR=\"/usr/share/pgadmin3/\" -I../pgadmin/include   -I/usr/include -I/usr/include/pgsql/server -I/usr/include/pgsql -DHAVE_CONNINFO_PARSE -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DEMBED_XRC -I/usr/include/libxml2 -I/usr/include/libxml2  -O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o pgAdmin3.o `test -f './pgAdmin3.cpp' || echo './'`./pgAdmin3.cpp

No -g there.  See also the contents of the -debuginfo package - missing sources in it are a strong indication of -g not being used.