diff --git a/Manual.md b/Manual.md index 8eeba5fda19..edd87984c1b 100644 --- a/Manual.md +++ b/Manual.md @@ -365,24 +365,16 @@ in this directory such as `${XBPS_BUILDDIR}/${wrksrc}`. - `XBPS_MACHINE` The machine architecture as returned by `xbps-uhelper arch`. -- `XBPS_ENDIAN` The machine's endianness ("le" for little-endian, "be" for big-endian). - -- `XBPS_LIBC` The machine's C library ("glibc" for GNU libc, "musl" for Musl libc). - - `XBPS_WORDSIZE` The machine's word size in bits (32 or 64). -- `XBPS_TARGET_MACHINE` The target machine architecture when cross compiling a package. - -- `XBPS_TARGET_ENDIAN` The target machine's endiannes ("le" for little-endian, "be" for big-endian). - -- `XBPS_TARGET_LIBC` The target machine's C library ("glibc" for GNU libc, "musl" for Musl libc). - -- `XBPS_TARGET_WORDSIZE` The target machine's word size in bits (32 or 64). - - `XBPS_SRCDISTDIR` Full path to where the `source distfiles` are stored, i.e `$XBPS_HOSTDIR/sources`. - `XBPS_SRCPKGDIR` Full path to the `srcpkgs` directory. +- `XBPS_TARGET_MACHINE` The target machine architecture when cross compiling a package. + +- `XBPS_TARGET_WORDSIZE` The target machine's word size in bits (32 or 64). + - `XBPS_FETCH_CMD` The utility to fetch files from `ftp`, `http` of `https` servers. - `XBPS_WRAPPERDIR` Full path to where xbps-src's wrappers for utilities are stored. diff --git a/common/build-profiles/aarch64-musl.sh b/common/build-profiles/aarch64-musl.sh index 8fffcdc0644..aaac64d6779 100644 --- a/common/build-profiles/aarch64-musl.sh +++ b/common/build-profiles/aarch64-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=musl XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-march=armv8-a" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/aarch64.sh b/common/build-profiles/aarch64.sh index f1d1087b8fd..5a04755d2c1 100644 --- a/common/build-profiles/aarch64.sh +++ b/common/build-profiles/aarch64.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=glibc XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-march=armv8-a" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/armv6l-musl.sh b/common/build-profiles/armv6l-musl.sh index 5d8253b2791..03bdec4f278 100644 --- a/common/build-profiles/armv6l-musl.sh +++ b/common/build-profiles/armv6l-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=musl XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/armv6l.sh b/common/build-profiles/armv6l.sh index 30b1d70befe..0bf1e3b1719 100644 --- a/common/build-profiles/armv6l.sh +++ b/common/build-profiles/armv6l.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=glibc XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/armv7l-musl.sh b/common/build-profiles/armv7l-musl.sh index 94895a60c41..8c35c92fd5e 100644 --- a/common/build-profiles/armv7l-musl.sh +++ b/common/build-profiles/armv7l-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=musl XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_CXXFLAGS" diff --git a/common/build-profiles/armv7l.sh b/common/build-profiles/armv7l.sh index cc5f839d9d9..70445d50752 100644 --- a/common/build-profiles/armv7l.sh +++ b/common/build-profiles/armv7l.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=glibc XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/i686-musl.sh b/common/build-profiles/i686-musl.sh index c3ed3e9238f..558871c228f 100644 --- a/common/build-profiles/i686-musl.sh +++ b/common/build-profiles/i686-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=musl XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-mtune=i686" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/i686.sh b/common/build-profiles/i686.sh index 89282578b9e..3558c8e81a0 100644 --- a/common/build-profiles/i686.sh +++ b/common/build-profiles/i686.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=glibc XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-mtune=i686" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/ppc-musl.sh b/common/build-profiles/ppc-musl.sh index 83345413444..dea288a9eb8 100644 --- a/common/build-profiles/ppc-musl.sh +++ b/common/build-profiles/ppc-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=be -XBPS_LIBC=musl XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-mcpu=powerpc -mno-altivec -mtune=G4 -mlong-double-64" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/ppc.sh b/common/build-profiles/ppc.sh index d3b959dd1c0..3c729f2bf8b 100644 --- a/common/build-profiles/ppc.sh +++ b/common/build-profiles/ppc.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=be -XBPS_LIBC=glibc XBPS_WORDSIZE=32 XBPS_TARGET_CFLAGS="-mcpu=powerpc -mno-altivec -mtune=G4" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/ppc64-musl.sh b/common/build-profiles/ppc64-musl.sh index 692d0f5d76c..b4cbafa1fa6 100644 --- a/common/build-profiles/ppc64-musl.sh +++ b/common/build-profiles/ppc64-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=be -XBPS_LIBC=musl XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-mcpu=970 -mtune=power9 -maltivec -mlong-double-64 -mabi=elfv2" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/ppc64.sh b/common/build-profiles/ppc64.sh index bf1f81521a1..5805d7d7d78 100644 --- a/common/build-profiles/ppc64.sh +++ b/common/build-profiles/ppc64.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=be -XBPS_LIBC=glibc XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-mcpu=970 -mtune=power9 -maltivec -mabi=elfv2" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/ppc64le-musl.sh b/common/build-profiles/ppc64le-musl.sh index 5dbfe619282..64c460de790 100644 --- a/common/build-profiles/ppc64le-musl.sh +++ b/common/build-profiles/ppc64le-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=musl XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-mcpu=powerpc64le -mtune=power9 -maltivec -mlong-double-64 -mabi=elfv2" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/ppc64le.sh b/common/build-profiles/ppc64le.sh index 42f0ed40d75..d24874bfccc 100644 --- a/common/build-profiles/ppc64le.sh +++ b/common/build-profiles/ppc64le.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=glibc XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-mcpu=powerpc64le -mtune=power9 -maltivec -mabi=elfv2" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/x86_64-musl.sh b/common/build-profiles/x86_64-musl.sh index 1ac2e5eee1f..524ef1f70de 100644 --- a/common/build-profiles/x86_64-musl.sh +++ b/common/build-profiles/x86_64-musl.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBLS_LIBC=musl XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-mtune=generic" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/build-profiles/x86_64.sh b/common/build-profiles/x86_64.sh index fecbf36b5eb..26310197a49 100644 --- a/common/build-profiles/x86_64.sh +++ b/common/build-profiles/x86_64.sh @@ -1,5 +1,3 @@ -XBPS_ENDIAN=le -XBPS_LIBC=glibc XBPS_WORDSIZE=64 XBPS_TARGET_CFLAGS="-mtune=generic" XBPS_TARGET_CXXFLAGS="$XBPS_TARGET_CFLAGS" diff --git a/common/cross-profiles/aarch64-musl.sh b/common/cross-profiles/aarch64-musl.sh index 018b7e40d86..1f972655380 100644 --- a/common/cross-profiles/aarch64-musl.sh +++ b/common/cross-profiles/aarch64-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for ARMv8. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=64 XBPS_TARGET_MACHINE="aarch64-musl" XBPS_TARGET_QEMU_MACHINE="aarch64" diff --git a/common/cross-profiles/aarch64.sh b/common/cross-profiles/aarch64.sh index 422dc766ffd..87d6181672b 100644 --- a/common/cross-profiles/aarch64.sh +++ b/common/cross-profiles/aarch64.sh @@ -1,6 +1,4 @@ # Cross build profile for ARMv8. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=64 XBPS_TARGET_MACHINE="aarch64" XBPS_TARGET_QEMU_MACHINE="aarch64" diff --git a/common/cross-profiles/armv5tel-musl.sh b/common/cross-profiles/armv5tel-musl.sh index 7f43be35f56..b5a2755f4b1 100644 --- a/common/cross-profiles/armv5tel-musl.sh +++ b/common/cross-profiles/armv5tel-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for ARM GNU EABI5 Soft Float and Musl libc. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="armv5tel-musl" XBPS_TARGET_QEMU_MACHINE="arm" diff --git a/common/cross-profiles/armv5tel.sh b/common/cross-profiles/armv5tel.sh index a04fa62d482..34d612407cc 100644 --- a/common/cross-profiles/armv5tel.sh +++ b/common/cross-profiles/armv5tel.sh @@ -1,6 +1,4 @@ # Cross build profile for ARM GNU EABI5 Soft Float. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="armv5tel" XBPS_TARGET_QEMU_MACHINE="arm" diff --git a/common/cross-profiles/armv6l-musl.sh b/common/cross-profiles/armv6l-musl.sh index bd51e9a7249..63c6c6ef965 100644 --- a/common/cross-profiles/armv6l-musl.sh +++ b/common/cross-profiles/armv6l-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for ARM EABI5 Hard Float and Musl libc. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="armv6l-musl" XBPS_TARGET_QEMU_MACHINE="arm" diff --git a/common/cross-profiles/armv6l.sh b/common/cross-profiles/armv6l.sh index 3ebc65d9ddb..5760650b993 100644 --- a/common/cross-profiles/armv6l.sh +++ b/common/cross-profiles/armv6l.sh @@ -1,6 +1,4 @@ # Cross build profile for ARM GNU EABI5 Hard Float. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="armv6l" XBPS_TARGET_QEMU_MACHINE="arm" diff --git a/common/cross-profiles/armv7l-musl.sh b/common/cross-profiles/armv7l-musl.sh index 9978a56c2d8..30132c4ed7c 100644 --- a/common/cross-profiles/armv7l-musl.sh +++ b/common/cross-profiles/armv7l-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for ARMv7 EABI Hard Float and Musl libc. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="armv7l-musl" XBPS_TARGET_QEMU_MACHINE="arm" diff --git a/common/cross-profiles/armv7l.sh b/common/cross-profiles/armv7l.sh index 26cd9591946..0e1ae529a31 100644 --- a/common/cross-profiles/armv7l.sh +++ b/common/cross-profiles/armv7l.sh @@ -1,6 +1,4 @@ # Cross build profile for ARMv7 GNU EABI Hard Float. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="armv7l" XBPS_TARGET_QEMU_MACHINE="arm" diff --git a/common/cross-profiles/i686-musl.sh b/common/cross-profiles/i686-musl.sh index 0bde5c46543..17613344a5b 100644 --- a/common/cross-profiles/i686-musl.sh +++ b/common/cross-profiles/i686-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for i686 and Musl libc. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="i686-musl" XBPS_TARGET_QEMU_MACHINE="i386" diff --git a/common/cross-profiles/i686.sh b/common/cross-profiles/i686.sh index 1af15a1b66f..02439282849 100644 --- a/common/cross-profiles/i686.sh +++ b/common/cross-profiles/i686.sh @@ -1,6 +1,4 @@ # Cross build profile for i686 GNU. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="i686" XBPS_TARGET_QEMU_MACHINE="i386" diff --git a/common/cross-profiles/mips-musl.sh b/common/cross-profiles/mips-musl.sh index 913c47cb7de..7ce212d7daa 100644 --- a/common/cross-profiles/mips-musl.sh +++ b/common/cross-profiles/mips-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for MIPS32 BE soft float. -XBPS_TARGET_ENDIAN=be -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="mips-musl" XBPS_TARGET_QEMU_MACHINE="mips" diff --git a/common/cross-profiles/mipsel-musl.sh b/common/cross-profiles/mipsel-musl.sh index 8ff6c2310e3..4d7bbe2d45b 100644 --- a/common/cross-profiles/mipsel-musl.sh +++ b/common/cross-profiles/mipsel-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for MIPS32 LE soft float. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="mipsel-musl" XBPS_TARGET_QEMU_MACHINE="mipsel" diff --git a/common/cross-profiles/mipselhf-musl.sh b/common/cross-profiles/mipselhf-musl.sh index 10c392f255b..a2ea998b5d3 100644 --- a/common/cross-profiles/mipselhf-musl.sh +++ b/common/cross-profiles/mipselhf-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for MIPS32 LE hardfloat. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="mipselhf-musl" XBPS_TARGET_QEMU_MACHINE="mipsel" diff --git a/common/cross-profiles/mipshf-musl.sh b/common/cross-profiles/mipshf-musl.sh index 7b84a04caf8..e96cff66db3 100644 --- a/common/cross-profiles/mipshf-musl.sh +++ b/common/cross-profiles/mipshf-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for MIPS32 BE hard float. -XBPS_TARGET_ENDIAN=be -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="mipshf-musl" XBPS_TARGET_QEMU_MACHINE="mips" diff --git a/common/cross-profiles/ppc-musl.sh b/common/cross-profiles/ppc-musl.sh index 31edd895316..ca941220c59 100644 --- a/common/cross-profiles/ppc-musl.sh +++ b/common/cross-profiles/ppc-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for PowerPC. -XBPS_TARGET_ENDIAN=be -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="ppc-musl" XBPS_TARGET_QEMU_MACHINE="ppc" diff --git a/common/cross-profiles/ppc.sh b/common/cross-profiles/ppc.sh index ec697abcf47..7bce7afd336 100644 --- a/common/cross-profiles/ppc.sh +++ b/common/cross-profiles/ppc.sh @@ -1,6 +1,4 @@ # Cross build profile for PowerPC. -XBPS_TARGET_ENDIAN=be -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=32 XBPS_TARGET_MACHINE="ppc" XBPS_TARGET_QEMU_MACHINE="ppc" diff --git a/common/cross-profiles/ppc64-musl.sh b/common/cross-profiles/ppc64-musl.sh index 4e0395b0e01..2bf5b2c8ca7 100644 --- a/common/cross-profiles/ppc64-musl.sh +++ b/common/cross-profiles/ppc64-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for ppc64 big-endian musl. -XBPS_TARGET_ENDIAN=be -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=64 XBPS_TARGET_MACHINE="ppc64-musl" XBPS_TARGET_QEMU_MACHINE="ppc64" diff --git a/common/cross-profiles/ppc64.sh b/common/cross-profiles/ppc64.sh index 2d7ea00bcaf..b014fbe392c 100644 --- a/common/cross-profiles/ppc64.sh +++ b/common/cross-profiles/ppc64.sh @@ -1,6 +1,4 @@ # Cross build profile for ppc64 big-endian GNU. -XBPS_TARGET_ENDIAN=be -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=64 XBPS_TARGET_MACHINE="ppc64" XBPS_TARGET_QEMU_MACHINE="ppc64" diff --git a/common/cross-profiles/ppc64le-musl.sh b/common/cross-profiles/ppc64le-musl.sh index 426879a8223..d7258b99aef 100644 --- a/common/cross-profiles/ppc64le-musl.sh +++ b/common/cross-profiles/ppc64le-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for ppc64 little-endian musl. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=64 XBPS_TARGET_MACHINE="ppc64le-musl" XBPS_TARGET_QEMU_MACHINE="ppc64le" diff --git a/common/cross-profiles/ppc64le.sh b/common/cross-profiles/ppc64le.sh index 1e1aceb186f..c14b1e5ecd1 100644 --- a/common/cross-profiles/ppc64le.sh +++ b/common/cross-profiles/ppc64le.sh @@ -1,6 +1,4 @@ # Cross build profile for ppc64 little-endian GNU. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=glibc XBPS_TARGET_WORDSIZE=64 XBPS_TARGET_MACHINE="ppc64le" XBPS_TARGET_QEMU_MACHINE="ppc64le" diff --git a/common/cross-profiles/x86_64-musl.sh b/common/cross-profiles/x86_64-musl.sh index d538dd7b336..cde91f808b5 100644 --- a/common/cross-profiles/x86_64-musl.sh +++ b/common/cross-profiles/x86_64-musl.sh @@ -1,6 +1,4 @@ # Cross build profile for x86_64 and Musl libc. -XBPS_TARGET_ENDIAN=le -XBPS_TARGET_LIBC=musl XBPS_TARGET_WORDSIZE=64 XBPS_TARGET_MACHINE="x86_64-musl" XBPS_TARGET_QEMU_MACHINE="x86_64" diff --git a/common/xbps-src/shutils/common.sh b/common/xbps-src/shutils/common.sh index e39f0cef86b..146d4e0604d 100644 --- a/common/xbps-src/shutils/common.sh +++ b/common/xbps-src/shutils/common.sh @@ -276,8 +276,8 @@ setup_pkg() { if [ -n "$cross" ]; then source_file $XBPS_CROSSPFDIR/${cross}.sh - for f in TARGET_ENDIAN TARGET_LIBC TARGET_WORDSIZE TARGET_MACHINE \ - CROSS_TRIPLET CROSS_CFLAGS CROSS_CXXFLAGS TARGET_QEMU_MACHINE; do + _vars="TARGET_WORDSIZE TARGET_MACHINE CROSS_TRIPLET CROSS_CFLAGS CROSS_CXXFLAGS TARGET_QEMU_MACHINE" + for f in ${_vars}; do eval val="\$XBPS_$f" if [ -z "$val" ]; then echo "ERROR: XBPS_$f is not defined!" @@ -286,7 +286,7 @@ setup_pkg() { done export XBPS_CROSS_BASE=/usr/$XBPS_CROSS_TRIPLET - export XBPS_TARGET_ENDIAN XBPS_TARGET_LIBC XBPS_TARGET_WORDSIZE + export XBPS_TARGET_WORDSIZE export XBPS_TARGET_QEMU_MACHINE XBPS_INSTALL_XCMD="env XBPS_TARGET_ARCH=$XBPS_TARGET_MACHINE $XBPS_INSTALL_CMD -c /host/repocache -r $XBPS_CROSS_BASE" @@ -297,8 +297,6 @@ setup_pkg() { XBPS_UHELPER_XCMD="env XBPS_TARGET_ARCH=$XBPS_TARGET_MACHINE xbps-uhelper -r $XBPS_CROSS_BASE" XBPS_CHECKVERS_XCMD="env XBPS_TARGET_ARCH=$XBPS_TARGET_MACHINE xbps-checkvers -r $XBPS_CROSS_BASE --repository=$XBPS_REPOSITORY" else - export XBPS_TARGET_ENDIAN=${XBPS_TARGET_ENDIAN:-$XBPS_ENDIAN} - export XBPS_TARGET_LIBC=${XBPS_TARGET_LIBC:-$XBPS_LIBC} export XBPS_TARGET_WORDSIZE=${XBPS_TARGET_WORDSIZE:-$XBPS_WORDSIZE} export XBPS_TARGET_MACHINE=${XBPS_ARCH:-$XBPS_MACHINE} unset XBPS_CROSS_BASE XBPS_CROSS_LDFLAGS XBPS_CROSS_FFLAGS