When building gnupg-1.4.1, the following error arises every time: -------------------- ./gpg_dearmor > ./pubring.gpg < ./pubring.asc ./gpg_dearmor > ./secring.gpg < ./secring.asc gpg: keyblock resource `/var/tmp/portage/homedir/.gnupg/secring.gpg': file open error gpg: keyblock resource `/var/tmp/portage/homedir/.gnupg/pubring.gpg': file open error make[2]: *** [pubring.gpg] Error 2 make[2]: *** Waiting for unfinished jobs.... gpg: keyblock resource `/var/tmp/portage/homedir/.gnupg/secring.gpg': file open error gpg: keyblock resource `/var/tmp/portage/homedir/.gnupg/pubring.gpg': file open error make[2]: *** [secring.gpg] Error 2 make[2]: Leaving directory `/var/tmp/portage/gnupg-1.4.1/work/gnupg-1.4.1/checks' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnupg-1.4.1/work/gnupg-1.4.1' make: *** [all] Error 2 !!! ERROR: app-crypt/gnupg-1.4.1 failed. !!! Function src_compile, Line 116, Exitcode 2 ----------------- I know it;s the same messages as in bug # 80033, vut that ons is set as resolved/fixed. wel... not with me it is. Reproducible: Always Steps to Reproduce: 1. emerge gnupg 2. have error 3. Actual Results: !!! ERROR: app-crypt/gnupg-1.4.1 failed. Expected Results: emerge succeeded thisbe portage # emerge info Portage 2.0.51.19 (selinux/2004.1/x86/hardened, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.10-hardened-r3 i686) ================================================================= System uname: 2.6.10-hardened-r3 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 29 2005, 14:29:50)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -march=pentium2 -fomit-frame-pointer -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -march=pentium2 -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks loadpolicy sandbox selinux sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo// http://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 berkdb crypt dlloader hardened hardenedphp innodb jpeg ldap libwww maildir mysql ncurses nls nptl pam perl php pic pie png python readline sasl selinux ssl x86 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Ditto on ppc The referred to bug by the reported isn't bug # 80033, but bug # 80044 I noticed we all seem to be running selinux. Since USE="-selinux" emerge gnupg succeeds, my guess is that it is a selinux problem. Portage 2.0.51.19 (selinux/2005.1/ppc, gcc-3.4.1, glibc-2.3.4.20041102-r1, 2.6.11-hardnut-r13 ppc) ================================================================= System uname: 2.6.11-hardnut-r13 ppc 7447A, altivec supported Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 1 2005, 18:06:15)] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.5, 1.6.3, 1.8.5-r3, 1.4_p6, 1.7.9-r1 sys-devel/binutils: 2.15.90.0.3-r4 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/var/tmp/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox selinux sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa altivec berkdb cdr crypt cups dlloader dvd dvdread esd flac gd gdbm gif gpm gtk hardened imagemagick imlib java jpeg ldap mad motif mpeg ncurses network nls ogg opengl pam perl png ppc python readline real selinux ssl tcpd theora tiff truetype vorbis xml2 xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
./gpg_dearmor > ./pubring.gpg < ./pubring.asc ./gpg_dearmor > ./secring.gpg < ./secring.asc gpg: keyblock resource `/var/tmp/portage/homedir/.gnupg/secring.gpg': file open error gpg: keyblock resource `/var/tmp/portage/homedir/.gnupg/pubring.gpg': file open error make[2]: *** [pubring.gpg] Error 2 Isn't this a sandbox issue?
partially. The ./gpg_dearmor script that the gnupg make process creates need to be modified/tricked into using a different home directory for testing. could try setting HOME=${S}/... in the ebuild.
Does the problem still exist in 1.4.1-r1?
seems to be fixed (bug #80044) please reopen if not fixed.