Page 1 of 1

Unable to install package from overlay

Posted: Thu Dec 19, 2019 1:16
by Duskmourn
I've been trying to install Citra, a 3DS emulator, from the unofficial Vampire overlay. The Emerge fails every time with this error

Code: Select all

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) games-emulation/citra-9999::vampire
>>> Unpacking source...
mkdir: cannot create directory ‘/usr/portage/distfiles’: Permission denied
 * ERROR: games-emulation/citra-9999::vampire failed (unpack phase):
 *   Unable to create /usr/portage/distfiles/git3-src
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_unpack
 *   environment, line 3675:  Called git-r3_src_unpack
 *   environment, line 2557:  Called git-r3_src_fetch
 *   environment, line 2551:  Called git-r3_fetch
 *   environment, line 2319:  Called _git-r3_set_gitdir 'https://github.com/citra-emu/citra.git'
 *   environment, line  646:  Called die
 * The specific snippet of code:
 *           mkdir -p "${EGIT3_STORE_DIR}" ) || die "Unable to create ${EGIT3_STORE_DIR}";
 * 
 * If you need support, post the output of `emerge --info '=games-emulation/citra-9999::vampire'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/citra-9999::vampire'`.
 * The complete build log is located at '/var/tmp/portage/games-emulation/citra-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/citra-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/citra-9999/work'
 * S: '/var/tmp/portage/games-emulation/citra-9999/work/citra-9999'

>>> Failed to emerge games-emulation/citra-9999, Log file:

>>>  '/var/tmp/portage/games-emulation/citra-9999/temp/build.log'

 * Messages for package games-emulation/citra-9999:

 * ERROR: games-emulation/citra-9999::vampire failed (unpack phase):
 *   Unable to create /usr/portage/distfiles/git3-src
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_unpack
 *   environment, line 3675:  Called git-r3_src_unpack
 *   environment, line 2557:  Called git-r3_src_fetch
 *   environment, line 2551:  Called git-r3_fetch
 *   environment, line 2319:  Called _git-r3_set_gitdir 'https://github.com/citra-emu/citra.git'
 *   environment, line  646:  Called die
 * The specific snippet of code:
 *           mkdir -p "${EGIT3_STORE_DIR}" ) || die "Unable to create ${EGIT3_STORE_DIR}";
 * 
 * If you need support, post the output of `emerge --info '=games-emulation/citra-9999::vampire'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/citra-9999::vampire'`.
 * The complete build log is located at '/var/tmp/portage/games-emulation/citra-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/citra-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/citra-9999/work'
 * S: '/var/tmp/portage/games-emulation/citra-9999/work/citra-9999'
And the output of emerge --info '=games-emulation/citra-9999::vampire is as follows

Code: Select all

Portage 2.3.69 (python 3.6.9-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.29-r2, 5.3.0-sabayon x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.3.0-sabayon-x86_64-AMD_A8-5600K_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.6
KiB Mem:     8160360 total,    920552 free
KiB Swap:    4095996 total,   4054576 free
Timestamp of repository gentoo: Wed, 18 Dec 2019 23:45:01 +0000
Head commit of repository gentoo: 8b28d76af690b0c59e2e621f609417122cc3b7aa
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::sabayon-distro
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo, 2.32-r1::gentoo
sys-devel/gcc:            8.2.0-r6::sabayon-distro
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

user_defined
    location: /usr/local/portage
    masters: gentoo
    priority: 0

vampire
    location: /var/lib/layman/vampire
    sync-type: laymansync
    sync-uri: https://github.com/TheCrueltySage/vampire-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/entropy /etc/init.d /usr/share/config /usr/share/config/kdm /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/sandbox.d /etc/skel /etc/terminfo /lib/modules"
CXXFLAGS="-O2 -march=x86-64 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ rsync://gentoo.bloodhost.ru/gentoo-distfiles ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ rsync://mirror.neolabs.kz/gentoo http://ftp.gentoo.bg/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://ftp.cc.uoc.gr/mirrors/linux/gentoo/ ftp://mirrors.tera-byte.com/pub/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nl_NL nn pa pl pt pt_BR ro ru rw se sk sl sr [email protected] ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh"
MAKEOPTS="-j8 -s"
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 accessibility acl acpi aiglx aim alsa amd64 artswrappersuid audiofile avahi bash-completion berkdb bidi bluetooth bluray bzip2 cairo cdda cddb cdr cjk cli cpudetection crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread dvi emboss encode exif fam fame fat ffmpeg firefox flac foomatic-db fortran freetype gcj gdbm gif gimpprint gmp gnutls gphoto2 gpm gsm gtk hfs http2 iconv icq icu ieee1394 imap inotify ipod ipv6 irc irda jabber jack jfs joystick jpeg kdeenablefinal kdehiddenvisibility kerberos lame lcd lcms ldap libnotify libtirpc live lm_sensors logind lzo mad mail matroska mjpeg mmx mng mozdevelop mp3 mp3rtp mp4 mpeg msn multilib musepack musicbrainz ncurses network nls nptl nsplugin ntfs ogg openal openexr opengl openmp opus pam pango pcmcia pcre pda pdf perl png policykit ppds pulseaudio python qt5 rar rdesktop readline real reiserfs rss scanner sdl seccomp slp speex spell split-usr ssl startup-notification stream svg sysfs systemd tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 visualization vorbis wayland wifi win32codecs wmf wxwidgets x264 x265 xattr xcb xfs xine xinerama xml xpm xprint xulrunner xv xvid xvmc yahoo zeroconf zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="evdev void" KERNEL="linux" L10N="en af ar az bg bn br bs ca cs cy da de el en-GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt-BR ro ru rw se sk sl sr sr-Latn ss sv ta tg tr uk uz vi zh-CN zh-TW es-AR es-ES fy ga gu nb nn pt-PT sv zh" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport wiki-publisher" LIRC_DEVICES="audio audio_alsa devinput pctv" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 arm cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeonsi radeon" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I currently don't have any packages from Portage installed, so it's obviously an issue with Sabayon.

Re: Unable to install package from overlay

Posted: Thu Dec 19, 2019 11:59
by sabayonino
You have permissiions issue
mkdir: cannot create directory ‘/usr/portage/distfiles’: Permission denied

try to update portage tree first

Re: Unable to install package from overlay

Posted: Thu Dec 19, 2019 23:44
by Duskmourn
Running emerge --sync to update the Portage tree doesn't change anything.

Re: Unable to install package from overlay

Posted: Fri Dec 20, 2019 16:39
by Stupot
Let's start by looking at the directory sabayonino pointed out.

Code: Select all

sabayon /home/stupot # ls -la /usr/portage/distfiles/.
total 21864320
drwxrwxr-x   2 root    portage      4096 Nov  8 10:36 .
drwxr-xr-x 176 root    root         4096 Dec 20 10:13 ..
...
What are the permissions on /usr/portage/distfiles/ If it doesn't exist, what about just /usr/portage ?