Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487192 - sys-libs/timezone-data-2013g: failed at pkg_setup with "mv posix .gentoo-upgrade"
Summary: sys-libs/timezone-data-2013g: failed at pkg_setup with "mv posix .gentoo-upgr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 521862
  Show dependency tree
 
Reported: 2013-10-07 09:01 UTC by Alexander
Modified: 2014-09-01 01:29 UTC (History)
4 users (show)

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


Attachments
Build log and output of emerge --info (file_487192.txt,6.65 KB, text/plain)
2013-10-07 09:01 UTC, Alexander
Details
build.log (build.log,1.39 KB, text/x-log)
2013-10-07 10:06 UTC, Alexander
Details
die.env (die.env,194.20 KB, text/plain)
2013-10-07 10:22 UTC, Alexander
Details
eclass-debug.log (eclass-debug.log,2.85 KB, text/x-log)
2013-10-07 10:22 UTC, Alexander
Details
build.log for emerge --debug (build.log,160.68 KB, text/x-log)
2013-10-07 10:35 UTC, Alexander
Details
build log (emerge --debug) (build.log,160.76 KB, text/x-log)
2013-10-07 20:59 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2013-10-07 09:01:12 UTC
Created attachment 360292 [details]
Build log and output of emerge --info

emerge timezone-data-2013g fails here:

 * Call stack:
 *                    ebuild.sh, line  93:  Called pkg_setup
 *   timezone-data-2013g.ebuild, line  33:  Called die
 * The specific snippet of code:
 *                      mv posix .gentoo-upgrade || die

with a message "mv: ‘posix’ and ‘.gentoo-upgrade/posix’ are the same file".
Comment 1 Sergey Popov gentoo-dev 2013-10-07 09:38:56 UTC
Do NOT CC arch teams on your own

Also, you do not post actual build.log file contents, closing as NEEDINFO
Comment 2 Alexander 2013-10-07 10:06:14 UTC
Created attachment 360300 [details]
build.log
Comment 3 Sergey Popov gentoo-dev 2013-10-07 10:15:41 UTC
And again, you did not attach full build.log

Attach file, that you can find(if you did not redefine portage tmp dir) at /var/tmp/portage/sys-libs/timezone-data-2013g/temp/build.log
Comment 4 Alexander 2013-10-07 10:22:35 UTC
Created attachment 360302 [details]
die.env
Comment 5 Alexander 2013-10-07 10:22:59 UTC
Created attachment 360304 [details]
eclass-debug.log
Comment 6 Alexander 2013-10-07 10:24:04 UTC
(In reply to Sergey Popov from comment #3)
> And again, you did not attach full build.log
> 
> Attach file, that you can find(if you did not redefine portage tmp dir) at
> /var/tmp/portage/sys-libs/timezone-data-2013g/temp/build.log

Excuse me, but this IS the build.log. If you want more debug output than it gives by default, please tell me how to make it more verbose.

There are two more files there, I'm attaching them as well.
Comment 7 Alexander 2013-10-07 10:35:04 UTC
Created attachment 360306 [details]
build.log for emerge --debug
Comment 8 Sergey Popov gentoo-dev 2013-10-07 10:42:40 UTC
Ah, sorry for that, did not catch that error happens in pkg_setup(), that's why log is so short - my bad.

Does not confirm this issue, while trying to upgrade from sys-libs/timezone-data-2013d(on stable) or from sys-libs/timezone-data-2013f-r1(on unstable)

Assigning to maintainer
Comment 9 Xavier Miller (RETIRED) gentoo-dev 2013-10-07 20:58:37 UTC
Same problem for me : OK on an  ~amd64 config, but on on a ~x86 config

emerge --info '=sys-libs/timezone-data-2013g::gentoo'
Portage 2.2.7 (default/linux/x86/13.0/desktop, gcc-4.8.1, glibc-2.17, 3.11.4-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.11.4-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.2
KiB Mem:     1539832 total,   1005796 free
KiB Swap:    1572860 total,   1572860 free
Timestamp of tree: Mon, 07 Oct 2013 14:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 i686-gentoo-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo local proaudio
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE freedist as-is"
CBUILD="i686-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
CHOST="i686-gentoo-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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/var/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /var/lib/layman/pro-audio"
USE="X a52 aac acpi alsa branding bzip2 cairo cli cracklib crypt cups cxx dbus dri dts emboss encode exif fam firefox flac gif gpm gtk iconv jack jpeg lcms libnotify libsamplerate mad mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp osc pam pango pcre pdf png ppds qt4 readline session sndfile spell sqlite sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wmf wxwidgets x264 x86 xcb xinerama xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel usb-audio virmidi" 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="df interface irq load memory rrdtool swap syslog" 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="keyboard synaptics mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="arm i386" QEMU_USER_TARGETS="arm i386" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
=================================================================
                        Package Settings
=================================================================

sys-libs/timezone-data-2013g was built with the following:
USE="nls"
Comment 10 Xavier Miller (RETIRED) gentoo-dev 2013-10-07 20:59:08 UTC
Created attachment 360352 [details]
build log (emerge --debug)
Comment 11 Arfrever Frehtes Taifersar Arahesis 2013-10-08 00:27:35 UTC
This problem probably occurs for these users, who installed broken revision 1.1 of timezone-data-2013f-r1.ebuild, which was failing to delete ${EROOT}usr/share/zoneinfo/.gentoo-upgrade directory:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/timezone-data/timezone-data-2013f-r1.ebuild?view=log

Workaround:
rm -r /usr/share/zoneinfo/.gentoo-upgrade
Comment 12 Alexander 2013-10-08 06:22:57 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #11)
> This problem probably occurs for these users, who installed broken revision
> 1.1 of timezone-data-2013f-r1.ebuild, which was failing to delete
> ${EROOT}usr/share/zoneinfo/.gentoo-upgrade directory:
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/timezone-
> data/timezone-data-2013f-r1.ebuild?view=log
> 
> Workaround:
> rm -r /usr/share/zoneinfo/.gentoo-upgrade

Thanks, this worked for me.
Comment 13 Xavier Miller (RETIRED) gentoo-dev 2013-10-08 06:25:03 UTC
(In reply to Alexander from comment #12)
> (In reply to Arfrever Frehtes Taifersar Arahesis from comment #11)
> > This problem probably occurs for these users, who installed broken revision
> > 1.1 of timezone-data-2013f-r1.ebuild, which was failing to delete
> > ${EROOT}usr/share/zoneinfo/.gentoo-upgrade directory:
> > http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/timezone-
> > data/timezone-data-2013f-r1.ebuild?view=log
> > 
> > Workaround:
> > rm -r /usr/share/zoneinfo/.gentoo-upgrade
> 
> Thanks, this worked for me.

Worked for me too ! Thank you for the workaround.
Comment 14 SpanKY gentoo-dev 2013-10-12 19:22:01 UTC
should be all set now in the tree; thanks for the report!

Commit message: Clear out previous upgrade dir if around
http://sources.gentoo.org/sys-libs/timezone-data/timezone-data-2013f-r1.ebuild?r1=1.2&r2=1.3
http://sources.gentoo.org/sys-libs/timezone-data/timezone-data-2013g.ebuild?r1=1.1&r2=1.2