Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86518 - emerge gpgme-1.0.2 - can't create `secdemo.gpg': Permission denied
Summary: emerge gpgme-1.0.2 - can't create `secdemo.gpg': Permission denied
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
: 87389 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-24 06:16 UTC by Gour
Modified: 2006-01-21 13:10 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gour 2005-03-24 06:16:26 UTC
Hi!

Emerge of gpgme on amd64 fails with:
[...]
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gpgme    -march=k8 -O2 -pipe -funroll-loops -fPIC -I../assuan/ -MT t-genkey.o -MD -MP -MF ".deps/t-genkey.Tpo" -c -o t-genkey.o t-genkey.c; \
then mv -f ".deps/t-genkey.Tpo" ".deps/t-genkey.Po"; else rm -f ".deps/t-genkey.Tpo"; exit 1; fi
srcdir=. ./mkdemodirs
gpg: can't create `secdemo.gpg': Permission denied
gpg: no valid OpenPGP data found.
gpg: dearmoring failed: file create error
make[3]: *** [Alpha/Secret.gpg] Error 2
make[3]: *** Waiting for unfinished jobs....

make[3]: Leaving directory `/var/tmp/portage/gpgme-1.0.2/work/gpgme-1.0.2/tests/gpg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gpgme-1.0.2/work/gpgme-1.0.2/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gpgme-1.0.2/work/gpgme-1.0.2'
make: *** [all] Error 2


Reproducible: Always
Steps to Reproduce:
1. emerge gpgme
2.
3.

Actual Results:  
make phase of emerge fails with the above log. 
 

Expected Results:  
emerged package  

Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3-20050110, 
glibc-2.3.4.20050125-r1, 2.6.10-gentoo-r7 x86_64) 
================================================================= 
System uname: 2.6.10-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3000+ 
Gentoo Base System version 1.6.10 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 23 2005, 09:35:24)] 
ccache version 2.4 [enabled] 
dev-lang/python:     2.3.5 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r6 
sys-devel/libtool:   1.5.14 
virtual/os-headers:  2.6.8.1-r3 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=k8 -O2 -pipe -funroll-loops -fPIC" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=k8 -O2 -pipe -funroll-loops -fPIC" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox 
userpriv" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
LANG="en_US.utf8" 
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/portage/local" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib acpi alsa amd64 apache2 arts audiofile avi bash-completion berkdb 
bitmap-fonts bzip2 caps cddb cdparanoia cdr crypt cups curl dar64 directfb 
divx4linux doc dvd dvdr dvdread emul-linux-x86 encode esd fam fbcon flac 
font-server foomaticdb fortran gdbm gif gimpprint gnome gnutls gpm gstreamer 
gtk gtk2 gtkhtml hal haskell i8x0 ieee1394 imagemagick imlib innodb ipv6 java 
jikes jp2 jpeg jpeg2k kde kdeenablefinal kdexdeltas koffice-plugin lcms libwww 
lm_sensors logitech-mouse lzo lzw lzw-tiff mad mmap mmqt motif mozdevelop 
mozilla mozsvg mp3 mpeg multilib mysql ncurses nls noamazon nptl nvidia 
oggvorbis openexr opengl oss pam pcre pda perl php pic png ppds pslib python qt 
readline ruby sasl scanner slang speex spell sqlite ssl svg tcltk tcpd tetex 
theora tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales 
vim-with-x wxwindows xface xine xml xml2 xmms xpm xprint xrandr xv zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-05-05 02:40:26 UTC
*** Bug 87389 has been marked as a duplicate of this bug. ***
Comment 2 John Popplewell 2005-05-21 18:27:07 UTC
I had this exact problem on x86. I worked around it by setting *both* 'userpriv'
and 'usersandbox' in FEATURES. I originally had only 'userpriv' set, like the
example. The tests that are failing are supposed to be disabled, but they aren't
and never appear to have been. I believe the tests fail because they aren't run
with root permissions. See 'Bugzilla Bug 86613' for an alternative workround and
fix. Hope this helps,

cheers,
John Popplewell.
Comment 3 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-05-23 06:26:42 UTC
I can't replicate this bug in x86 even when deliberately breaking my FEATURES to
mimmick the problem. 
Comment 4 Gour 2005-05-23 07:50:22 UTC
Hi!  
  
<quote>  
I had this exact problem on x86. I worked around it by setting *both* 
'userpriv' and 'usersandbox' in FEATURES. I originally had only 'userpriv' set, 
like the example.  
... 
Hope this helps, 
</quote> 
 
Thank you. 
 
Emmerging with: FEATURES="usersandbox" emerge -v gpgme (i.e. adding 
'usersandbox' as a feature) did the trick. 
 
Sincerely, 
Gour 
 
Comment 5 Rouslan Solomakhin 2005-11-04 09:51:09 UTC
Should this bug be closed? 
Comment 6 Gour 2005-11-04 13:16:45 UTC
(In reply to comment #5)
> Should this bug be closed? 

Yes.

Sincerely,
Gour
Comment 7 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2006-01-21 13:10:15 UTC
as per OP request