mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-09 12:55:23 +01:00
Add libtool 2.4.7
Instead of using the pre-generated "bootstrap" script, execute the relevant bootstrap operations manually. This doesn't actually change the build output; the final package hash remains identical.
This commit is contained in:
parent
e9d53f1e6e
commit
5aae443d65
9 changed files with 229 additions and 11 deletions
|
|
@ -20,6 +20,7 @@ df807e694deea2dcba0c43af318394f3e3fcd52658c3b71b61dad0ce0c0cfb77 gnulib-30820c.
|
|||
8cced51f89a950472473856f86e88f5daf97a2347756125ccdc8ee907deec570 gnulib-672663a.tar.gz
|
||||
2d911c2f2ed97b347d6d360b742abdc98aa626d4f8f847ee682c7cde12e90871 gnulib-7daa86f.tar.gz
|
||||
f9aad85de1f41d57c9368d304020ffbf354a5e56db1297f022c3d12181134e56 gnulib-901694b9.tar.gz
|
||||
719b399fe09a8f6ca14ba8c4a9a60ce9f93f4892effb50961ef3d8cd1a33ff65 gnulib-a521820.tar.gz
|
||||
0190f28cb155fedd22bf8558c3e8705eed9eacfb7ae29e7508d025a68eb90899 gnulib-b28236b.tar.gz
|
||||
1aeea67b7b3883ebcf2b90bc01f4182d7de073a052dabd3749f20c5aa4ad3e27 gnulib-b81ec69.tar.gz
|
||||
12cfa21abf618a274017d6b18e95fc6582519d7c08e2403e5c5772ccdd5b85f4 gnulib-d279bc.tar.gz
|
||||
|
|
@ -30,6 +31,7 @@ f57d86c70620271bfceb7a9be0c81744a033f08adc7ceba832c9917ab3e691b7 guile-3.0.7.ta
|
|||
f0b19ff39c3c9a5898a219497ababbadab99d8178acc980155c7e1271089b5a0 libarchive-3.5.2.tar.xz
|
||||
587edf60817f56daf1e1ab38a4b3c729b8e846ff67b4f62a6157183708f099af libatomic_ops-7.6.10.tar.gz
|
||||
72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056 libffi-3.3.tar.gz
|
||||
4f7f217f057ce655ff22559ad221a0fd8ef84ad1fc5fcb6990cecc333aa1635d libtool-2.4.7.tar.xz
|
||||
eb8fb2c3e4b6e2d336608377050892b54c3c983b646c561836550863003c05d7 libunistring-0.9.10.tar.xz
|
||||
e40b8f018c1da64edd1cc9a6fce5fa63b2e707e404e20cad91fbae337c98a5b7 make-4.2.1.tar.gz
|
||||
17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459 mpc-1.2.1.tar.gz
|
||||
|
|
|
|||
100
sysc/libtool-2.4.7/bootstrap-helper.sh
Executable file
100
sysc/libtool-2.4.7/bootstrap-helper.sh
Executable file
|
|
@ -0,0 +1,100 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2010-2019, 2021 Bootstrap Authors
|
||||
# SPDX-FileCopyrightText: 2010-2019, 2021-2022 Free Software Foundation, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
EXIT_FALURE=1
|
||||
|
||||
#######################################
|
||||
# Extracted from the output of: #
|
||||
# ./bootstrap --verbose --force #
|
||||
#######################################
|
||||
|
||||
MAKE='make'
|
||||
SED='/usr/bin/sed'
|
||||
|
||||
build_aux='build-aux'
|
||||
ltdl_dir='libltdl'
|
||||
macro_dir='m4'
|
||||
|
||||
package_name='GNU Libtool'
|
||||
package='libtool'
|
||||
package_bugreport='bug-libtool@gnu.org'
|
||||
package_url='http://www.gnu.org/s/libtool/'
|
||||
package_version='2.4.7'
|
||||
|
||||
#############################
|
||||
# Inspired by "bootstrap" #
|
||||
#############################
|
||||
|
||||
func_show_eval ()
|
||||
{
|
||||
eval "$1"
|
||||
_G_status=$?
|
||||
if test 0 -ne "$_G_status"; then
|
||||
exit $_G_status
|
||||
fi
|
||||
}
|
||||
|
||||
##################################
|
||||
# Copied from "bootstrap.conf" #
|
||||
##################################
|
||||
|
||||
# libtool_build_prerequisites
|
||||
# ---------------------------
|
||||
# Libtool generates some files that are required before any autotools
|
||||
# can be run successfully.
|
||||
libtool_build_prerequisites ()
|
||||
{
|
||||
$debug_cmd
|
||||
|
||||
$require_build_aux
|
||||
$require_ltdl_dir
|
||||
$require_macro_dir
|
||||
$require_package
|
||||
$require_package_bugreport
|
||||
$require_package_name
|
||||
$require_package_url
|
||||
$require_package_version
|
||||
|
||||
# Whip up a dirty Makefile:
|
||||
makes='Makefile.am libltdl/ltdl.mk'
|
||||
rm -f Makefile
|
||||
{
|
||||
echo "aux_dir = $build_aux"
|
||||
echo "ltdl_dir = $ltdl_dir"
|
||||
echo "macro_dir = $macro_dir"
|
||||
|
||||
# The following allow us to tie bootstrap-deps output verbosity
|
||||
# into the bootstrap --verbose option:
|
||||
echo 'AM_V_GEN = $(am__v_GEN_$(V))'
|
||||
echo 'am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))'
|
||||
echo 'am__v_GEN_0 = @echo " GEN " $@;'
|
||||
echo 'AM_V_at = $(am__v_at_$(V))'
|
||||
echo 'am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))'
|
||||
echo 'am__v_at_0 = @'
|
||||
|
||||
$SED '/^if /,/^endif$/d;/^else$/,/^endif$/d;/^include /d' $makes
|
||||
} > Makefile
|
||||
|
||||
# Building distributed files from configure is bad for automake, so we
|
||||
# generate them here, and have Makefile rules to keep them up to date.
|
||||
func_show_eval "$MAKE V=1 bootstrap-deps \
|
||||
AM_DEFAULT_VERBOSITY=0 `$opt_verbose && echo V=1` \
|
||||
PACKAGE='$package' PACKAGE_BUGREPORT='$package_bugreport' \
|
||||
PACKAGE_NAME='$package_name' PACKAGE_URL='$package_url' \
|
||||
SED='$SED' srcdir=. VERSION='$package_version'"
|
||||
status=$?
|
||||
|
||||
rm -f Makefile
|
||||
test 0 -eq "$status" ||exit $EXIT_FAILURE
|
||||
}
|
||||
|
||||
###################
|
||||
# Run functions #
|
||||
###################
|
||||
|
||||
libtool_build_prerequisites
|
||||
34
sysc/libtool-2.4.7/import-gnulib.sh
Executable file
34
sysc/libtool-2.4.7/import-gnulib.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -e
|
||||
|
||||
../gnulib-a521820/gnulib-tool \
|
||||
--no-changelog \
|
||||
--avoid=dummy \
|
||||
--libtool \
|
||||
--macro-prefix=GL \
|
||||
--with-tests \
|
||||
--tests-base=gnulib-tests \
|
||||
--aux-dir=build-aux \
|
||||
--m4-base=m4 \
|
||||
--local-dir=gl \
|
||||
--local-dir=gl-mod/bootstrap \
|
||||
--symlink \
|
||||
--import announce-gen \
|
||||
bootstrap \
|
||||
do-release-commit-and-tag \
|
||||
extract-trace \
|
||||
gendocs \
|
||||
git-version-gen \
|
||||
gitlog-to-changelog \
|
||||
gnu-web-doc-update \
|
||||
gnupload \
|
||||
inline-source \
|
||||
maintainer-makefile \
|
||||
options-parser \
|
||||
readme-release \
|
||||
update-copyright
|
||||
51
sysc/libtool-2.4.7/libtool-2.4.7.sh
Executable file
51
sysc/libtool-2.4.7/libtool-2.4.7.sh
Executable file
|
|
@ -0,0 +1,51 @@
|
|||
# SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
urls="http://mirrors.kernel.org/gnu/libtool/libtool-2.4.7.tar.xz
|
||||
http://git.savannah.gnu.org/cgit/gnulib.git/snapshot/gnulib-a521820.tar.gz"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
rm -f build-aux/ltmain.sh
|
||||
rm -f doc/*.info
|
||||
rm -f bootstrap
|
||||
|
||||
../../import-gnulib.sh
|
||||
|
||||
LIBTOOLIZE=true AUTOPOINT=true ../../bootstrap-helper.sh
|
||||
|
||||
LIBTOOLIZE=true AUTOPOINT=true AUTOMAKE=automake-1.11 ACLOCAL=aclocal-1.11 AUTOCONF=autoconf-2.64 AUTOHEADER=autoheader-2.64 autoreconf-2.64 -fi
|
||||
LIBTOOLIZE=true AUTOPOINT=true AUTOMAKE=automake-1.11 ACLOCAL=aclocal-1.11 AUTOCONF=autoconf-2.64 AUTOHEADER=autoheader-2.64 autoreconf-2.64 -fi libltdl
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${PREFIX}/lib/musl" \
|
||||
--disable-shared \
|
||||
--host=i386-unknown-linux \
|
||||
--target=i386-unknown-linux \
|
||||
--build=i386-unknown-linux \
|
||||
ac_path_EGREP="egrep" \
|
||||
ac_path_FGREP="fgrep" \
|
||||
ac_path_GREP="grep" \
|
||||
ac_path_SED="sed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
make AUTOM4TE=autom4te-2.64 MAKEINFO=true
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make install MAKEINFO=true DESTDIR="${DESTDIR}"
|
||||
|
||||
sed -i -e "s/{EGREP=.*/{EGREP='egrep'}/" \
|
||||
-e "s/{FGREP=.*/{FREGP='fgrep'}/" \
|
||||
-e "s/{GREP=.*/{GREP='grep'}/" \
|
||||
-e "s/{SED=.*/{SED='sed'}/" \
|
||||
"${DESTDIR}/usr/bin/libtool"
|
||||
}
|
||||
17
sysc/libtool-2.4.7/patches/hostname.patch
Normal file
17
sysc/libtool-2.4.7/patches/hostname.patch
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
||||
SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
Remove hostname from libtool script.
|
||||
|
||||
--- m4/libtool.m4 2022-03-17 04:43:39.000000000 +0200
|
||||
+++ m4/libtool.m4 2022-09-03 20:04:29.687049292 +0300
|
||||
@@ -730,7 +730,6 @@
|
||||
cat <<_LT_EOF >> "$cfgfile"
|
||||
#! $SHELL
|
||||
# Generated automatically by $as_me ($PACKAGE) $VERSION
|
||||
-# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
||||
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
||||
|
||||
# Provide generalized library-building support services.
|
||||
|
|
@ -23,6 +23,8 @@ build xz-5.0.5
|
|||
|
||||
build automake-1.11.2
|
||||
|
||||
build libtool-2.4.7
|
||||
|
||||
build autoconf-2.69
|
||||
|
||||
build automake-1.15.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue