Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271658 - app-admin/keepassx-0.4.1 failed to emerge on hardened, pch flag
Summary: app-admin/keepassx-0.4.1 failed to emerge on hardened, pch flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 11:24 UTC by Dmitry
Modified: 2009-11-17 22:35 UTC (History)
3 users (show)

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


Attachments
app-admin/keepassx-0.4.0 bug emerge --info (emergeinfo,4.57 KB, text/plain)
2009-05-29 11:25 UTC, Dmitry
Details
Fixed ebuild (keepassx-0.4.0.ebuild,1.06 KB, text/plain)
2009-07-04 11:23 UTC, Raimonds Cicans
Details
Fix for pch bug & debug redundancy for keepassx-0.4.1 (keepassx-pch-debug.patch,596 bytes, patch)
2009-10-26 13:27 UTC, Raimonds Cicans
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2009-05-29 11:24:20 UTC
I tried to emerge without "pch" use flag (on hardened profile), but it founded pch files somewhere... All other packages reemerged without that flag right after changing profile.

I can't just try to emerge -C keepassx && emerge keepassx , because if it fails i can't get access to all my passwords.

And keepassx-0.3.4 (marked stable) can't be emerged too, with same reason.

emerge output:

x86_64-pc-linux-gnu-gcc -c -include ../build/keepassx -pipe -march=amdfam10 -O2 -pipe -Wall -W -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/aes_modes.o crypto/aes_modes.c
cc1: error: ../build/keepassx: No such file or directory
cc1: error: one or more PCH files were found, but they were invalid
cc1: error: use -Winvalid-pch for more information
cc1: error: ../build/keepassx: No such file or directory
cc1: error: one or more PCH files were found, but they were invalid
cc1: error: use -Winvalid-pch for more information
cc1: error: ../build/keepassx: No such file or directory
cc1: error: one or more PCH files were found, but they were invalid
cc1: error: use -Winvalid-pch for more information
make[1]: *** [../build/aes_modes.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [../build/aeskey.o] Error 1
make[1]: *** [../build/aescrypt.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-admin/keepassx-0.4.0/work/keepassx-0.4.0/src'
make: *** [sub-src-make_default] Error 2
 * 
 * ERROR: app-admin/keepassx-0.4.0 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 2856:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
Comment 1 Dmitry 2009-05-29 11:25:31 UTC
Created attachment 192862 [details]
app-admin/keepassx-0.4.0 bug emerge --info
Comment 2 Raimonds Cicans 2009-07-04 11:23:52 UTC
Created attachment 196608 [details]
Fixed ebuild

1. Fixed PCH flag processing
2. Removed redundant "debug" flag checking (processed by eqmake4 procedure from qt4 eclass)
Comment 3 Raimonds Cicans 2009-10-26 13:27:00 UTC
Created attachment 208311 [details, diff]
Fix for pch bug & debug redundancy for keepassx-0.4.1

(In reply to comment #2)

keepassx-0.4.1 have same problem as 0.4.0, so same fix...
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-11-16 00:32:37 UTC
qt team: Before keepassx-0.4.1 goes stable can you please review this patch? I'm not so sure about qmake build systems. Thanks.
Comment 5 Dror Levin (RETIRED) gentoo-dev 2009-11-16 00:38:46 UTC
This patch, while it seems ok, has nothing to do with the bug. Can anyone reproduce it?
Comment 6 Magnus Granberg gentoo-dev 2009-11-16 18:57:52 UTC
(In reply to comment #5)
> This patch, while it seems ok, has nothing to do with the bug. Can anyone
> reproduce it?
> 
x86_64-pc-linux-gnu-gcc -c -include ../build/keepassx -pipe -march=core2 -O2 -pipe -Wall -W -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/aescrypt.o crypto/aescrypt.c
cc1: fel: ../build/keepassx: Filen eller katalogen finns inte
cc1: fel: en eller flera PCH-filer hittades, men de var inte korrekta
cc1: fel: använd -Winvalid-pch för mer information
make[1]: *** [../build/aescrypt.o] Fel 1
make[1]: *** Inväntar oavslutade jobb...
make[1]: Leaving directory `/var/tmp/portage/app-admin/keepassx-0.4.1/work/keepassx-0.4.1/src'

emerge -pv keepassx
[ebuild  N    ] app-admin/keepassx-0.4.1  USE="-debug (-pch)" 0 kB
Comment 7 Magnus Granberg gentoo-dev 2009-11-16 19:02:42 UTC
laptop1 local # emerge --info
Portage 2.2_rc46 (hardened/linux/amd64/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo x86_64)
=================================================================                             
System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 09 Nov 2009 14:45:01 +0000                                                   
ccache version 2.4 [disabled]                                                                        
app-shells/bash:     4.0_p33                                                                         
dev-java/java-config: 2.1.9-r1                                                                       
dev-lang/python:     2.5.4-r3, 2.6.3, 3.1.1-r1                                                       
dev-util/ccache:     2.4-r8                                                                          
dev-util/cmake:      2.6.4-r3                                                                        
sys-apps/baselayout: 2.0.1                                                                           
sys-apps/openrc:     0.5.1-r1                                                                        
sys-apps/sandbox:    2.2                                                                             
sys-devel/autoconf:  2.13, 2.63-r1                                                                   
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                                           
sys-devel/binutils:  2.19.1-r1                                                                       
sys-devel/gcc-config: 1.4.1                                                                          
sys-devel/libtool:   2.2.6a                                                                          
virtual/os-headers:  2.6.30-r1                                                                       
ABI="amd64"                                                                                          
ACCEPT_KEYWORDS="amd64 ~amd64"
Comment 8 Magnus Granberg gentoo-dev 2009-11-17 13:08:26 UTC
The fix in comment #3 fix the error with pch and hardened.
Comment 9 Dror Levin (RETIRED) gentoo-dev 2009-11-17 22:35:37 UTC
Applied patch, thanks.