Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 745808 - app-backup/btrbk-0.30.0[-lsbtr]: ln: failed to create symbolic link '/var/tmp/portage/app-backup/btrbk-0.30.0/image/usr/bin/lsbtr': No such file or directory
Summary: app-backup/btrbk-0.30.0[-lsbtr]: ln: failed to create symbolic link '/var/tmp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-01 04:55 UTC by Mark Nowiasz
Modified: 2021-01-05 16:43 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,6.57 KB, text/x-log)
2020-10-01 04:56 UTC, Mark Nowiasz
Details
A fix patch modified the Makefile (btrbk.patch,389 bytes, patch)
2020-10-02 05:05 UTC, SaltyKitkat
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Nowiasz 2020-10-01 04:55:26 UTC
When trying to upgrade btrbk, btrbk fails with:

make[1]: Leaving directory '/var/tmp/portage/app-backup/btrbk-0.30.0/work/btrbk-0.30.0/doc'
installing man pages...
ln: failed to create symbolic link '/var/tmp/portage/app-backup/btrbk-0.30.0/image/usr/bin/lsbtr': No such file or directory
make: *** [Makefile:59: install-bin-links] Error 1
make: *** Waiting for unfinished jobs....
make[1]: Entering directory '/var/tmp/portage/app-backup/btrbk-0.30.0/work/btrbk-0.30.0/doc'


Reproducible: Always

Steps to Reproduce:
1. emerge -uDN @world @system
2.
3.



emerge --info btrbk
!!! Repository 'matrix' has sync-uri attribute, but is missing sync-type attribute
Portage 3.0.8 (python 3.8.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.2.0, glibc-2.32-r2, 5.8.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.8.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-8250U_CPU_@_1.60GHz-with-glibc2.2.5
KiB Mem:    20375112 total,   6249768 free
KiB Swap:    8388604 total,   8316384 free
Timestamp of repository gentoo: Thu, 01 Oct 2020 03:30:01 +0000
Head commit of repository gentoo: e59d3364a2f25d4b70ad30a206204d97a9468122
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p1) 2.35.1
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r3::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0_rc2::gentoo
dev-util/cmake:           3.18.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.35.1::gentoo
sys-devel/gcc:            10.2.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

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

matrix
    location: /var/lib/layman/matrix
    sync-uri: https://anongit.gentoo.org/git/repo/proj/matrix.git
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ rsync://mirror.eu.oneandone.net/gentoo/ http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l8"
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 acl acpi activities alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cryptsetup cups dbus declarative dri dts dvd dvdr emboss encode exif ffmpeg flac fortran gdbm gif gimp git gles gles2 gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet latex lcms libglvnd libnotify libtirpc mad matroska mmx mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pentax phonon pim plasma png policykit ppds pulseaudio python qml qt5 readline scanner sdl seccomp semantic-desktop smartcard smp spell split-usr sse sse2 sse3 ssl startup-notification subversion svg systemd tcpd tiff touchpad truetype udev udisks unicode upower usb vaapi vim-syntax vorbis wayland widgets wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="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="evdev mouse keyboard synaptics" KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7 python3_8" RUBY_TARGETS="ruby25 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-backup/btrbk-0.30.0::gentoo was built with the following:
USE="doc mbuffer" ABI_X86="(64)"
Comment 1 Mark Nowiasz 2020-10-01 04:56:32 UTC
Created attachment 663309 [details]
build.log

build.log
Comment 2 SaltyKitkat 2020-10-02 05:03:04 UTC
(In reply to Mark Nowiasz from comment #0)
> When trying to upgrade btrbk, btrbk fails with:
> 
> make[1]: Leaving directory
> '/var/tmp/portage/app-backup/btrbk-0.30.0/work/btrbk-0.30.0/doc'
> installing man pages...
> ln: failed to create symbolic link
> '/var/tmp/portage/app-backup/btrbk-0.30.0/image/usr/bin/lsbtr': No such file
> or directory
> make: *** [Makefile:59: install-bin-links] Error 1
> make: *** Waiting for unfinished jobs....
> make[1]: Entering directory
> '/var/tmp/portage/app-backup/btrbk-0.30.0/work/btrbk-0.30.0/doc'
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge -uDN @world @system
> 2.
> 3.
> 
> 
> 
> emerge --info btrbk
> !!! Repository 'matrix' has sync-uri attribute, but is missing sync-type
> attribute
> Portage 3.0.8 (python 3.8.6-final-0,
> default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.2.0, glibc-2.32-r2,
> 5.8.12-gentoo x86_64)
> =================================================================
>                          System Settings
> =================================================================
> System uname:
> Linux-5.8.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-8250U_CPU_@_1.60GHz-with-
> glibc2.2.5
> KiB Mem:    20375112 total,   6249768 free
> KiB Swap:    8388604 total,   8316384 free
> Timestamp of repository gentoo: Thu, 01 Oct 2020 03:30:01 +0000
> Head commit of repository gentoo: e59d3364a2f25d4b70ad30a206204d97a9468122
> sh bash 5.0_p18
> ld GNU ld (Gentoo 2.35.1 p1) 2.35.1
> app-shells/bash:          5.0_p18::gentoo
> dev-java/java-config:     2.3.1::gentoo
> dev-lang/perl:            5.30.3-r1::gentoo
> dev-lang/python:          2.7.18-r3::gentoo, 3.7.9::gentoo, 3.8.6::gentoo,
> 3.9.0_rc2::gentoo
> dev-util/cmake:           3.18.3::gentoo
> dev-util/pkgconfig:       0.29.2::gentoo
> sys-apps/baselayout:      2.7::gentoo
> sys-apps/sandbox:         2.20::gentoo
> sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
> sys-devel/automake:       1.16.2::gentoo
> sys-devel/binutils:       2.35.1::gentoo
> sys-devel/gcc:            10.2.0-r1::gentoo
> sys-devel/gcc-config:     2.3.2::gentoo
> sys-devel/libtool:        2.4.6-r6::gentoo
> sys-devel/make:           4.3::gentoo
> sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.32-r2::gentoo
> Repositories:
> 
> gentoo
>     location: /usr/portage
>     sync-type: rsync
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>     priority: -1000
>     sync-rsync-extra-opts: 
>     sync-rsync-verify-metamanifest: yes
>     sync-rsync-verify-max-age: 24
>     sync-rsync-verify-jobs: 1
> 
> matrix
>     location: /var/lib/layman/matrix
>     sync-uri: https://anongit.gentoo.org/git/repo/proj/matrix.git
>     masters: gentoo
>     priority: 50
> 
> pentoo
>     location: /var/lib/layman/pentoo
>     masters: gentoo
>     priority: 50
> 
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="* -@EULA"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=native -O2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc
> /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/terminfo /etc/texmf/language.dat.d
> /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
> CXXFLAGS="-march=native -O2 -pipe"
> DISTDIR="/usr/portage/distfiles"
> EMERGE_DEFAULT_OPTS="--keep-going=y"
> ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs
> 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"
> GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/
> gentoo/ rsync://mirror.eu.oneandone.net/gentoo/
> http://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/
> http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
> http://ftp.halifax.rwth-aachen.de/gentoo/
> ftp://ftp.halifax.rwth-aachen.de/gentoo/
> rsync://ftp.halifax.rwth-aachen.de/gentoo/
> ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
> LANG="en_US.utf8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS="-j8 -l8"
> 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 acl acpi activities alsa amd64 bash-completion berkdb
> bluetooth branding bzip2 cairo cdda cdr cli crypt cryptsetup cups dbus
> declarative dri dts dvd dvdr emboss encode exif ffmpeg flac fortran gdbm gif
> gimp git gles gles2 gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet latex
> lcms libglvnd libnotify libtirpc mad matroska mmx mng mp3 mp4 mpeg mtp
> multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre
> pdf pentax phonon pim plasma png policykit ppds pulseaudio python qml qt5
> readline scanner sdl seccomp semantic-desktop smartcard smp spell split-usr
> sse sse2 sse3 ssl startup-notification subversion svg systemd tcpd tiff
> touchpad truetype udev udisks unicode upower usb vaapi vim-syntax vorbis
> wayland widgets wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib"
> ABI_X86="64" ADA_TARGET="gnat_2018" 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="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="evdev mouse keyboard synaptics"
> KERNEL="linux" L10N="en de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
> lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
> presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2
> php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11"
> PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7
> python3_8" RUBY_TARGETS="ruby25 ruby27" USERLAND="GNU" VIDEO_CARDS="intel
> i965" 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, INSTALL_MASK, LC_ALL, LINGUAS,
> PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
> PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 
> =================================================================
>                         Package Settings
> =================================================================
> 
> app-backup/btrbk-0.30.0::gentoo was built with the following:
> USE="doc mbuffer" ABI_X86="(64)"

I met the same problem and this is my patch which can work on my device.
It might be also helpful for you.
Comment 3 SaltyKitkat 2020-10-02 05:05:36 UTC
Created attachment 663484 [details, diff]
A fix patch modified the Makefile

I met the same problem and this is my patch which can work on my device.
It might be also helpful for you.
Comment 4 SaltyKitkat 2020-10-02 05:16:47 UTC
(In reply to SaltyKitkat from comment #3)
> Created attachment 663484 [details, diff] [details, diff]
> A fix patch modified the Makefile
> 
> I met the same problem and this is my patch which can work on my device.
> It might be also helpful for you.

Oh, I found the related pull request on the github repo: https://github.com/digint/btrbk/pull/341
Comment 5 Bearcat M. Şándor 2020-12-05 07:41:46 UTC
I can confirm this error as well. Is the patch on the road map?
Comment 6 Larry the Git Cow gentoo-dev 2021-01-05 16:43:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db0bc9f27dd1a0ca2888ea463519673e8de0a23a

commit db0bc9f27dd1a0ca2888ea463519673e8de0a23a
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2021-01-05 16:41:21 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2021-01-05 16:43:29 +0000

    app-backup/btrbk: Fix race condition in install
    
    Closes: https://bugs.gentoo.org/745808
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 app-backup/btrbk/btrbk-0.30.0.ebuild               |  6 ++++-
 .../files/btrbk-0.30.0-make-install-race.patch     | 27 ++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)