Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627724 - dev-python/appdirs-1.4.3 fails with infinite recursion
Summary: dev-python/appdirs-1.4.3 fails with infinite recursion
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
: 639900 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-12 20:59 UTC by Daniel Santos
Modified: 2017-12-07 00:32 UTC (History)
5 users (show)

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


Attachments
build log (appdirs-1.4.3:20170812-205850.log,85.64 KB, text/x-log)
2017-08-12 20:59 UTC, Daniel Santos
Details
environment file (environment.gz,23.99 KB, application/gzip)
2017-08-12 21:00 UTC, Daniel Santos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2017-08-12 20:59:04 UTC
Created attachment 488712 [details]
build log

This happened in an x32 Gentoo chroot that I was building to be a VM.  I suspected it was x32 so I tried it on a non-x32 chroot and it still happened.  So I thought maybe it was due to something from being a chroot, and booted the VM and I still can reproduce it.

I've started from a fairly new stage3 and did an emerge -ev @world.  Steps to reproduce:
1. (optional) build a package for dev-python/appdirs-1.4.3 so you can recover.
2. emerge -C dev-python/appdirs
3. emerge -1v --nodeps =dev-python/appdirs-1.4.3
4. (optional recovery) emerge -1kv --nodeps =dev-python/appdirs-1.4.3


$ emerge --info dev-python/appdirs python
Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.23-r3, 4.9.16-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:     2048524 total,   1718576 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 07 May 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

crossdev
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -mtune=sandybridge -O2 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=sandybridge -mtune=sandybridge -O2 -ggdb"
DISTDIR="/home/distfiles"
EMERGE_DEFAULT_OPTS="-j3 --load-average=11 --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy cgroup compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo rsync://rsync.gtlib.gatech.edu/gentoo rsync://gentoo.cs.uni.edu/gentoo-distfiles"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 --load-average=8.75"
PKGDIR="/home/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="/home/tmp"
USE="X a52 aac aacs acl acpi aes aio alsa amd64 avx berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr clang cli cracklib crypt cups cxx dbus declarative designer device-mapper dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fluidsynth fortran fuse gcj gdbm gif git glamor gpm gstreamer gtk hardened highlight iconv icu ipv6 jpeg jpeg2k kde kipi kwallet lame lcms ldap libnotify libsamplerate llvm lzma lzo mad matroska midi mmx mmxext mng modules mp3 mp4 mpeg mtp multicall multilib multitarget musepack natspec ncurses nls nptl objc objc++ objc-gc ogg opengl openmp opus pam pango pcre pdf perl phonon plasma png policykit popcnt ppds projectm qml qt3support qt4 qt5 rar readline sasl savedconfig sdl seccomp semantic-desktop session sid smp snappy spell spice sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg syslog systemd systemtap taglib tcpd theora threads tiff tremor truetype tty-helpers udev udisks unicode upower usb valgrind vdpau vim-syntax virtio vlc vorbis vpx widgets wxwidgets x264 x265 xattr xcb xcomposite xen xine xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64 32" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="coreboot efi emu multiboot qemu pc" INPUT_DEVICES="keyboard mouse joystick evdev wacom vmmouse" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" LLVM_TARGETS="AMDGPU ARM BPF NVPTX Mips X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="aarch64 arm armeb i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le x86_64" QEMU_USER_TARGETS="aarch64 arm armeb i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le x86_64" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel radeon vesa qxl vmware" XFCE_PLUGINS="brightness clock trash" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-python/appdirs-1.4.3::gentoo was built with the following:
USE="" ABI_X86="64" PYTHON_TARGETS="python2_7 python3_4 -pypy -pypy3 -python3_5 -python3_6"
CFLAGS="-march=native -O2 -g"
CXXFLAGS="-march=native -O2 -g"


dev-lang/python-2.7.12::gentoo was built with the following:
USE="gdbm hardened ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -build -doc -examples (-libressl) -tk -wininst" ABI_X86="64"
CFLAGS="-march=native -O2 -g -fwrapv"
CXXFLAGS="-march=native -O2 -g -fwrapv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L."


dev-lang/python-3.4.5::gentoo was built with the following:
USE="gdbm hardened ipv6 ncurses readline sqlite ssl (threads) xml -build -examples (-libressl) -tk -wininst" ABI_X86="64"
CFLAGS="-march=native -O2 -g -fwrapv"
CXXFLAGS="-march=native -O2 -g -fwrapv"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L."
Comment 1 Daniel Santos 2017-08-12 21:00:28 UTC
Created attachment 488714 [details]
environment file
Comment 2 Daniel Santos 2017-08-12 21:05:16 UTC
If only for the sake of context, the original reason that I unmerged and attempted to remerge the package was this strange anomaly:

 * Installation of a directory is blocked by a file:
 *   '/usr/libx32/python3.4/site-packages/appdirs-1.4.3-py3.4.egg-info'
 * This file will be renamed to a different name:
 *   '/usr/libx32/python3.4/site-packages/appdirs-1.4.3-py3.4.egg-info.backup.0000'

Where the former was a directory and the later a file.  This one occurred on an x32 chroot.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-08-27 04:41:39 UTC
I don't have an x32 profile to test on, but on amd64 it works just fine (tested via ebuild foo.ebuild install
Comment 4 Fab 2017-12-03 17:22:20 UTC
(In reply to Daniel Santos from comment #2)
> If only for the sake of context, the original reason that I unmerged and
> attempted to remerge the package was this strange anomaly:
> 
>  * Installation of a directory is blocked by a file:
>  *   '/usr/libx32/python3.4/site-packages/appdirs-1.4.3-py3.4.egg-info'
>  * This file will be renamed to a different name:
>  *  
> '/usr/libx32/python3.4/site-packages/appdirs-1.4.3-py3.4.egg-info.backup.
> 0000'
> 
> Where the former was a directory and the later a file.

I hit this today on stable arm. In the same time, I hit bug #607164.
Comment 5 Olof Kindgren 2017-12-05 21:42:12 UTC
Got this too by removing appdirs with emerge -C

Solved by installing 1.4.0 first (emerge -1 =dev-python/appdirs-1.4.0) and then emerging 1.4.3 if that helps anyone
Comment 6 Larry the Git Cow gentoo-dev 2017-12-05 22:18:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cf82d83f6fd99d6a5883d128c4dd3ccba9993b8

commit 5cf82d83f6fd99d6a5883d128c4dd3ccba9993b8
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2017-12-05 22:17:22 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-12-05 22:17:57 +0000

    dev-python/appdirs: fix distutils patch
    
    Bug: https://bugs.gentoo.org/627724
    Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7

 dev-python/appdirs/Manifest                          |  4 ++--
 .../appdirs/files/appdirs-1.4.3-distutils.patch      | 20 ++++++++++++++++----
 2 files changed, 18 insertions(+), 6 deletions(-)}
Comment 7 Mike Gilbert gentoo-dev 2017-12-05 22:18:45 UTC
I think the commit referenced in comment 6 should help here. Please let me know.
Comment 8 Mike Gilbert gentoo-dev 2017-12-07 00:31:37 UTC
*** Bug 639900 has been marked as a duplicate of this bug. ***