Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge sending bad uid/gid to tar
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
AKF_SDS
n00b
n00b


Joined: 03 Apr 2013
Posts: 22

PostPosted: Thu May 16, 2013 1:09 am    Post subject: emerge sending bad uid/gid to tar Reply with quote

Attempting to emerge dev-util/boost-build fails at unpacking with:

Code:
Cannot change ownership to uid 501, gid 0: Invalid argument


I've verified that I'm running as root:

Code:
root@computer ~ # echo $EUID
0
root@computer ~ # echo $UID
0
root@computer ~ # whoami
root


I've found a solution online, that suggests passing these flags:

Code:
--owner root --group root --no-same-owner


I can't pass tar flags directly to emerge.
Is anyone aware of an emerge equivalent?
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8828

PostPosted: Thu May 16, 2013 2:03 am    Post subject: Reply with quote

Perhaps you should debug why the ownership cannot be changed. Many other users built that package successfully. What is the output of emerge --info ; mount?
Back to top
View user's profile Send private message
AKF_SDS
n00b
n00b


Joined: 03 Apr 2013
Posts: 22

PostPosted: Thu May 16, 2013 7:09 pm    Post subject: Reply with quote

Code:
Portage 2.2.01.21938-prefix (prefix/windows/interix/3.5/x86, gcc-4.2.4, unavailable, 3.5 x86)
=================================================================
System uname: Interix-3.5-x86-32bit
Timestamp of tree: Tue, 14 May 2013 22:06:08 +0000
ld GNU ld version 2.13.90 20021111
app-shells/bash:      4.2_p10
dev-lang/python:      2.7.2
dev-util/pkgconfig:   0.25-r2
sys-devel/autoconf:   2.68
sys-devel/automake:   1.11.1
sys-devel/binutils:   2.21.51.0.7
sys-devel/gcc:        4.2.4-r01.4
sys-devel/gcc-config: 1.8-r00.1
sys-devel/libtool:    2.4-r01.1
sys-devel/make:       3.82
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x86-interix"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i586-pc-interix3.5"
CFLAGS=""
CHOST="i586-pc-interix3.5"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS=""
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://gentoo.inode.at"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/opt/gentoo/var/tmp"
PORTDIR="/opt/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X cracklib cxx modules ncurses prefix readline ssl x86-interix zlib" 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="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="Interix" 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 mouse" KERNEL="Interix" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

bash: mount: command not found
Back to top
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 3998

PostPosted: Thu May 16, 2013 7:43 pm    Post subject: Reply with quote

Ah, so you are running prefix-portage, in particular with non-root privileges. Then it is clear that portage cannot change owner.
I would guess this is a bug since the ebuild would need to handle prefix separately.
Unless somebody else here proves me wrong, I suggest to report it to bugzilla.
Back to top
View user's profile Send private message
AKF_SDS
n00b
n00b


Joined: 03 Apr 2013
Posts: 22

PostPosted: Sat May 18, 2013 2:27 am    Post subject: Reply with quote

I replicated the issue while attempting a manual installation.
This was resolved by running

Quote:
tar -zxvf ./boost_1_53_0.tar.gz --no-same-owner


I've never had this issue with tar before, so I'm guessing it has something to do with the boost tar file itself.

Posting a bug report to the boost team.
Back to top
View user's profile Send private message
AKF_SDS
n00b
n00b


Joined: 03 Apr 2013
Posts: 22

PostPosted: Sat May 18, 2013 6:30 pm    Post subject: Reply with quote

Boost ticket here.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum