mirror of
https://linux.maple.camp/git/ahill/maplelinux-bootstrap.git
synced 2026-02-11 10:13:35 +00:00
Fixed libtool, musl, and perl for rootbuild
This commit is contained in:
@@ -14,7 +14,7 @@ build() {
|
||||
# which requires musl-fts to function, which we can't build without
|
||||
# libtoolize. Strangely enough, libtool is hard-coded to /bin/sh, so
|
||||
# I don't know why libtoolize uses /usr/bin/env. ~ahill
|
||||
sed -i "s|/usr/bin/env sh|/bin/sh" libtoolize
|
||||
sed -i "s|/usr/bin/env sh|/bin/sh|" libtoolize
|
||||
}
|
||||
|
||||
clean() {
|
||||
@@ -24,4 +24,4 @@ clean() {
|
||||
package() {
|
||||
cd libtool-*/
|
||||
make -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,5 +28,6 @@ package() {
|
||||
DESTDIR=$TT_INSTALLDIR make install
|
||||
# NOTE: Apparently, the linker library has an entry point that we can use as
|
||||
# ldd. What kind of black magic is this? ~ahill
|
||||
mkdir -p $TT_INSTALLDIR/bin
|
||||
ln -sf /lib/ld-musl-$TT_ARCH.so.1 $TT_INSTALLDIR/bin/ldd
|
||||
}
|
||||
|
||||
@@ -2,12 +2,22 @@
|
||||
SRC_HASH="e093ef184d7f9a1b9797e2465296f55510adb6dab8842b0c3ed53329663096dc"
|
||||
SRC_NAME="perl"
|
||||
SRC_URL="https://www.cpan.org/src/5.0/perl-5.42.0.tar.gz"
|
||||
SRC_VERSION="5.42.0"
|
||||
SRC_VERSION="5.42.0r1"
|
||||
|
||||
build() {
|
||||
tar xf ../$SRC_FILENAME
|
||||
cd perl-*/
|
||||
./Configure -des
|
||||
# NOTE: Not a Perl user, so I hope I don't screw this up. ~ahill
|
||||
./Configure -des \
|
||||
-D bin=$TT_BINDIR \
|
||||
-D installstyle=lib/perl5 \
|
||||
-D prefix=$TT_PREFIX \
|
||||
-D scriptdir=$TT_BINDIR \
|
||||
-D sysroot=$TT_SYSROOT \
|
||||
-D useshrplib \
|
||||
-D usethreads \
|
||||
-D usrinc=$TT_INCLUDEDIR \
|
||||
-D vendorprefix=$TT_PREFIX
|
||||
make -O -j $TT_PROCS
|
||||
}
|
||||
|
||||
@@ -17,5 +27,5 @@ clean() {
|
||||
|
||||
package() {
|
||||
cd perl-*/
|
||||
make -O -j $TT_PROCS DESTDIR=$TT_INSTALLDIR
|
||||
}
|
||||
make -O -j $TT_PROCS install.perl DESTDIR=$TT_INSTALLDIR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user