Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523422 - media-libs/qhull-2012.1-r3::gentoo_prefix failed to install
Summary: media-libs/qhull-2012.1-r3::gentoo_prefix failed to install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 07:03 UTC by Marko Vendelin
Modified: 2014-09-26 11:19 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 Marko Vendelin 2014-09-22 07:03:01 UTC
I have failed to upgrade qhull to the latest version. This is probably due to the use of ${ROOT} in ebuild. Error is:

 * ERROR: media-libs/qhull-2012.1-r3::gentoo_prefix failed (preinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called __call-ebuildshell 'pkg_preinst'
 *   environment, line 214:  Called pkg_preinst
 *   environment, line 2451:  Called die
 * The specific snippet of code:
 *       rm -rf "${ROOT}"usr/include/qhull || die

Resulting in 

rm: cannot remove ‘/usr/include/qhull/io.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/merge.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/user.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/poly.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/qset.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/mem.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/qhull.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/qhull_a.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/geom.h’: Permission denied
rm: cannot remove ‘/usr/include/qhull/stat.h’: Permission denied
Comment 1 Marko Vendelin 2014-09-22 07:03:22 UTC
emerge --info '=media-libs/qhull-2012.1-r3::gentoo_prefix'
Portage 2.2.10.1-prefix (python 2.7.6-final-0, prefix/linux/amd64, gcc-4.7.3, unavailable, 2.6.32-431.23.3.el6.centos.plus.x86_64 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-431.23.3.el6.centos.plus.x86_64-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630L_0_@_2.00GHz-with-centos-6.5-Final
KiB Mem:    65943188 total,  23059864 free
KiB Swap:   67108856 total,  67105036 free
Timestamp of tree: Mon, 22 Sep 2014 06:09:15 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-lang/python:          2.7.6-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.8-r00.1
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
Repositories: gentoo_prefix science ioc-science
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O2 -pipe -march=native"
CHOST="x86_64-pc-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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -O2 -pipe -march=native"
DISTDIR="/share/envs/ioc/sysbio/gentoo/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j16"
PKGDIR="/share/envs/ioc/sysbio/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/share/envs/ioc/sysbio/gentoo/"
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="/share/envs/ioc/sysbio/gentoo/var/tmp"
PORTDIR="/share/envs/ioc/sysbio/gentoo/usr/portage"
PORTDIR_OVERLAY="/share/envs/ioc/sysbio/gentoo/var/lib/layman/science /share/envs/ioc/sysbio/gentoo/var/lib/layman/ioc-sysbio"
USE="X amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules ncurses nls nptl openmp pcre prefix readline session sse sse2 ssl tcpd unicode 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="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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 2 Marko Vendelin 2014-09-22 07:04:39 UTC
emerge -pqv '=media-libs/qhull-2012.1-r3::gentoo_prefix'


[ebuild     U ] media-libs/qhull-2012.1-r3 [2012.1-r1] USE="-doc -static-libs"
Comment 3 Chetan Reddy 2014-09-26 11:15:29 UTC
It needs a small change to work.

37c37
<       rm -rf "${ROOT}"usr/include/qhull || die
---
>       rm -rf "${EPREFIX}"usr/include/qhull || die
Comment 4 Fabian Groffen gentoo-dev 2014-09-26 11:19:02 UTC
thanks, fixed