Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908896 - sys-apps/portage fails to emerge binary xpak from local repository /var/cache/binpkgs
Summary: sys-apps/portage fails to emerge binary xpak from local repository /var/cache...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-20 16:39 UTC by contactopublico57
Modified: 2023-06-22 14:51 UTC (History)
0 users

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 contactopublico57 2023-06-20 16:39:36 UTC
from make.conf: PKGDIR="/var/cache/binpkgs"

sudo emerge --usepkgonly '/var/cache/binpkgs/sys-devel/gcc-12.2.1_p20230428-r1-1.xpak'

*** You need to adjust PKGDIR to emerge this package: /var/cache/binpkgs/sys-devel/gcc-12.2.1_p20230428-r1-1.xpak

Reproducible: Always

Steps to Reproduce:
1.attempt emerge xpak from local repo as configured in make.conf
2.
3.
Actual Results:  
*** You need to adjust PKGDIR to emerge this package: /var/cache/binpkgs/sys-devel/gcc-12.2.1_p20230428-r1-1.xpak

Expected Results:  
emerge package from local repo
Comment 1 Mike Gilbert gentoo-dev 2023-06-20 17:05:40 UTC
Please provide emerge --info and change the status to UNCONFIRMED.
Comment 2 Mike Gilbert gentoo-dev 2023-06-20 17:19:41 UTC
I think you need to move the package to /var/cache/binpkgs/sys-devel/gcc/. You are currently missing that last "gcc/" part.
Comment 3 contactopublico57 2023-06-21 15:17:53 UTC
Have attempted to emerge from the gcc directory as referenced in your comment, with same PKGDIR error message.  Have edited make.conf to specify a different PKGDIR location and attempted to emerge from there, same PKGDIR error message.  

Is portage looking for the PKGDIR location in some other configuratin file or locaton other than make.conf?

With a previous version of portage it was possible to emerge at the command line by dragging the file location into the terminal.  Apparently this option has been eliminated.

emerge --info:

Portage 3.0.48.1 (python 3.10.12-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.4.0-rc1-custom x86_64)
=================================================================
System uname: Linux-6.4.0-rc1-custom-x86_64-with-glibc2.37
KiB Mem:     3899684 total,   1030028 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 21 Jun 2023 13:30:01 +0000
Head commit of repository gentoo: 4799fac9b20c2d30d2a10e3df1a90f7c119fe796
sh bash 5.2_p15-r3
ld GNU ld (Gentoo 2.40 p5) 2.40
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r3::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.10.12::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.31::gentoo
sys-apps/systemd:          253.5::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  5.15::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
sys-libs/libselinux:       3.5::gentoo
Repositories:

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

overlay
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 0
    volatile: True

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y --getbinpkg=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo https://mirror.ufro.cl/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_BINHOST="http://packages.gentooexperimental.org/amd64-unstable/"
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/portage"
SHELL="/bin/bash"
USE="(-selinux) X a52 aac accessibility acl alsa alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol amd64 aom apparmor argon2 audit avif branding build bzip2 cdda cli crypt cryptsetup curl dbus dri dts dv dvb dvd dynamic elfutils example fbcon fbcondecor ffmpeg flac fortran gdbm gif gimp gnuefi gstreamer gtk gtk3 http iconv idn importd introspection ipv6 iwd jack jpeg kdbus kmod lame lcms libass libidn2 libnotify libtirpc libvisual livecd loop-aes lz4 lz5 lzma matroska mms mmx mng modplug modules mp3 mp4 mpeg mpeg2 mpeg4pt2 multilib nat ncurses networkmanager nls nptl nptlonly ogg opengl openmp opus oss pam pax_kernel pcre png policykit portaudio pulseaudio qrcode qt5 readline resolvconf seccomp socks5 sse sse2 ssl systemd sysv-utils taglib test-rust theora tiff truetype udev unicode usb usrmerge v4l vaapi vala vanilla vcd vdpau vlc vorbis vpx wavpack webp x264 xattr xkb xml xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 3dnow 3dnowext mmxext" 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-64" INPUT_DEVICES="evdev keyboard mouse synaptics virtualbox mutouch vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9 python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30 ruby31 ruby32" VIDEO_CARDS="fbdev intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 4 Mike Gilbert gentoo-dev 2023-06-21 17:48:52 UTC
I am unable to reproduce this.
Comment 5 Mike Gilbert gentoo-dev 2023-06-21 17:50:56 UTC
> # emerge --info | grep PKGDIR
> PKGDIR="/data/cache/binpkgs"
> 
> # emerge -1K /data/cache/binpkgs/sys-apps/baselayout/baselayout-2.13-r1-4.xpak
> Calculating dependencies... done!
> Dependency resolution took 6.19 s.
> 
> >>> Emerging binary (1 of 1) sys-apps/baselayout-2.13-r1::gentoo
> >>> Installing (1 of 1) sys-apps/baselayout-2.13-r1::gentoo
> >>> Completed (1 of 1) sys-apps/baselayout-2.13-r1::gentoo
> >>> Jobs: 1 of 1 complete                           Load avg: 0.38, 0.10, 0.03
Comment 6 contactopublico57 2023-06-22 14:51:24 UTC
Thank you for your comment.

After reconfiguring PKGDIR in make.conf from /var/cache/binpkgs to /data/cache/binpkgs per your example, and creating the file tree /data/cache/binpkgs, then using the command line syntax you indicated:

sudo emerge -1K '/data/cache/binpkgs/sys-devel/gcc/gcc-12.2.1_p20230428-r1-1.xpak'

instead of:

sudo emerge --usepkgonly '/var/cache/binpkgs/sys-devel/gcc-12.2.1_p20230428-r1-1.xpak'

the xpak emerge as expected.

Thank you for your help in resolving this issue.