Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235761 - openssh fails due to coreutils built with USE=xattr: Operation not supported
Summary: openssh fails due to coreutils built with USE=xattr: Operation not supported
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 11:15 UTC by Philipp Riegger
Modified: 2009-02-22 00:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Riegger 2008-08-26 11:15:41 UTC
While emerging openssh, i get the following error:

mkdir /var/tmp/portage/net-misc/openssh-5.1_p1-r1/image/etc/ssh
cp: setting attributes for `/var/tmp/portage/net-misc/openssh-5.1_p1-r1/temp/ssh
d': Operation not supported
cp: setting attributes for `/var/tmp/portage/net-misc/openssh-5.1_p1-r1/temp/ssh
d': Operation not supported
cp: setting attributes for `/var/tmp/portage/net-misc/openssh-5.1_p1-r1/temp/sshd': Operation not supported
 * 
 * ERROR: net-misc/openssh-5.1_p1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 3108:  Called newpamd '/usr/portage/net-misc/openssh/files/sshd.pam_include.2' 'sshd'
 *             environment, line 2729:  Called die
 * The specific snippet of code:
 *       newins "$1" "$2" ) || die "failed to install $1 as $2";
 *  The die message:
 *   failed to install /usr/portage/net-misc/openssh/files/sshd.pam_include.2 as sshd
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.

The following USE-flags are used:

[ebuild     U ] net-misc/openssh-5.1_p1-r1 [5.1_p1] USE="pam tcpd -X -X509 -hpn -kerberos -ldap -libedit (-selinux) -skey -smartcard -static" 0 kB 

My emerge --info:

Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-AMD_Athlon-tm-_XP_2200+-with-glibc2.0
Timestamp of tree: Mon, 25 Aug 2008 21:24:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r14, 2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/space/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="buildpkg collision-protect distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://gentoo.inode.at/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK=""
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j1 -s"
PKGDIR="/mnt/space/gentoo/packages/troy"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/stoile /usr/local/layman/ltsp /usr/local/layman/science /usr/local/layman/sunrise /usr/local/layman/java-experimental"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi afs alsa apm audiofile avahi berkdb blas branding bzip2 cairo caps cdr cli cracklib crypt cups curl daap dbus doc dri dvd dvdr dvdread eds emboss encode evo examples expat fam ffmpeg firefox flac fortran gdbm gif gimp gnome gnome-keyring gphoto2 gpm graphviz gstreamer gtk hal hardened iconv idn imagemagick imap imlib ipv6 isdnlog java5 jpeg lapack latex lcms ldap libnotify lzo mad matroska midi mikmod mmx mono motif mp3 mpeg mudflap musepack musicbrainz mysql nautilus ncurses nls nntp nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pcre pdf perl png ppds pppd python quicktime readline reflection samba sdl session spell spl sse ssl startup-notification subversion svg sysfs syslog tcl tcpd tetex theora threads tiff tk truetype unicode usb vorbis win32codecs wmf x86 xattr xface xml xml2 xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, FFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-08-26 18:15:23 UTC
You built coreutils with USE=acl & USE=xattr (the issue is with xattr) but don't have kernel or filesystem support for xattrs.

You need to fix your setup.
Comment 2 Philipp Riegger 2008-08-27 07:57:14 UTC
Maybe i misunderstood the acl/xattr concept. I switched to using it recently, compiled the support in the kernel and added acl and user_xattr to the mount options. Do i have to change the ext3-filesystem for that?

I don't have acl and xattr on my nfs mounts (/home, /usr/portage) because it's not possibel there, AFAIK.
Comment 3 Philipp Riegger 2008-08-28 09:48:13 UTC
I still don't understand this. I have xattr enabled on /var/tmp and /etc, so I don't understand what is the problem here.

rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,noatime,errors=continue,user_xattr,acl,data=ordered)
...
/dev/mapper/space-tmp on /var/tmp type ext3 (rw,noatime,user_xattr,acl)
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-09-09 02:56:34 UTC
Not a LPK/HPN issue. Re-assigning to base-system.
Comment 5 SpanKY gentoo-dev 2008-10-26 04:11:17 UTC
probably related to Bug 219844
Comment 6 SpanKY gentoo-dev 2009-02-22 00:13:20 UTC
should be fixed with coreutils-7.1