Add LIBDIR variable for the musl library directory
LIBDIR should be used where possible to avoid unnecessary duplication in build scripts that target the musl toolchain. No change in package hashes.
This commit is contained in:
parent
c3a745c997
commit
59a13f0d09
|
@ -122,7 +122,7 @@ src_configure() {
|
||||||
--with-sysroot="${PREFIX}" \
|
--with-sysroot="${PREFIX}" \
|
||||||
--disable-64-bit-bfd \
|
--disable-64-bit-bfd \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--srcdir=.
|
--srcdir=.
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
|
|
@ -21,7 +21,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
LDFLAGS="-static" ./configure \
|
LDFLAGS="-static" ./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-gnu \
|
--build=i386-unknown-linux-gnu \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--without-ssl \
|
--without-ssl \
|
||||||
|
|
|
@ -11,7 +11,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
CC=gcc ./configure \
|
CC=gcc ./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--sbindir="${PREFIX}/bin" \
|
--sbindir="${PREFIX}/bin" \
|
||||||
--disable-embedded \
|
--disable-embedded \
|
||||||
--disable-auth
|
--disable-auth
|
||||||
|
|
|
@ -74,7 +74,7 @@ src_configure() {
|
||||||
cd $dir
|
cd $dir
|
||||||
CC=tcc CFLAGS="-D HAVE_ALLOCA_H" ../../$dir/configure \
|
CC=tcc CFLAGS="-D HAVE_ALLOCA_H" ../../$dir/configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}"/lib/musl \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--target=i386-unknown-linux-musl \
|
--target=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
|
@ -98,9 +98,9 @@ src_compile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
mkdir -p "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/install-tools/include"
|
mkdir -p "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/install-tools/include"
|
||||||
make -C build/gcc install STMP_FIXINC= DESTDIR="${DESTDIR}"
|
make -C build/gcc install STMP_FIXINC= DESTDIR="${DESTDIR}"
|
||||||
mkdir -p "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/include"
|
mkdir -p "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/include"
|
||||||
rm "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/include/syslimits.h"
|
rm "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/include/syslimits.h"
|
||||||
cp gcc/gsyslimits.h "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/include/syslimits.h"
|
cp gcc/gsyslimits.h "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/include/syslimits.h"
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ src_configure() {
|
||||||
cd $dir
|
cd $dir
|
||||||
../../$dir/configure \
|
../../$dir/configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}"/lib/musl \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--target=i386-unknown-linux-musl \
|
--target=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
|
@ -92,7 +92,7 @@ src_compile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
mkdir -p "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/install-tools/include"
|
mkdir -p "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/install-tools/include"
|
||||||
make -C build/gcc install STMP_FIXINC= DESTDIR="${DESTDIR}"
|
make -C build/gcc install STMP_FIXINC= DESTDIR="${DESTDIR}"
|
||||||
cp gcc/gsyslimits.h "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/include/syslimits.h"
|
cp gcc/gsyslimits.h "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/include/syslimits.h"
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
CC=tcc LD=true AR="tcc -ar" ./configure \
|
CC=tcc LD=true AR="tcc -ar" ./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--host=i386-unknown-linux \
|
--host=i386-unknown-linux \
|
||||||
--target=i386-unknown-linux \
|
--target=i386-unknown-linux \
|
||||||
|
|
|
@ -16,7 +16,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
CC=tcc ./configure \
|
CC=tcc ./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--host=i386-unknown-linux \
|
--host=i386-unknown-linux \
|
||||||
--target=i386-unknown-linux \
|
--target=i386-unknown-linux \
|
||||||
|
|
|
@ -14,7 +14,7 @@ src_configure() {
|
||||||
--host=i386 \
|
--host=i386 \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--includedir="${PREFIX}/include/"
|
--includedir="${PREFIX}/include/"
|
||||||
|
|
||||||
# configure script creates this file
|
# configure script creates this file
|
||||||
|
|
|
@ -17,7 +17,7 @@ src_configure() {
|
||||||
--host=i386 \
|
--host=i386 \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl/" \
|
--libdir="${LIBDIR}" \
|
||||||
--includedir="${PREFIX}/include/musl"
|
--includedir="${PREFIX}/include/musl"
|
||||||
|
|
||||||
# configure script creates this file
|
# configure script creates this file
|
||||||
|
|
|
@ -7,7 +7,7 @@ src_configure() {
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--includedir="${PREFIX}/include/"
|
--includedir="${PREFIX}/include/"
|
||||||
|
|
||||||
# configure script creates this file
|
# configure script creates this file
|
||||||
|
|
|
@ -10,6 +10,8 @@ set -e
|
||||||
|
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
PREFIX="${prefix}"
|
PREFIX="${prefix}"
|
||||||
|
# shellcheck disable=SC2034
|
||||||
|
LIBDIR="${prefix}/lib/musl"
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
SOURCES="${sysa}"
|
SOURCES="${sysa}"
|
||||||
DISTFILES="${sysa}/distfiles"
|
DISTFILES="${sysa}/distfiles"
|
||||||
|
|
|
@ -10,7 +10,7 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
export libdir=${PREFIX}/lib/musl
|
export libdir=${LIBDIR}
|
||||||
export incdir=${PREFIX}/include/musl
|
export incdir=${PREFIX}/include/musl
|
||||||
export bindir=${PREFIX}/bin
|
export bindir=${PREFIX}/bin
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
export libdir=${PREFIX}/lib/musl
|
export libdir=${LIBDIR}
|
||||||
export incdir=${PREFIX}/include/musl
|
export incdir=${PREFIX}/include/musl
|
||||||
export bindir=${PREFIX}/bin
|
export bindir=${PREFIX}/bin
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
export libdir=${PREFIX}/lib/musl
|
export libdir=${LIBDIR}
|
||||||
export incdir=${PREFIX}/include
|
export incdir=${PREFIX}/include
|
||||||
export bindir=${PREFIX}/bin
|
export bindir=${PREFIX}/bin
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ src_configure() {
|
||||||
./configure --prefix="${PREFIX}" \
|
./configure --prefix="${PREFIX}" \
|
||||||
--bindir="${PREFIX}/bin" \
|
--bindir="${PREFIX}/bin" \
|
||||||
--sbindir="${PREFIX}/bin" \
|
--sbindir="${PREFIX}/bin" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-gnu \
|
--build=i386-unknown-linux-gnu \
|
||||||
--disable-libuuid \
|
--disable-libuuid \
|
||||||
--without-ncurses \
|
--without-ncurses \
|
||||||
|
|
|
@ -15,7 +15,7 @@ src_prepare() {
|
||||||
src_compile() {
|
src_compile() {
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
export PKG_CONFIG_PATH="${PREFIX}/lib/musl/pkgconfig"
|
export PKG_CONFIG_PATH="${LIBDIR}/pkgconfig"
|
||||||
sed -i "s/make install/make install DESTDIR=\${DESTDIR}/" bootstrap_tarball.sh
|
sed -i "s/make install/make install DESTDIR=\${DESTDIR}/" bootstrap_tarball.sh
|
||||||
sed -i "/make check/d" bootstrap_tarball.sh
|
sed -i "/make check/d" bootstrap_tarball.sh
|
||||||
export FINALPREFIX="${PREFIX}"
|
export FINALPREFIX="${PREFIX}"
|
||||||
|
|
|
@ -75,7 +75,7 @@ src_configure() {
|
||||||
--program-prefix="" \
|
--program-prefix="" \
|
||||||
--with-sysroot="${PREFIX}" \
|
--with-sysroot="${PREFIX}" \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--srcdir=.
|
--srcdir=.
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
|
|
@ -20,7 +20,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
LEX=flex-2.5.33 ./configure \
|
LEX=flex-2.5.33 ./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--program-suffix=-2.3 \
|
--program-suffix=-2.3 \
|
||||||
--datarootdir="${PREFIX}/share/bison-2.3"
|
--datarootdir="${PREFIX}/share/bison-2.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ src_prepare() {
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure --prefix="${PREFIX}" \
|
./configure --prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-nls
|
--disable-nls
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
LDFLAGS="-static" ./configure \
|
LDFLAGS="-static" ./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-ca-bundle=/etc/ssl/certs.pem \
|
--with-ca-bundle=/etc/ssl/certs.pem \
|
||||||
|
|
|
@ -17,7 +17,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--program-suffix=-2.5.33
|
--program-suffix=-2.5.33
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ src_configure() {
|
||||||
# CFLAGS needed on musl
|
# CFLAGS needed on musl
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR'
|
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR'
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ src_configure() {
|
||||||
cd $dir
|
cd $dir
|
||||||
../../$dir/configure \
|
../../$dir/configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}"/lib/musl \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--target=i386-unknown-linux-musl \
|
--target=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
|
@ -131,11 +131,11 @@ src_install() {
|
||||||
make -C build/libgcc install DESTDIR="${DESTDIR}" host_subdir=build
|
make -C build/libgcc install DESTDIR="${DESTDIR}" host_subdir=build
|
||||||
make -C build/libstdc++-v3 install DESTDIR="${DESTDIR}"
|
make -C build/libstdc++-v3 install DESTDIR="${DESTDIR}"
|
||||||
ln -s gcc "${DESTDIR}${PREFIX}/bin/cc"
|
ln -s gcc "${DESTDIR}${PREFIX}/bin/cc"
|
||||||
cp gcc/gsyslimits.h "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.7.4/include/syslimits.h"
|
cp gcc/gsyslimits.h "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.7.4/include/syslimits.h"
|
||||||
|
|
||||||
# Very strange mis-versoning error
|
# Very strange mis-versoning error
|
||||||
mkdir -p "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.7.4/include/"
|
mkdir -p "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.7.4/include/"
|
||||||
mv "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/include/"* "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.7.4/include/"
|
mv "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/include/"* "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.7.4/include/"
|
||||||
rmdir "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/include"
|
rmdir "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/include"
|
||||||
mv "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.0.4/"* "${DESTDIR}${PREFIX}/lib/musl/gcc/i386-unknown-linux-musl/4.7.4/"
|
mv "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.0.4/"* "${DESTDIR}${LIBDIR}/gcc/i386-unknown-linux-musl/4.7.4/"
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure --prefix="${PREFIX}" --libdir="${PREFIX}/lib/musl" --enable-static --disable-shared --disable-java
|
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}" --enable-static --disable-shared --disable-java
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
|
|
@ -17,7 +17,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,9 +31,9 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
PKG_CONFIG_PATH="${PREFIX}/lib/musl/pkgconfig" ./configure \
|
PKG_CONFIG_PATH="${LIBDIR}/pkgconfig" ./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--disable-jit
|
--disable-jit
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
LIBDIR="${PREFIX}/lib/musl"
|
||||||
SOURCES="${PREFIX}/src"
|
SOURCES="${PREFIX}/src"
|
||||||
DESTDIR=/tmp/destdir
|
DESTDIR=/tmp/destdir
|
||||||
DISTFILES=/distfiles
|
DISTFILES=/distfiles
|
||||||
|
@ -65,6 +66,7 @@ cd "${SOURCES}"
|
||||||
|
|
||||||
echo "PREFIX=${PREFIX}" > .env
|
echo "PREFIX=${PREFIX}" > .env
|
||||||
# shellcheck disable=SC2129
|
# shellcheck disable=SC2129
|
||||||
|
echo "LIBDIR=${LIBDIR}" >> .env
|
||||||
echo "SOURCES=${SOURCES}" >> .env
|
echo "SOURCES=${SOURCES}" >> .env
|
||||||
echo "DESTDIR=${DESTDIR}" >> .env
|
echo "DESTDIR=${DESTDIR}" >> .env
|
||||||
echo "DISTFILES=${DISTFILES}" >> .env
|
echo "DISTFILES=${DISTFILES}" >> .env
|
||||||
|
|
|
@ -9,7 +9,7 @@ src_prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure --prefix="${PREFIX}" --libdir="${PREFIX}/lib/musl" \
|
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}" \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--with-gcc-arch=generic \
|
--with-gcc-arch=generic \
|
||||||
|
|
|
@ -23,7 +23,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--host=i386-unknown-linux \
|
--host=i386-unknown-linux \
|
||||||
--target=i386-unknown-linux \
|
--target=i386-unknown-linux \
|
||||||
|
|
|
@ -16,6 +16,6 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
|
|
||||||
# Disable tuning as that might cause non-reproducible build
|
# Disable tuning as that might cause non-reproducible build
|
||||||
|
|
|
@ -7,7 +7,7 @@ src_configure() {
|
||||||
./configure \
|
./configure \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--includedir="${PREFIX}/include/"
|
--includedir="${PREFIX}/include/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ src_install() {
|
||||||
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
|
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
|
||||||
rmdir "${DESTDIR}/lib"
|
rmdir "${DESTDIR}/lib"
|
||||||
mkdir -p "${DESTDIR}${PREFIX}/lib"
|
mkdir -p "${DESTDIR}${PREFIX}/lib"
|
||||||
ln -sr "${DESTDIR}${PREFIX}/lib/musl/libc.so" "${DESTDIR}${PREFIX}/lib/ld-musl-i386.so.1"
|
ln -sr "${DESTDIR}${LIBDIR}/libc.so" "${DESTDIR}${PREFIX}/lib/ld-musl-i386.so.1"
|
||||||
|
|
||||||
# Add symlink for ldd
|
# Add symlink for ldd
|
||||||
mkdir -p "${DESTDIR}${PREFIX}/bin"
|
mkdir -p "${DESTDIR}${PREFIX}/bin"
|
||||||
|
|
|
@ -18,7 +18,7 @@ src_prepare() {
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
MACHINE=i386 ./config --prefix="${PREFIX}" \
|
MACHINE=i386 ./config --prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
no-shared
|
no-shared
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--with-wctype-functions
|
--with-wctype-functions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl"
|
--libdir="${LIBDIR}"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
|
|
@ -39,7 +39,7 @@ src_configure() {
|
||||||
CFLAGS="-U__DATE__ -U__TIME__" \
|
CFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--with-wctype-functions \
|
--with-wctype-functions \
|
||||||
--enable-ipv6
|
--enable-ipv6
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ src_configure() {
|
||||||
CFLAGS="-U__DATE__ -U__TIME__" \
|
CFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--enable-ipv6
|
--enable-ipv6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,12 +44,12 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
CFLAGS="-U__DATE__ -U__TIME__" \
|
CFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
LDFLAGS="-L/usr/lib/musl" \
|
LDFLAGS="-L${LIBDIR}" \
|
||||||
./configure \
|
./configure \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--with-system-ffi \
|
--with-system-ffi \
|
||||||
--enable-ipv6
|
--enable-ipv6
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,10 +37,10 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
CFLAGS="-U__DATE__ -U__TIME__" \
|
CFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
LDFLAGS="-L/usr/lib/musl" \
|
LDFLAGS="-L${LIBDIR}" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--with-pydebug \
|
--with-pydebug \
|
||||||
|
@ -72,7 +72,7 @@ src_compile() {
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/lib/musl/python3.1/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.1/lib-dynload"
|
ln --symbolic --relative "${DESTDIR}${LIBDIR}/python3.1/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.1/lib-dynload"
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.1" "${DESTDIR}${PREFIX}/bin/python"
|
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.1" "${DESTDIR}${PREFIX}/bin/python"
|
||||||
|
|
||||||
# Remove non-reproducible .pyc/o files
|
# Remove non-reproducible .pyc/o files
|
||||||
|
|
|
@ -42,10 +42,10 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
CFLAGS="-U__DATE__ -U__TIME__" \
|
CFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
LDFLAGS="-L/usr/lib/musl" \
|
LDFLAGS="-L${LIBDIR}" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--with-pydebug \
|
--with-pydebug \
|
||||||
|
@ -77,7 +77,7 @@ src_compile() {
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/lib/musl/python3.1/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.1/lib-dynload"
|
ln --symbolic --relative "${DESTDIR}${LIBDIR}/python3.1/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.1/lib-dynload"
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.1" "${DESTDIR}${PREFIX}/bin/python"
|
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.1" "${DESTDIR}${PREFIX}/bin/python"
|
||||||
|
|
||||||
# Remove non-reproducible .pyc/o files
|
# Remove non-reproducible .pyc/o files
|
||||||
|
|
|
@ -53,13 +53,13 @@ src_configure() {
|
||||||
mv Setup.local Modules
|
mv Setup.local Modules
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
CPPFLAGS="-U__DATE__ -U__TIME__" \
|
CPPFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
PKG_CONFIG_PATH="${PREFIX}/lib/musl/pkgconfig/" \
|
PKG_CONFIG_PATH="${LIBDIR}/pkgconfig/" \
|
||||||
LDFLAGS="-static" \
|
LDFLAGS="-static" \
|
||||||
./configure \
|
./configure \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--with-system-ffi \
|
--with-system-ffi \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
}
|
}
|
||||||
|
@ -97,6 +97,6 @@ src_compile() {
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/lib/musl/python3.11/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.11/lib-dynload"
|
ln --symbolic --relative "${DESTDIR}${LIBDIR}/python3.11/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.11/lib-dynload"
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.11" "${DESTDIR}${PREFIX}/bin/python"
|
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.11" "${DESTDIR}${PREFIX}/bin/python"
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,12 +44,12 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
CFLAGS="-U__DATE__ -U__TIME__" \
|
CFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
LDFLAGS="-L/usr/lib/musl" \
|
LDFLAGS="-L${LIBDIR}" \
|
||||||
./configure \
|
./configure \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--with-system-ffi
|
--with-system-ffi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ src_compile() {
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/lib/musl/python3.3/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.3/lib-dynload"
|
ln --symbolic --relative "${DESTDIR}${LIBDIR}/python3.3/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.3/lib-dynload"
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.3" "${DESTDIR}${PREFIX}/bin/python"
|
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.3" "${DESTDIR}${PREFIX}/bin/python"
|
||||||
|
|
||||||
# Remove non-reproducible .pyc/o files
|
# Remove non-reproducible .pyc/o files
|
||||||
|
|
|
@ -47,12 +47,12 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
CFLAGS="-U__DATE__ -U__TIME__" \
|
CFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
LDFLAGS="-L/usr/lib/musl" \
|
LDFLAGS="-L${LIBDIR}" \
|
||||||
./configure \
|
./configure \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--with-system-ffi
|
--with-system-ffi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ src_compile() {
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/lib/musl/python3.4/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.4/lib-dynload"
|
ln --symbolic --relative "${DESTDIR}${LIBDIR}/python3.4/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.4/lib-dynload"
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.4" "${DESTDIR}${PREFIX}/bin/python"
|
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.4" "${DESTDIR}${PREFIX}/bin/python"
|
||||||
|
|
||||||
# Remove non-reproducible .pyc/o files
|
# Remove non-reproducible .pyc/o files
|
||||||
|
|
|
@ -41,12 +41,12 @@ src_prepare() {
|
||||||
src_configure() {
|
src_configure() {
|
||||||
MACHDEP=linux ac_sys_system=Linux \
|
MACHDEP=linux ac_sys_system=Linux \
|
||||||
CPPFLAGS="-U__DATE__ -U__TIME__" \
|
CPPFLAGS="-U__DATE__ -U__TIME__" \
|
||||||
LDFLAGS="-L/usr/lib/musl" \
|
LDFLAGS="-L${LIBDIR}" \
|
||||||
./configure \
|
./configure \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--host=i386-unknown-linux-musl \
|
--host=i386-unknown-linux-musl \
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--libdir="${PREFIX}/lib/musl" \
|
--libdir="${LIBDIR}" \
|
||||||
--with-system-ffi
|
--with-system-ffi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ src_compile() {
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/lib/musl/python3.8/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.8/lib-dynload"
|
ln --symbolic --relative "${DESTDIR}${LIBDIR}/python3.8/lib-dynload" "${DESTDIR}${PREFIX}/lib/python3.8/lib-dynload"
|
||||||
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.8" "${DESTDIR}${PREFIX}/bin/python"
|
ln --symbolic --relative "${DESTDIR}${PREFIX}/bin/python3.8" "${DESTDIR}${PREFIX}/bin/python"
|
||||||
|
|
||||||
# Remove non-reproducible .pyc/o files
|
# Remove non-reproducible .pyc/o files
|
||||||
|
|
|
@ -13,5 +13,5 @@ src_configure() {
|
||||||
--prefix="${PREFIX}" \
|
--prefix="${PREFIX}" \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--build=i386-unknown-linux-musl \
|
--build=i386-unknown-linux-musl \
|
||||||
--libdir="${PREFIX}/lib/musl"
|
--libdir="${LIBDIR}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
./configure --prefix="${PREFIX}" --libdir="${PREFIX}/lib/musl" --static
|
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}" --static
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue