Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584760 - FEATURES="xattr" failure results in broken merge
Summary: FEATURES="xattr" failure results in broken merge
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23851
  Show dependency tree
 
Reported: 2016-06-01 14:01 UTC by Michael Palimaka (kensington)
Modified: 2016-12-31 11:06 UTC (History)
2 users (show)

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


Attachments
build-1.log (build-1.log,132.43 KB, text/plain)
2016-06-01 14:01 UTC, Michael Palimaka (kensington)
Details
build-2.log (build-2.log,132.29 KB, text/x-log)
2016-06-01 14:01 UTC, Michael Palimaka (kensington)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2016-06-01 14:01:20 UTC
Created attachment 436020 [details]
build-1.log

On a really old system, I tried to update polkit from 0.112-r1 to 0.113, which failed because I didn't have the filesystem mounted correctly:

--- /usr/lib/polkit-1/
!!! Failed to copy extended attributes. In order to avoid this error,
!!! set FEATURES="-xattr" in make.conf.
!!! copy /var/tmp/portage/sys-auth/polkit-0.113/image/usr/lib/polkit-1/polkitd -> /usr/lib/polkit-1/polkitd failed.
!!! Filesystem containing file '/usr/lib/polkit-1/polkitd#new' does not support extended attribute 'user.pax.flags'

After remounting the filesystem, another upgrade attempt failed due to file collisions:

package sys-auth/polkit-0.113 NOT merged

Detected file collision(s):

        /usr/share/doc/polkit-0.113/TODO.bz2
        /usr/share/doc/polkit-0.113/HACKING.bz2
        /usr/share/doc/polkit-0.113/NEWS.bz2
        /usr/share/doc/polkit-0.113/README.bz2

Indeed, it looks like the failed merge copied new files to the live filesystem:

Checking sys-auth/polkit-0.112-r1 ...
 MD5-DIGEST: /usr/share/gir-1.0/PolkitAgent-1.0.gir
 MD5-DIGEST: /usr/share/gir-1.0/Polkit-1.0.gir
 MTIME: /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
 MD5-DIGEST: /usr/share/polkit-1/actions/org.freedesktop.policykit.policy
 MD5-DIGEST: /usr/share/man/man8/polkitd.8.bz2
 MD5-DIGEST: /usr/share/man/man8/polkit.8.bz2
 MD5-DIGEST: /usr/share/man/man1/pkaction.1.bz2
 MD5-DIGEST: /usr/share/man/man1/pkcheck.1.bz2
 MD5-DIGEST: /usr/share/man/man1/pkexec.1.bz2
 MD5-DIGEST: /usr/share/man/man1/pkttyagent.1.bz2
 MD5-DIGEST: /usr/lib64/girepository-1.0/Polkit-1.0.typelib
 MD5-DIGEST: /usr/lib64/girepository-1.0/PolkitAgent-1.0.typelib
 MTIME: /usr/lib64/libpolkit-agent-1.so
 MD5-DIGEST: /usr/lib64/libpolkit-gobject-1.so.0.0.0
 MTIME: /usr/lib64/libpolkit-gobject-1.so.0
 MD5-DIGEST: /usr/lib64/libpolkit-agent-1.so.0.0.0
 MTIME: /usr/lib64/libpolkit-gobject-1.so
 MD5-DIGEST: /usr/lib64/pkgconfig/polkit-agent-1.pc
 MD5-DIGEST: /usr/lib64/pkgconfig/polkit-gobject-1.pc
 MTIME: /usr/lib64/libpolkit-agent-1.so.0
 MTIME: /usr/lib/systemd/system/polkit.service
  * 90 out of 111 files are good
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-06-01 14:01:39 UTC
Created attachment 436022 [details]
build-2.log
Comment 2 Michael Palimaka (kensington) gentoo-dev 2016-06-01 14:02:10 UTC
Portage 2.2.28 (python 2.7.10-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.22-r4, 3.11.9-hardened-gnu x86_64)
=================================================================
System uname: Linux-3.11.9-hardened-gnu-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32780832 total,  26460504 free
KiB Swap:    1951804 total,   1951804 free
Timestamp of repository gentoo: Wed, 01 Jun 2016 10:15:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.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.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.2::gentoo, 4.9.3::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.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

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

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/ http://distfiles.gentoo.org/"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j4"
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 alsa amd64 apng berkdb bzip2 cairo cdda cddb chm cli consolekit cracklib crypt cups cxx dbus djvu dri dvd ebook exif flac fontconfig gdbm gif gtk gtk2 gtk3 hardened iconv icu ipv6 jpeg justify lzma matroska mmx mmxext mng modules mp3 mpeg mtp multilib mysql ncurses networkmanager nls nptl ogg opengl openmp pam pax_kernel pcre pie png policykit qt3support qt4 qt5 readline seccomp session sse sse2 ssl ssp svg taglib tcpd theora threads tiff truetype udev unicode urandom vorbis wayland xattr xtpax zlib" 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" APACHE2_MODULES="dav access_compat alias auth_basic authn_core authn_default auth_digest authn_file authz_core authz_host authz_user autoindex cgi deflate dir filter headers include info log_config mime mime_magic negotiation proxy proxy_http rewrite socache_shmcb speling status unixd 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" CPU_FLAGS_X86="mmx mmxext sse sse2" DRACUT_MODULES="crypt crypt-gpg lvm mdraid" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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