void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.59k stars 2.15k forks source link

functions not defined i xgps-src #41201

Closed malv-c closed 1 year ago

malv-c commented 1 year ago

Is this a new report?

Yes

System Info

Void 6.0.13_1 x86_64 GenuineIntel notuptodate rDFFF

Package(s) Affected

xbps-src

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

% ./xbps-src binary-bootstrap working

Actual behaviour

% ./xbps-src binary-bootstrap ./xbps-src: ligne 729: reconfigure_base_chroot : commande introuvable ./xbps-src: ligne 736: install_base_chroot : commande introuvable ./xbps-src: ligne 1008: exit_and_cleanup : commande introuvable

Steps to reproduce

% ./xbps-src binary-bootstrap ./xbps-src: ligne 729: reconfigure_base_chroot : commande introuvable ./xbps-src: ligne 736: install_base_chroot : commande introuvable ./xbps-src: ligne 1008: exit_and_cleanup : commande introuvable

sgn commented 1 year ago

bash -x ./xbps-src binary-bootstrap and post the output please.

I really suspect you're deleting common folder.

malv-c commented 1 year ago
+ readonly PROGNAME=xbps-src
+ PROGNAME=xbps-src
+ readonly XBPS_VERSION_REQ=0.55
+ XBPS_VERSION_REQ=0.55
++ xbps-uhelper -V
+ XBPS_VERSION='XBPS: 0.59.1 API: 20200221 GIT: UNSET'
+ XBPS_VERSION='XBPS: 0.59.1 '
+ XBPS_VERSION=' 0.59.1 '
+ readonly XBPS_SRC_VERSION=113
+ XBPS_SRC_VERSION=113
++ xbps-uhelper -C /dev/null arch
+ export XBPS_MACHINE=x86_64
+ XBPS_MACHINE=x86_64
+ XBPS_OPTIONS=
+ XBPS_OPTSTRING=1a:bc:CEfgGhH:iIj:Lm:No:p:qsQKr:tV
++ getopt 1a:bc:CEfgGhH:iIj:Lm:No:p:qsQKr:tV binary-bootstrap
+ eval set -- -- binary-bootstrap
++ set -- -- binary-bootstrap
+ getopts 1a:bc:CEfgGhH:iIj:Lm:No:p:qsQKr:tV opt
+ shift 1
+ '[' 1 -eq 0 ']'
+ test -t 1
+ export NOCOLORS=1
+ NOCOLORS=1
+ '[' '' ']'
+ umask 022
+ readonly 'REQHOST_UTILS_BOOTSTRAP=file objdump find make gawk bash sed gcc g++ gnat     perl bsdtar gzip patch flock pkg-config'
+ REQHOST_UTILS_BOOTSTRAP='file objdump find make gawk bash sed gcc g++ gnat     perl bsdtar gzip patch flock pkg-config'
+ readonly 'REQHOST_UTILS=xbps-install xbps-query xbps-rindex xbps-uhelper     xbps-reconfigure xbps-remove xbps-create xbps-uchroot xbps-uunshare'
+ REQHOST_UTILS='xbps-install xbps-query xbps-rindex xbps-uhelper     xbps-reconfigure xbps-remove xbps-create xbps-uchroot xbps-uunshare'
+ check_reqhost_utils
+ local broken
+ '[' '' ']'
+ for f in ${REQHOST_UTILS}
+ command -v xbps-install
+ for f in ${REQHOST_UTILS}
+ command -v xbps-query
+ for f in ${REQHOST_UTILS}
+ command -v xbps-rindex
+ for f in ${REQHOST_UTILS}
+ command -v xbps-uhelper
+ for f in ${REQHOST_UTILS}
+ command -v xbps-reconfigure
+ for f in ${REQHOST_UTILS}
+ command -v xbps-remove
+ for f in ${REQHOST_UTILS}
+ command -v xbps-create
+ for f in ${REQHOST_UTILS}
+ command -v xbps-uchroot
+ for f in ${REQHOST_UTILS}
+ command -v xbps-uunshare
+ '[' '' ']'
+ '[' -z '' ']'
+ return 0
+ '[' '' ']'
++ readlink -f .
+ _distdir=
+ '[' '' = . ']'
+ readonly XBPS_DISTDIR=
+ XBPS_DISTDIR=
+ '[' -f /etc/defaults.conf ']'
+ '[' -n '' -a -s /etc/conf. ']'
+ '[' -s /etc/conf ']'
+ '[' -s /home/void/.config/xbps-src.conf ']'
+ '[' -s /home/void/.xbps-src.conf ']'
+ '[' -s '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ export XBPS_BUILD_ONLY_ONE_PKG XBPS_SKIP_REMOTEREPOS XBPS_BUILD_FORCEMODE XBPS_INFORMATIVE_RUN XBPS_TEMP_MASTERDIR XBPS_BINPKG_EXISTS XBPS_USE_GIT_REVS XBPS_CHECK_PKGS XBPS_DEBUG_PKGS XBPS_SKIP_DEPS XBPS_KEEP_ALL XBPS_QUIET XBPS_ALT_REPOSITORY XBPS_STRICT XBPS_CROSS_BUILD XBPS_MAKEJOBS XBPS_PRINT_VARIABLES XBPS_IGNORE_BROKENNESS
+ '[' -z '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
++ readlink -f
+ export XBPS_MASTERDIR=
+ XBPS_MASTERDIR=
++ readlink -f
+ export XBPS_HOSTDIR=
+ XBPS_HOSTDIR=
+ '[' -z '' -a 1000 -eq 0 -a -z '' ']'
+ : /masterdir
+ '[' '!' -d /masterdir ']'
+ : /hostdir
+ '[' '!' -d /hostdir ']'
+ '[' -d /masterdir -a '!' -w /masterdir ']'
+ command -v chroot-git
+ command -v git
++ command -v git
+ export XBPS_GIT_CMD=/bin/git
+ XBPS_GIT_CMD=/bin/git
+ '[' -n /hostdir ']'
+ export XBPS_REPOSITORY=/hostdir/binpkgs
+ XBPS_REPOSITORY=/hostdir/binpkgs
+ readonly XBPS_SRCDISTDIR=/hostdir/sources
+ XBPS_SRCDISTDIR=/hostdir/sources
+ '[' -z '' ']'
+ pushd /M/5/git/void-packages
+ cd
++ /bin/git symbolic-ref --short HEAD
+ _gitbranch=
+ '[' '' -a '' '!=' master ']'
+ popd
+ readonly XBPS_SRCPKGDIR=/srcpkgs
+ XBPS_SRCPKGDIR=/srcpkgs
+ readonly XBPS_COMMONDIR=/common
+ XBPS_COMMONDIR=/common
+ readonly XBPS_SHUTILSDIR=/common/xbps-src/shutils
+ XBPS_SHUTILSDIR=/common/xbps-src/shutils
+ readonly XBPS_TRIGGERSDIR=/srcpkgs/xbps-triggers/files
+ XBPS_TRIGGERSDIR=/srcpkgs/xbps-triggers/files
+ readonly XBPS_CROSSPFDIR=/common/cross-profiles
+ XBPS_CROSSPFDIR=/common/cross-profiles
+ readonly XBPS_BUILDSTYLEDIR=/common/build-style
+ XBPS_BUILDSTYLEDIR=/common/build-style
+ readonly XBPS_LIBEXECDIR=/common/xbps-src/libexec
+ XBPS_LIBEXECDIR=/common/xbps-src/libexec
+ readonly XBPS_BUILDHELPERDIR=/common/build-helper
+ XBPS_BUILDHELPERDIR=/common/build-helper
+ readonly XBPS_TARGET=binary-bootstrap
+ XBPS_TARGET=binary-bootstrap
+ '[' '' ']'
+ chroot_check
+ '[' -f /masterdir/.xbps_chroot_init -o '' = ethereal ']'
+ check_native_arch
+ '[' '' ']'
+ '[' binary-bootstrap = binary-bootstrap ']'
+ '[' '' ']'
++ ldd --version
++ head -1
+ LDD='ldd (GNU libc) 2.36'
+ [[ ldd (GNU libc) 2.36 == *musl* ]]
++ uname -m
+ export XBPS_ARCH=x86_64
+ XBPS_ARCH=x86_64
+ '[' -z '' -a -s /masterdir/.xbps_chroot_init ']'
+ '[' x86_64 ']'
+ export XBPS_MACHINE=x86_64
+ XBPS_MACHINE=x86_64
+ '[' -z '' ']'
+ export XBPS_TARGET_MACHINE=x86_64
+ XBPS_TARGET_MACHINE=x86_64
+ '[' '' ']'
+ readonly 'XBPS_UHELPER_CMD=xbps-uhelper -r /masterdir'
+ XBPS_UHELPER_CMD='xbps-uhelper -r /masterdir'
+ readonly 'XBPS_INSTALL_CMD=xbps-install -c /hostdir/repocache-x86_64 -r /masterdir -C etc/xbps.d'
+ XBPS_INSTALL_CMD='xbps-install -c /hostdir/repocache-x86_64 -r /masterdir -C etc/xbps.d'
+ readonly 'XBPS_QUERY_CMD=xbps-query -c /hostdir/repocache-x86_64 -r /masterdir -C etc/xbps.d'
+ XBPS_QUERY_CMD='xbps-query -c /hostdir/repocache-x86_64 -r /masterdir -C etc/xbps.d'
+ readonly 'XBPS_RECONFIGURE_CMD=xbps-reconfigure -r /masterdir'
+ XBPS_RECONFIGURE_CMD='xbps-reconfigure -r /masterdir'
+ readonly 'XBPS_REMOVE_CMD=xbps-remove -r /masterdir'
+ XBPS_REMOVE_CMD='xbps-remove -r /masterdir'
+ readonly 'XBPS_CHECKVERS_CMD=xbps-checkvers -r /masterdir'
+ XBPS_CHECKVERS_CMD='xbps-checkvers -r /masterdir'
+ readonly XBPS_DESTDIR=/masterdir/destdir
+ XBPS_DESTDIR=/masterdir/destdir
+ readonly XBPS_BUILDDIR=/masterdir/builddir
+ XBPS_BUILDDIR=/masterdir/builddir
+ readonly XBPS_RINDEX_CMD=xbps-rindex
+ XBPS_RINDEX_CMD=xbps-rindex
+ readonly XBPS_FETCH_CMD=xbps-fetch
+ XBPS_FETCH_CMD=xbps-fetch
+ readonly XBPS_DIGEST_CMD=xbps-digest
+ XBPS_DIGEST_CMD=xbps-digest
+ readonly 'XBPS_CMPVER_CMD=xbps-uhelper cmpver'
+ XBPS_CMPVER_CMD='xbps-uhelper cmpver'
+ export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR XBPS_SRCPKGDIR XBPS_COMMONDIR XBPS_BUILDDIR XBPS_REPOSITORY XBPS_ALT_REPOSITORY XBPS_STRICT XBPS_SRCDISTDIR XBPS_DIGEST_CMD XBPS_UHELPER_CMD XBPS_INSTALL_CMD XBPS_QUERY_CMD XBPS_BUILD_ONLY_ONE_PKG XBPS_RINDEX_CMD XBPS_RECONFIGURE_CMD XBPS_REMOVE_CMD XBPS_CHECKVERS_CMD XBPS_CMPVER_CMD XBPS_FETCH_CMD XBPS_VERSION XBPS_BUILDSTYLEDIR XBPS_CPPFLAGS XBPS_CFLAGS XBPS_CXXFLAGS XBPS_FFLAGS XBPS_LDFLAGS XBPS_MAKEJOBS XBPS_BUILD_FORCEMODE XBPS_USE_GIT_REVS XBPS_DEBUG_PKGS XBPS_CHECK_PKGS XBPS_CCACHE XBPS_DISTCC XBPS_DISTCC_HOSTS XBPS_SKIP_DEPS XBPS_SKIP_REMOTEREPOS XBPS_CROSS_BUILD XBPS_ARG_PKG_OPTIONS XBPS_CONFIG_FILE XBPS_KEEP_ALL XBPS_HOSTDIR XBPS_MASTERDIR XBPS_SRC_VERSION XBPS_DESTDIR XBPS_MACHINE XBPS_TEMP_MASTERDIR XBPS_BINPKG_EXISTS XBPS_LIBEXECDIR XBPS_DISTDIR XBPS_DISTFILES_MIRROR XBPS_ALLOW_RESTRICTED XBPS_USE_GIT_COMMIT_DATE XBPS_PKG_COMPTYPE XBPS_REPO_COMPTYPE XBPS_BUILDHELPERDIR XBPS_USE_BUILD_MTIME XBPS_BUILD_ENVIRONMENT XBPS_PRESERVE_PKGS XBPS_IGNORE_BROKENNESS
+ for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR
+ eval 'val=$XBPS_REPOSITORY'
++ val=/hostdir/binpkgs
+ '[' '!' -d /hostdir/binpkgs ']'
+ unset val
+ for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR
+ eval 'val=$XBPS_DESTDIR'
++ val=/masterdir/destdir
+ '[' '!' -d /masterdir/destdir ']'
+ unset val
+ for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR
+ eval 'val=$XBPS_BUILDDIR'
++ val=/masterdir/builddir
+ '[' '!' -d /masterdir/builddir ']'
+ unset val
+ for i in REPOSITORY DESTDIR BUILDDIR SRCDISTDIR
+ eval 'val=$XBPS_SRCDISTDIR'
++ val=/hostdir/sources
+ '[' '!' -d /hostdir/sources ']'
+ unset val
+ '[' -z '' -a -n '' ']'
+ '[' -z '' ']'
+ export PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/masterdir/usr/bin
+ PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/masterdir/usr/bin
+ '[' '' ']'
+ '[' '' ']'
+ check_build_requirements
+ local found
+ case "$XBPS_TARGET" in
+ found=1
+ '[' -z 1 ']'
+ for f in ${XBPS_SHUTILSDIR}/*.sh
+ '[' -r '/common/xbps-src/shutils/*.sh' ']'
+ '[' -z '' ']'
+ trap exit_func INT TERM
+ '[' -n '' ']'
+ reconfigure_base_chroot
./xbps-src: ligne 729: reconfigure_base_chroot : commande introuvable
+ case "$XBPS_TARGET" in
+ install_base_chroot x86_64
./xbps-src: ligne 736: install_base_chroot : commande introuvable
+ exit_and_cleanup 127
./xbps-src: ligne 1008: exit_and_cleanup : commande introuvable
% l common/
build-helper    build-style   cross-profiles  hooks        repo-keys  shlibs  wrappers
build-profiles  chroot-style  environment     options.description  scripts    travis  xbps-src
/M/5/git/void-packages
classabbyamp commented 1 year ago

ls -l common/xbps-src/shutils/?

Duncaen commented 1 year ago
++ readlink -f .
+ _distdir=
+ '[' '' = . ']'
+ readonly XBPS_DISTDIR=
+ XBPS_DISTDIR=

This is wrong, this should find the full path of the void-packages directory.

++ readlink -f .
+ _distdir=/home/duncan/repos/void-packages
+ '[' /home/duncan/repos/void-packages = . ']'
+ readonly XBPS_DISTDIR=/home/duncan/repos/void-packages
+ XBPS_DISTDIR=/home/duncan/repos/void-packages
malv-c commented 1 year ago

sorry bad coreutils it work now thanks