Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897744 - gui-apps/wlr-randr-0.3.0: emerge fails due to changed folder name in source archive
Summary: gui-apps/wlr-randr-0.3.0: emerge fails due to changed folder name in source a...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: GURU project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-25 21:15 UTC by Florian RInke
Modified: 2024-04-07 20:34 UTC (History)
1 user (show)

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


Attachments
Proposed fix (wlr-randr-0.3.0-r1.ebuild,688 bytes, text/plain)
2023-02-25 21:23 UTC, Florian RInke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian RInke 2023-02-25 21:15:00 UTC
Cannot install gui-apps/wlr-randr-0.3.0
Installation fails after src_unpack
Apparently with the change in git host from 0.2.0 to 0.3.0, the release archive uses a different path now, adding a 'v':

# tar -tzf /var/cache/distfiles/wlr-randr-0.2.0.tar.gz|head -n 1
wlr-randr-0.2.0/
# tar -tzf /var/cache/distfiles/wlr-randr-0.3.0.tar.gz|head -n 1
wlr-randr-v0.3.0/

possible fix:
```
diff --git a/gui-apps/wlr-randr/wlr-randr-0.3.0.ebuild b/gui-apps/wlr-randr/wlr-randr-0.3.0.ebuild
index d1a7f4f9f..624b5e939 100644
--- a/gui-apps/wlr-randr/wlr-randr-0.3.0.ebuild
+++ b/gui-apps/wlr-randr/wlr-randr-0.3.0.ebuild
@@ -27,6 +27,7 @@ BDEPEND="
        dev-libs/wayland-protocols
        virtual/pkgconfig
 "
+S="${WORKDIR}/${PN}-v${PV}"
 
 src_prepare() {
        default
```

Reproducible: Always

Steps to Reproduce:
1. emerge -av1 =gui-apps/wlr-randr-0.3.0
Actual Results:  
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) gui-apps/wlr-randr-0.3.0::guru
>>> Failed to emerge gui-apps/wlr-randr-0.3.0, Log file:
>>>  '/var/log/portage/gui-apps:wlr-randr-0.3.0:20230225-204536.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 2.95, 2.48, 2.12
 * Package:    gui-apps/wlr-randr-0.3.0:0
 * Repository: guru
 * Maintainer: gentoo@aisha.cc
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking wlr-randr-0.3.0.tar.gz to /var/tmp/portage/gui-apps/wlr-randr-0.3.0/work
>>> Source unpacked in /var/tmp/portage/gui-apps/wlr-randr-0.3.0/work
 * ERROR: gui-apps/wlr-randr-0.3.0::guru failed (prepare phase):
 *   The source directory '/var/tmp/portage/gui-apps/wlr-randr-0.3.0/work/wlr-randr-0.3.0' doesn't exist
 * 
 * Call stack:
 *            ebuild.sh, line  780:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1072:  Called __dyn_prepare
 *   phase-functions.sh, line  400:  Called die
 * The specific snippet of code:
 *   		die "The source directory '${S}' doesn't exist"
 * 
 * If you need support, post the output of `emerge --info '=gui-apps/wlr-randr-0.3.0::guru'`,
 * the complete build log and the output of `emerge -pqv '=gui-apps/wlr-randr-0.3.0::guru'`.
 * The complete build log is located at '/var/log/portage/gui-apps:wlr-randr-0.3.0:20230225-204536.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/gui-apps/wlr-randr-0.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gui-apps/wlr-randr-0.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/gui-apps/wlr-randr-0.3.0/empty'
 * S: '/var/tmp/portage/gui-apps/wlr-randr-0.3.0/work/wlr-randr-0.3.0'

Expected Results:  
gui-apps/wlr-randr gets installed successfully

# emerge --info
Portage 3.0.44 (python 3.10.9-final-0, default/linux/amd64/17.1/desktop/systemd/merged-usr, gcc-12, glibc-2.36-r5, 6.1.13-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.1.13-gentoo-dist-x86_64-AMD_Ryzen_5_3400G_with_Radeon_Vega_Graphics-with-glibc2.36
KiB Mem:    30737468 total,  15874036 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of repository gentoo: Sat, 25 Feb 2023 20:00:01 +0000
Head commit of repository gentoo: 61489380bc53d5c2b6cfdc89799393d6b7b7e04c
Timestamp of repository guru: Sat, 25 Feb 2023 07:31:53 +0000
Head commit of repository guru: 98d7d313e491861923c2af760bbfaea57c375d64

Timestamp of repository pentoo: Sat, 25 Feb 2023 06:47:14 +0000
Head commit of repository pentoo: 23130816bec1156f09efa9e679f3f3948f4f3d1f

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.9.16_p1::gentoo, 3.10.9-r1::gentoo, 3.11.1-r1::gentoo
dev-lang/rust-bin:         1.66.1::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.0::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          252.4-r1::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: [removed url, as spamfilter doesn't allow me to post urls]
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: [removed url, as spamfilter doesn't allow me to post urls]
    masters: gentoo
    volatile: True

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: True

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: [removed url, as spamfilter doesn't allow me to post urls]
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE AGPL fairuse linux-firmware"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs --load-average=6 --with-bdeps=y --keep-going"
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 -fomit-frame-pointer -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
GENTOO_MIRRORS="[removed url, as spamfilter doesn't allow me to post urls]"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="de en"
MAKEOPTS="-j9 -l 8"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bash-completion bluetooth bpf branding brotli bzip2 cairo caps cdda cdr cli crypt cups dbus dri drm dts dvd dvdr encode exif fbcon flac fortran gdbm gif gles gles1 gles2 gles3 gpm gtk gtk3 gui iconv icu idn ipv6 jpeg jumbo-build lcms libglvnd libnotify libtirpc logrotate lto luajittex luatex lvm lvm2 mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt5 readline screencast sdl seccomp sound spell spice ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode unwind upower usb usbredir vaapi vdpau verify-sig vorbis vulkan vulkan-overlay wayland wxwidgets x264 x265 xattr xcb xetex xft xml xv xvid zlib zstd" ABI_X86="32 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 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" 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_10" PYTHON_TARGETS="python3_10 python3_9" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi fbdev vesa" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Florian RInke 2023-02-25 21:23:52 UTC
Created attachment 854662 [details]
Proposed fix

added `S="${WORKDIR}/${PN}-v${PV}"` so the changed extract directory is used
Comment 2 Julien 2024-04-07 20:34:43 UTC
Fixed by
commit f4468f5bdf5970fd3822877f138df3cd964f3ccb
Author: Takuya Wakazono <pastalian46@gmail.com>
Date:   Thu Mar 14 19:46:26 2024 +0900

    gui-apps/wlr-randr: add 0.4.1
    
    Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>