Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638924 - =app-portage/gemato-4 fails gnupg tests on ia64: OSError: [Errno 2] No such file or directory: '/var/tmp/portage/app-portage/gemato-4/temp/tmpyXe0I7/.gnupg/S.gpg-agent.extra'
Summary: =app-portage/gemato-4 fails gnupg tests on ia64: OSError: [Errno 2] No such f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-11-26 21:10 UTC by Sergei Trofimovich (RETIRED)
Modified: 2017-11-26 23:18 UTC (History)
2 users (show)

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


Attachments
app-portage-gemato-4-build.log (app-portage-gemato-4-build.log,72.27 KB, text/x-log)
2017-11-26 21:10 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-26 21:10:22 UTC
Created attachment 506784 [details]
app-portage-gemato-4-build.log

======================================================================
ERROR: test_verify_manifest (tests.test_openpgp.OpenPGPContextManagerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_openpgp.py", line 539, in test_verify_manifest
    raise unittest.SkipTest(str(e))
  File "gemato/openpgp.py", line 54, in __exit__
    self.close()
  File "gemato/openpgp.py", line 58, in close
    shutil.rmtree(self._home)
  File "/usr/lib/python2.7/shutil.py", line 261, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "/usr/lib/python2.7/shutil.py", line 266, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 264, in rmtree
    os.remove(fullname)
OSError: [Errno 2] No such file or directory: '/var/tmp/portage/app-portage/gemato-4/temp/tmpyXe0I7/.gnupg/S.gpg-agent.extra'
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-26 21:11:51 UTC
# emerge --info 
Portage 2.3.16 (python 3.4.6-final-0, default/linux/ia64/13.0, gcc-7.2.0, glibc-2.26-r3, 3.14.14-gentoo ia64)
=================================================================
System uname: Linux-3.14.14-gentoo-ia64-Dual-Core_Intel-R-_Itanium-R-_Processor_9040-with-gentoo-2.4.1
KiB Mem:    16660784 total,   9576704 free
KiB Swap:    1999184 total,   1997792 free
Timestamp of repository gentoo: Sun, 26 Nov 2017 02:45:01 +0000
Head commit of repository gentoo: 20bb1e8ffa00236c6f3afb5db8c49dec2ddf75cf
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.9::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /bound/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="ia64 ~ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -g -fdiagnostics-show-option -frecord-gcc-switches"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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="-O2 -pipe -g"
DISTDIR="/bound/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict stricter test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu"
MAKEOPTS="-j5 -l5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl apng berkdb bzip2 cairo cli corefonts cracklib crypt cxx dri fortran gdbm glamor ia64 iconv ipv6 jpeg minizip modules ncurses nls nptl openmp pam pcre playlist png python readline session sqlite ssl svg tcpd threads truetype unicode xattr xvfb zlib" 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" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev glint mga nv r128 radeon vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-11-26 21:52:27 UTC
That is an interesting error. It happens in recursive directory removal function, so either that is broken in CPython or it's some kind of fancy race condition (gpg-agent being started implicitly, then cleaning up after itself?).

(CC-ing gnupg maintainers for help)
Comment 3 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-11-26 22:04:36 UTC
(In reply to Michał Górny from comment #2)
> That is an interesting error. It happens in recursive directory removal
> function, so either that is broken in CPython or it's some kind of fancy
> race condition (gpg-agent being started implicitly, then cleaning up after
> itself?).
> 
> (CC-ing gnupg maintainers for help)

the latter isn't an impossibility, the sockets are removed by gpg-agent when it is shut down, and yes, gpg-agent is implicitly started when running gpg, as all secret key operations are performed there. That said, it would be odd if this only happen on a specific architecture in that case?

one way to go could be a gpgconf --kill gpg-agent ahead of reading the list for removal of the rest, that would provide a structured approach avoiding the race at least.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-11-26 22:05:49 UTC
But does that guarantee that the agent is fully terminated before it returns?
Comment 5 Larry the Git Cow gentoo-dev 2017-11-26 23:18:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b39ae9cd1bc06c2f0f523d030941d8d66438355

commit 2b39ae9cd1bc06c2f0f523d030941d8d66438355
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2017-11-26 23:14:55 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2017-11-26 23:18:29 +0000

    app-portage/gemato: Bump to v8
    
    Closes: https://bugs.gentoo.org/638924

 app-portage/gemato/Manifest        |  1 +
 app-portage/gemato/gemato-8.ebuild | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)