Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600426 - =app-i18n/ibus-1.5.5 fails postrm phase with exit value 1 (no such file or directory)
Summary: =app-i18n/ibus-1.5.5 fails postrm phase with exit value 1 (no such file or di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 19:05 UTC by Émeric Maschino
Modified: 2016-12-07 23:30 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,1.83 KB, text/plain)
2016-11-21 19:05 UTC, Émeric Maschino
Details
environment (environment,135.80 KB, text/plain)
2016-11-21 19:06 UTC, Émeric Maschino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2016-11-21 19:05:49 UTC
Created attachment 453988 [details]
build.log

Hi,

While rebuilding my whole tree, ibus-1.5.5 fails with:

/var/tmp/portage/._unmerge_/app-i18n/ibus-1.5.5/temp/environment: line 1837: pushd: /var/tmp/portage/._unmerge_/app-i18n/ibus-1.5.5/image/: No such file or directory
 * ERROR: app-i18n/ibus-1.5.5::gentoo failed (postrm phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called pkg_postrm
 *   environment, line 2450:  Called gnome2_schemas_savelist
 *   environment, line 1837:  Called die
 * The specific snippet of code:
 *       pushd "${ED}" > /dev/null || die;
 * 
 * If you need support, post the output of `emerge --info '=app-i18n/ibus-1.5.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-i18n/ibus-1.5.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/._unmerge_/app-i18n/ibus-1.5.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/._unmerge_/app-i18n/ibus-1.5.5/temp/environment'.
 * Working directory: '/var/tmp/portage/._portage_reinstall_.dhnwpfvl/pym'
 * S: '/var/tmp/portage/._unmerge_/app-i18n/ibus-1.5.5/work/ibus-1.5.5'
!!! FAILED postrm: 1
 * The 'postrm' phase of the 'app-i18n/ibus-1.5.5' package has failed with
 * exit value 1.
 * 
 * The problem occurred while executing the ebuild file named
 * 'ibus-1.5.5.ebuild' located in the '/var/db/pkg/app-i18n/ibus-1.5.5'
 * directory. If necessary, manually remove the environment.bz2 file and/or
 * the ebuild file located in that directory.
 * 
 * Removal of the environment.bz2 file is preferred since it may allow the
 * removal phases to execute successfully. The ebuild will be sourced and
 * the eclasses from the current portage tree will be used when necessary.
 * Removal of the ebuild file will cause the pkg_prerm() and pkg_postrm()
 * removal phases to be skipped entirely.

The proposed solutions didn't solve the problem and emerging ibus again fails the same.

     Émeric
Comment 1 Émeric Maschino 2016-11-21 19:06:25 UTC
Created attachment 453990 [details]
environment
Comment 2 Émeric Maschino 2016-11-21 19:06:59 UTC
emerge --info output:

Portage 2.3.0 (python 3.4.3-final-0, default/linux/ia64/13.0/desktop/gnome/systemd, gcc-4.9.4, glibc-2.22-r4, 4.1.15-gentoo-r1 ia64)
=================================================================
System uname: Linux-4.1.15-gentoo-r1-ia64-Madison-with-gentoo-2.2
KiB Mem:    24984848 total,  23337392 free
KiB Swap:     524272 total,    524272 free
Timestamp of repository gentoo: Thu, 17 Nov 2016 21:30:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.5.4::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

my_ebuilds
    location: /var/lib/layman/my_ebuilds
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mtune=itanium2"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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="-O2 -pipe -mtune=itanium2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -mtune=itanium2"
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 userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -mtune=itanium2"
GENTOO_MIRRORS="ftp://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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 a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvdr eds encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets xattr xcb xml xv xvid zlib" ALSA_CARDS="fm801" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="radeon fbdev" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Émeric Maschino 2016-11-21 19:07:59 UTC
emerge -pqv output:

[ebuild   R   ] app-i18n/ibus-1.5.5  USE="X gtk gtk3 introspection nls python wayland -deprecated -gconf {-test} -vala" PYTHON_TARGETS="python2_7"
Comment 4 Kobboi 2016-11-23 20:56:54 UTC
I can reproduce by emerging that version of ibus and then emerging it again to trigger its pkg_postrm phase.

As a semi-dirty workaround while I take a closer look (but I don't know if you consider workarounds an option), you could consider removing the entire /var/db/pkg/app-i18n/ibus-1.5.5/ directory, effectively erasing portage's knowledge about that package so that its pkg_postrm is not triggered, and doing the emerge.
Comment 5 Kobboi 2016-11-23 21:03:39 UTC
Also note that pkg_post* phases are executed after your "new" package has already been installed onto your filesystem. So if you are rebuilding because of nicer compilers or COPTS, those are in effect. There is just a hickup in cleaning out some files that were created by the package post-build (and therefore not recorded in the list of the files installed by that package)
Comment 6 Kobboi 2016-11-23 21:25:36 UTC
In fact, everything before 1.5.10 is giving me the same issue. Because 1.5.10 is table on most popular arches, I guess this has gone unnoticed.
Comment 7 Kobboi 2016-11-23 21:26:26 UTC
(In reply to Kobboi from comment #6)
> In fact, everything before 1.5.10 is giving me the same issue. Because
> 1.5.10 is table on most popular arches, I guess this has gone unnoticed.

stable*
Comment 8 Kobboi 2016-11-23 21:48:16 UTC
This is sort of a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=566956 but should also be fixed for 1.5.5, which is the latest stable for ia64 and sparc.

Proposed fix as github PR:

https://github.com/gentoo/gentoo/pull/2902
Comment 9 Émeric Maschino 2016-11-24 18:00:16 UTC
(In reply to Kobboi from comment #8)
> This is sort of a duplicate of
> https://bugs.gentoo.org/show_bug.cgi?id=566956 but should also be fixed for
> 1.5.5, which is the latest stable for ia64 and sparc.
> 
> Proposed fix as github PR:
> 
> https://github.com/gentoo/gentoo/pull/2902

Patch successfully tested here on ia64 for ibus-1.5.5 ebuild.

Thanks,

     Émeric
Comment 10 Yixun Lan archtester gentoo-dev 2016-12-07 23:30:29 UTC
fixed in tree, thanks for reporting this.