Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 467866

Summary: app-crypt/gpgme-1.4.0 - gpgsm: error creating keybox `.../work/gpgme-1.4.0/tests/gpgsm/pubring.kbx': Permesso negato
Product: Gentoo Linux Reporter: Fabio Coatti <fabio.coatti>
Component: Current packagesAssignee: Crypto team [DISABLED] <crypto+disabled>
Status: RESOLVED OBSOLETE    
Severity: normal CC: alexandre.guimaraes, alonbl, candrews, chris, commando2004, Dessa, eva, fcoiffie, fkrogh, gbugs, kripton, larry.chien.shen, lee, m.debruijne, M.Steel, martin, maxbritov, mikko89, r3pek, randy-andy-, rob, travisghansen, zerochaos
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.gz
confirming build log
another build.log

Description Fabio Coatti 2013-04-29 12:43:40 UTC
I'm trying to install gpgme 1.4.0 but the operation fails with this error:
gpgsm: error creating keybox `/var/tmp/portage/app-crypt/gpgme-1.4.0/work/gpgme-1.4.0/tests/gpgsm/pubring.kbx': Permesso negato
gpgsm: keyblock resource `/var/tmp/portage/app-crypt/gpgme-1.4.0/work/gpgme-1.4.0/tests/gpgsm/pubring.kbx': Permesso negato
echo disable-crl-checks > ./gpgsm.conf
make[3]: *** [pubring.kbx] Errore 1
make[3]: *** Attesa dei processi non terminati....


(Permesso Negato == Permission denied)


Reproducible: Always




Portage 2.2.0_alpha173 (default/linux/amd64/13.0, gcc-4.7.2, glibc-2.15-r3, 3.8.5 x86_64)
=================================================================
System uname: Linux-3.8.5-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16174344 total,  10691644 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Mon, 29 Apr 2013 09:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1, 2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo overlay
Installed sets: @kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -msse4a -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -msse4a -pipe "
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://gentoo.mneisen.org/ http://gentoo.supp.name/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac aalib acl acpi aim alsa amd64 amr amrnb amrwb apng ares asf ass audiofile avahi bash-completion berkdb bidi bl bluetooth branding bri bzip2 caps cdda cdparanoia cdr cjk cli consolekit cracklib crypt curl cxx dba dbus declarative device-mapper dga dirac directfb divx divx4linux dri dts dv dvb dvd dvdnav dvdr dvdread edl embedded enca ethereal exif expat faac faad fam fame fbcon ffmpeg fftw flac fontconfig force-cgi-redirect fortran ftp garmin gd gdbm gimp gmedia gmp gnutls gpm gps gsm gtk iconv icq icu id3tag idn ifp ilbc imagemagick imap innodb ipod iproute2 ipv6 ithreads jabber java javascript kde kontact kvm ladspa lcms libcaca libnotify libv4l2 live lm_sensors lua lvm lxc lzo maildir matroska mbox md5sum mdnsresponder-compat mhash mime mjpeg mmap mmx mmxext mng modules mozdevelop mozilla mp3 mp4 msn mtp mudflap multilib musepack mysql ncurses nemesi nepomuk network nfsv4 njb nls nptl nptlonly nsplugin numa nut offensive ofx ogg oggvorbis ogm openal openexr opengl openmp oscar pam parted pcap pcre pdf php plasma plotutils pnm policykit ppds pulseaudio pvr qemu qt3support qt4 radio rar readline rtc rtmp rtsp ruby samba sasl schroedinger semantic-desktop session sha512 sl slang slp sms sndfile snmp sox speex spell srt sse sse2 sse4a ssh ssl startup-notification stream svg symlink taglib tcltk tcpd theora threads tiff tk tremor udev unicode usb utempter v4l v4l2 vcd vdpau vhosts videos vim-syntax virtualbox vorbis wmf wmp wxwindows x264 xanim xface xft xine xosd xpm xscreensaver xsl xulrunner xvid xvmc yahoo zlib zoran zpm" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="apcups conntrack contextswitch cpu cpufreq curl df disk entropy ethstat filecount hddtemp interface iptables irq load logfile mbmon md memeory mysql network nginx notify_desktop notify_email ntpd numa openvpn perl ping processes protocols python rrdtool sensors snmp swap syslog tcpconns thermal threshold uptime write_graphite write_http" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epjitsu epson epson2" USERLAND="GNU" VIDEO_CARDS="nv intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Fabio Coatti 2013-04-29 12:45:30 UTC
Created attachment 346884 [details]
build.log.gz
Comment 2 Boney McCracker 2013-04-30 05:09:10 UTC
Created attachment 346940 [details]
confirming build log

Confirming error.  2nd build log (English) attached.
Comment 3 Fabio Coatti 2013-05-02 06:53:13 UTC
Same behaviour for gpgme-1.4.1
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2013-05-02 07:11:12 UTC
Can you try with dev-libs/libassuan-2.0.3 ?  It's the only difference I can find between my system and the build logs (and I can build fine)
Comment 5 Fabio Coatti 2013-05-02 07:40:17 UTC
Just tried with libassuan 2.0.3, no luck. I've also tried to downgrade sandbox to version 2.5, same result.
Comment 6 Fabio Coatti 2013-05-02 07:47:03 UTC
To be on the safe side, I tried also to put PORTAGE_TMPDIR on a ext2 filesystem (I use tmpfs for compilation), same result.

Now I'm trying to get a meaningful strace from build.
Comment 7 Arve Barsnes 2013-05-02 09:13:26 UTC
Created attachment 347124 [details]
another build.log

Another build log to compare with.
Comment 8 Maxim Britov 2013-05-02 09:21:18 UTC
yet another issue with libgcrypt-1.5.2[+caps]

libgcrypt-1.5.1 or libgcrypt-1.5.2[-caps] works for me
Comment 9 Fabio Coatti 2013-05-02 10:14:32 UTC
Confirmed here, -caps on libgcrypt works around the issue. I was suspecting somethinglike that: looking at strace file you can notice a lot of fiddling with caps, but I was far from looking at libgcrypt. Many thanks!!
Comment 10 Boney McCracker 2013-05-03 00:07:13 UTC
Problem persists with gpgme-1.4.1

I do have USE="caps" on libgcrypt-1.5.2
Comment 11 Gary E. Miller 2013-05-03 00:21:02 UTC
(In reply to comment #10)
> Problem persists with gpgme-1.4.1
> 
> I do have USE="caps" on libgcrypt-1.5.2

Ditto for me.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-06 07:49:20 UTC
*** Bug 468492 has been marked as a duplicate of this bug. ***
Comment 13 Lee Trager 2013-05-07 06:45:17 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Problem persists with gpgme-1.4.1
> > 
> > I do have USE="caps" on libgcrypt-1.5.2
> 
> Ditto for me.

+1
Comment 14 Mikko Koskelin 2013-05-07 07:22:26 UTC
libgcrypt [-caps] works for me too.
Comment 15 Hristo Venev 2013-05-09 07:40:49 UTC
Passing --disable-{gpg,gpgsm,gpgconf,g13}-test to configure may fix it.
Comment 16 Alon Bar-Lev (RETIRED) gentoo-dev 2013-05-09 07:43:14 UTC
(In reply to comment #15)
> Passing --disable-{gpg,gpgsm,gpgconf,g13}-test to configure may fix it.

Can you please confirm that this problem does not effect application but only tests?
Comment 17 Hristo Venev 2013-05-09 07:50:03 UTC
Compiles fine with tests disabled.
Comment 18 Alon Bar-Lev (RETIRED) gentoo-dev 2013-05-09 08:00:07 UTC
(In reply to comment #17)
> Compiles fine with tests disabled.

compile != working
Comment 19 Jeroen Roovers (RETIRED) gentoo-dev 2013-07-03 13:11:16 UTC
*** Bug 475628 has been marked as a duplicate of this bug. ***
Comment 20 Alon Bar-Lev (RETIRED) gentoo-dev 2016-10-05 21:03:31 UTC
Please reopen if can be reproduced.