pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

commit b0882ef819de02c5cf81fc8bf3073db950e32537
parent ae22ac151a696ca181ab08b3507b3dd28d83bfa2
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Fri, 22 Sep 2023 03:12:41 +0200

Regenerate packages/ directory

Diffstat:
Mpackages/bison | 13+++++++------
Mpackages/busybox | 7++++---
Apackages/busybox-diffutils | 13+++++++++++++
Mpackages/busybox:bootstrap | 2+-
Mpackages/default.environment | 28++++++++++++++--------------
Apackages/diffutils | 99+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpackages/elf.h | 2+-
Apackages/elfutils | 109+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpackages/execline | 10+++++-----
Mpackages/flex | 11++++++-----
Mpackages/gmp | 11++++++-----
Mpackages/gnu-make | 8++++----
Mpackages/gnu-make:bootstrap | 2+-
Mpackages/libelf.h | 2+-
Mpackages/linux | 17+++++++++--------
Mpackages/m4 | 9+++++----
Mpackages/mdevd | 12++++++------
Mpackages/mpc | 13+++++++------
Mpackages/mpfr | 11++++++-----
Mpackages/musl-cross-make | 16++++++++++++----
Mpackages/patch | 11++++++-----
Apackages/popt | 102+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apackages/rsync | 103+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpackages/s6 | 14+++++++-------
Mpackages/s6-dns | 10+++++-----
Mpackages/s6-linux-init | 14+++++++-------
Mpackages/s6-linux-utils | 10+++++-----
Mpackages/s6-networking | 16++++++++--------
Mpackages/s6-portable-utils | 10+++++-----
Mpackages/s6-rc | 14+++++++-------
Mpackages/skalibs | 6+++---
31 files changed, 574 insertions(+), 131 deletions(-)

diff --git a/packages/bison b/packages/bison @@ -1,10 +1,11 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+m4.ebf3e533502d6128c4fa67ea82a7407d7d0e6b630ad3c7c31147c16819ecf3b4 -#+flex.f66b83d2cfa8f9e464ec6e560fb4ce9227d4021964d1eb90b8b493b0e7f7bd01 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b +#+flex.fb391f40128e7476e15e354c232ea458ccf5a2b988ec182574256a22f84b0d3e #@untar:-J:sha256:9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2:. autotools() { @@ -21,7 +22,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/bison" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/busybox b/packages/busybox @@ -1,8 +1,8 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.5a3ea32d78aa7a67390d110b9f44c88e8254bd8503a91a7ceef5ae7bc56d49d5 -#+busybox.b9094196ca61dd443f1a2d734e8ab616adf15bd671d70d3df6166df7484763c0 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.494701b2236068b9f77aa85410cd7938d7ed55cf2863e83d5d431dcd132af86a +#+busybox.7563bc011df7edbc3a66de4076d9abfd33ccd53ba53a461e743b7c1bcacc38a1 #@git:aa4d303a3139107919f73cece4eaf85a7dc75db6:busybox #@sha256:955edd28faae9dd665f002c85466eef58ef8fd36d76d1f39eb974e22933478ab:busybox/.config @@ -21,6 +21,7 @@ cp -a busybox "$pthbs_destdir/home/ccx/versions/$pthbs_package/command/" cd "$pthbs_destdir/home/ccx/versions/$pthbs_package" echo false | ./command/busybox --list >/dev/null # test if it works ./command/busybox --list | awk ' +/^(cmp|diff)$/ {next} # provided by diffutils { print "./command/busybox\t./command/" $0 } END { print "./command/busybox\t./command/busybox" } ' >.install-links.new diff --git a/packages/busybox-diffutils b/packages/busybox-diffutils @@ -0,0 +1,13 @@ +#!/usr/bin/env pthbs-build +#+* +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 + +mkdir -p "$pthbs_destdir/home/ccx/versions/$pthbs_package" +cd "$pthbs_destdir/home/ccx/versions/$pthbs_package" +bb=$(which busybox) +mkdir command +for exe in cmp diff; do + ln -sf "$bb" command/$exe + printf '%s\t%s\n' "./command/$exe" "./command/$exe" >>.install-links.new +done +mv .install-links.new .install-links diff --git a/packages/busybox:bootstrap b/packages/busybox:bootstrap @@ -5,7 +5,7 @@ : ${JOBS:=1} mcm=/home/ccx/versions/musl-cross-make.6cb863941ec71737e8d15f654be7f64f5e1d1b3578e28f61419c5e7ce58f77c6 -make=/home/ccx/versions/gnu-make.5a3ea32d78aa7a67390d110b9f44c88e8254bd8503a91a7ceef5ae7bc56d49d5 +make=/home/ccx/versions/gnu-make.494701b2236068b9f77aa85410cd7938d7ed55cf2863e83d5d431dcd132af86a export PATH="$mcm/bin:$make/command:$PATH" export CC="$mcm/bin/x86_64-linux-musl-gcc" diff --git a/packages/default.environment b/packages/default.environment @@ -1,13 +1,13 @@ -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+execline.e5e523094b03c20e68d4c526c37b18c4b8223e1206ed156e851365a244ed7518 -#+s6.1b0f460bd31a6a3a7d0976a74711f256606bd9d6488c73a46e61b0b0872882da -#+s6-rc.bd03d636c4f618ec2ecf48f39a0f64ec3b2bd9fd0c4fba6731e37fb2e7766bfb -#+s6-portable-utils.6620660c000714c26a764e6ee4373daf328e26fc7b26a840caec73f85d7a70a6 -#+s6-linux-utils.cb785ba635ede8b71654806a183540658f34373a81852db5d27c8c59e7f18302 -#+s6-linux-init.91d3df82714e86a53c96dc6f2037f13e082b2bb2ecff079fa204d9753160501a -#+mdevd.9e185afd776d4db81f29cc7d4ede13f2a70672da47dc17c4f9730d7dad65e2af -#+s6-dns.2b9d95e1fe04f225a6cf989d86992b73e3c8348948673267f4703d1cb4be5b65 -#+s6-networking.f7b3957cbc6a182fc478c4409bd0b80d8c12573c52e797ee6b1e61663a705d66 -#+linux.acbb8c9f21ae40a2945a20ae7c352738ee75940ac3d2a76a08fe8b3cf1085700- \ No newline at end of file +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+execline.db791e15971a0545fcfb880560ffd8cb986e5289fa309d2dd51d297712e98898 +#+s6.b0bb0d97be95fce10ca4a9f99eee6ab88b9e19027d294123e7277b5b508b7a55 +#+s6-rc.e80c1165b7783e4e8b4646568bfb30cd45f4e60971e58092891f3e690a4f0a69 +#+s6-portable-utils.5ede3b54862c9866ee71f578fc4aebee07f484ffa410b7a8e77e424bf1d4805e +#+s6-linux-utils.2cc95b41013c496861aae050cf98a4eeb3dd06df7abf9c4f99cc729607ded213 +#+s6-linux-init.e93ae9f18689daccaf5fd7e97d5052770dda8083021e77a18a7fc7140f40646f +#+mdevd.f009a9811c862768fff0d143171da07d10321413890a415b513135d54c329f0f +#+s6-dns.35016178e4e39e99fa9f9cc6d61955522588ed04635d07948bd4164807a34a1e +#+s6-networking.7401ca5ecbf77290db0914b20aa8fd36f0f0af4465e3142999c39a0b4f331efd +#+linux.c683687f8248c8baf31390bb8c585e7f8b00a5c399e2abee544c752f2f864f7e+ \ No newline at end of file diff --git a/packages/diffutils b/packages/diffutils @@ -0,0 +1,99 @@ +#!/usr/bin/env pthbs-build +#+* +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b +#@untar:-J:sha256:90e5e93cc724e4ebe12ede80df1634063c7a855692685919bfe60b556c9bd09e:. + +autotools() { + cd "$1" + shift + export LD_LIBRARY_PATH="$pthbs_build_environment/library:$pthbs_build_environment/library.so" + export CPATH="$pthbs_build_environment/include" + prefix=/home/ccx/versions/$pthbs_package + ./configure -C \ + --prefix="$prefix" \ + --build="$($CC -dumpmachine)" \ + --bindir="$prefix/command" \ + --sbindir="$prefix/command" \ + --infodir="$prefix/info" \ + --localedir="$prefix/locale" \ + --mandir="$prefix/man" \ + --libdir="$prefix/library" \ + --docdir="$prefix/doc/diffutils" \ + --localstatedir='/home/ccx/.local/var' \ + "$@" + # --libexecdir=DIR program executables [EPREFIX/libexec] + # --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + # --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + # --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] + # --includedir=DIR C header files [PREFIX/include] + # --oldincludedir=DIR C header files for non-gcc [/usr/include] + # --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + # --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + + # ac_cv_func_malloc_0_nonnull=yes \ + # ac_cv_func_realloc_0_nonnull=yes + make -j${JOBS:-1} -l$((1+${JOBS:-1})) + make DESTDIR="$pthbs_destdir" install +} + + +autotools diffutils-3.10 --disable-nls --enable-static --disable-shared + + +cd "$pthbs_destdir/home/ccx/versions/$pthbs_package" +find -type d -o -print | awk -F/ ' +BEGIN { + x["./command/diff"]=1 + x["./man/man1/diff.1"]=1 +} + +function r1(s) { + sub("^[.]/[^/]*", ".", s) + return s +} +function s1(repl, s) { + sub("^[.]/[^/]*", "./"repl, s) + return s +} +function link(src) { + x[$0]=0 + printf "%s\t%s\n", $0, src + printf "genlinks >>%s\t%s<<\n", $0, src >>"/dev/stderr" +} +$1!="."{exit 1} + + +$2 == "command" { link($0); next } +$2 == "bin" { link(s1("command", $0)); next } + +$2 == "library.so" { link($0); next } +$2 == "library" { link($0); next } +$2 == "lib" && $NF ~ /\.l?a$/ { link(s1("library", $0)); next } +$2 == "lib" && $NF ~ /\.so(|\..*)$/ { link(s1("library.so", $0)); next } + +$2 == "share" && $3 ~ /^(info|man|doc|icons|terminfo)$/ { link(r1($0)); next } + +$2 == "man" { link($0); next } +$2 == "info" { link($0); next } +$2 == "doc" { link($0); next } +$2 == "icons" { link($0); next } +$2 == "terminfo" { link($0); next } + +$2 == "include" { link($0); next } + +{ printf "genlinks ##%s## skipped\n", $0 >>"/dev/stderr" } + +END { + for(fname in x) { printf "DEBUG: x[\"%s\"]=\"%s\"\n", fname, x[fname] >"/dev/stderr" } + for(fname in x) { + if(x[fname]) { + printf "ERROR: missing expected file \"%s\"\n", fname >"/dev/stderr" + exit 3 + } + } +}' >.install-links.new +mv .install-links.new .install-links diff --git a/packages/elf.h b/packages/elf.h @@ -1,6 +1,6 @@ #!/usr/bin/env pthbs-build #+* -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 #@sha256:a6ffb38364effd623e135b206ec97ff9e6826a1f285e349a3633df55db38bc9e:elf.h installdir="$pthbs_destdir//home/ccx/versions/$pthbs_package" diff --git a/packages/elfutils b/packages/elfutils @@ -0,0 +1,109 @@ +#!/usr/bin/env pthbs-build +#+* +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b +#@untar:-j:sha256:39bd8f1a338e2b7cd4abc3ff11a0eddc6e690f69578a57478d8179b4148708c8:. + +autotools() { + cd "$1" + shift + export LD_LIBRARY_PATH="$pthbs_build_environment/library:$pthbs_build_environment/library.so" + export CPATH="$pthbs_build_environment/include" + prefix=/home/ccx/versions/$pthbs_package + ./configure -C \ + --prefix="$prefix" \ + --build="$($CC -dumpmachine)" \ + --bindir="$prefix/command" \ + --sbindir="$prefix/command" \ + --infodir="$prefix/info" \ + --localedir="$prefix/locale" \ + --mandir="$prefix/man" \ + --libdir="$prefix/library" \ + --docdir="$prefix/doc/elfutils" \ + --localstatedir='/home/ccx/.local/var' \ + "$@" + # --libexecdir=DIR program executables [EPREFIX/libexec] + # --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + # --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + # --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] + # --includedir=DIR C header files [PREFIX/include] + # --oldincludedir=DIR C header files for non-gcc [/usr/include] + # --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + # --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + + # ac_cv_func_malloc_0_nonnull=yes \ + # ac_cv_func_realloc_0_nonnull=yes + make -j${JOBS:-1} -l$((1+${JOBS:-1})) + make DESTDIR="$pthbs_destdir" install +} + + +export CFLAGS="-D_GNU_SOURCE -Wno-error -Wno-null-dereference" +export LDFLAGS="-static" + +autotools elfutils-0.189 \ + --enable-static --disable-shared --disable-nls \ + --disable-werror \ + --program-prefix=eu- \ + --enable-deterministic-archives \ + --disable-nls \ + --disable-libdebuginfod \ + --disable-debuginfod \ + --without-zstd + + +cd "$pthbs_destdir/home/ccx/versions/$pthbs_package" +find -type d -o -print | awk -F/ ' +BEGIN { + x["./library/libelf.a"]=1 +} + +function r1(s) { + sub("^[.]/[^/]*", ".", s) + return s +} +function s1(repl, s) { + sub("^[.]/[^/]*", "./"repl, s) + return s +} +function link(src) { + x[$0]=0 + printf "%s\t%s\n", $0, src + printf "genlinks >>%s\t%s<<\n", $0, src >>"/dev/stderr" +} +$1!="."{exit 1} + + +$2 == "command" { link($0); next } +$2 == "bin" { link(s1("command", $0)); next } + +$2 == "library.so" { link($0); next } +$2 == "library" { link($0); next } +$2 == "lib" && $NF ~ /\.l?a$/ { link(s1("library", $0)); next } +$2 == "lib" && $NF ~ /\.so(|\..*)$/ { link(s1("library.so", $0)); next } + +$2 == "share" && $3 ~ /^(info|man|doc|icons|terminfo)$/ { link(r1($0)); next } + +$2 == "man" { link($0); next } +$2 == "info" { link($0); next } +$2 == "doc" { link($0); next } +$2 == "icons" { link($0); next } +$2 == "terminfo" { link($0); next } + +$2 == "include" { link($0); next } + +{ printf "genlinks ##%s## skipped\n", $0 >>"/dev/stderr" } + +END { + for(fname in x) { printf "DEBUG: x[\"%s\"]=\"%s\"\n", fname, x[fname] >"/dev/stderr" } + for(fname in x) { + if(x[fname]) { + printf "ERROR: missing expected file \"%s\"\n", fname >"/dev/stderr" + exit 3 + } + } +}' >.install-links.new +mv .install-links.new .install-links diff --git a/packages/execline b/packages/execline @@ -1,9 +1,9 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 #@git:85315b3e709f65781dd221fd3f13d3a989a748d4:execline : ${JOBS:=1} @@ -17,7 +17,7 @@ cd 'execline' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/flex b/packages/flex @@ -1,9 +1,10 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+m4.ebf3e533502d6128c4fa67ea82a7407d7d0e6b630ad3c7c31147c16819ecf3b4 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b #@untar:-z:sha256:e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995:. autotools() { @@ -20,7 +21,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/flex" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/gmp b/packages/gmp @@ -1,9 +1,10 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+m4.ebf3e533502d6128c4fa67ea82a7407d7d0e6b630ad3c7c31147c16819ecf3b4 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b #@untar:-j:sha256:5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2:. autotools() { @@ -20,7 +21,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/gmp" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/gnu-make b/packages/gnu-make @@ -1,8 +1,8 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.5a3ea32d78aa7a67390d110b9f44c88e8254bd8503a91a7ceef5ae7bc56d49d5 -#+busybox.b9094196ca61dd443f1a2d734e8ab616adf15bd671d70d3df6166df7484763c0 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.494701b2236068b9f77aa85410cd7938d7ed55cf2863e83d5d431dcd132af86a +#+busybox.7563bc011df7edbc3a66de4076d9abfd33ccd53ba53a461e743b7c1bcacc38a1 #@untar:-z:sha256:dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3:. autotools() { @@ -19,7 +19,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/gnu-make" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/gnu-make:bootstrap b/packages/gnu-make:bootstrap @@ -16,7 +16,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/gnu-make:bootstrap" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/libelf.h b/packages/libelf.h @@ -1,6 +1,6 @@ #!/usr/bin/env pthbs-build #+* -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 #@sha256:9be2e5a97b3fcbc60dedb71967667b9a21d562dbfdaa7f9f74f4b3d9cbb5df86:include/dwarf.h #@sha256:0991a992f75396056c7d7f698fa7e87be24349ae85a195060d46e6a61881d97b:include/gelf.h #@sha256:3b20df1d58f9a445785503415aea1188d33159327c2edab3d370dbd37bc4845e:include/libelf.h diff --git a/packages/linux b/packages/linux @@ -1,13 +1,14 @@ #!/usr/bin/env pthbs-build #+* -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+flex.f66b83d2cfa8f9e464ec6e560fb4ce9227d4021964d1eb90b8b493b0e7f7bd01 -#+bison.a91d3c9582d19f55bcb4054ec2b88f3bfe3af8b13cebdfa18770ce77b246fedb -#+patch.64a9c54973bc2dd18a6215523194161f6dc52fe9ea52d3720cc9a52d7ba7c20d -#+elf.h.5b58bdcdae4bab7515e92a37e62ba288b0245be8feaaf7af4da1bdad97aa46c0 -#+libelf.h.a02e7587b237414b9636f0eb6fa73721fcc0e888b2290ce42729d0c138a38fbb +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+diffutils.34f03ad4f7e76e96cae33ea3e23eded33a9af780aab520fbd0f5f25de14d73b2 +#+patch.3c425bd6a588765b888714e558dd0745aa9cf25a731373ac8e4f334e7d5bfe15 +#+flex.fb391f40128e7476e15e354c232ea458ccf5a2b988ec182574256a22f84b0d3e +#+bison.c10310e0f9eb4b223f2a75339c4e77499abb03fe6896c1d511f058122ca8724d +#+rsync.91f069f15176368415919b4bdf0ad290565f4e1d5bd16a743780ab2073afbaaa +#+elfutils.f1d0ac385c262e9bc4771aeb09d90d8d99073037fd1867fd7b62e55e6b304948 #@untar:-J:sha256:2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb:. #@sha256:d9b01e4dac3dd140c394227603c8b3339bb2f1e10c97afd3607d84e3003ec75a:patch-6.1.34.xz #@sha256:f33d82840d1db22114e18626b64922fa1a3b539a2dee6847528ecc1b17b7b659:linux.config diff --git a/packages/m4 b/packages/m4 @@ -1,8 +1,9 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a #@untar:-z:sha256:3be4a26d825ffdfda52a56fc43246456989a3630093cced3fbddf4771ee58a70:. autotools() { @@ -19,7 +20,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/m4" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/mdevd b/packages/mdevd @@ -1,10 +1,10 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 -#+execline.e5e523094b03c20e68d4c526c37b18c4b8223e1206ed156e851365a244ed7518 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 +#+execline.db791e15971a0545fcfb880560ffd8cb986e5289fa309d2dd51d297712e98898 #@git:d9f63961ec01dc02131ad0967734ae1a058b27b8:mdevd : ${JOBS:=1} @@ -18,7 +18,7 @@ cd 'mdevd' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/mpc b/packages/mpc @@ -1,10 +1,11 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+m4.ebf3e533502d6128c4fa67ea82a7407d7d0e6b630ad3c7c31147c16819ecf3b4 -#+gmp.af602872bd14b7a0c3285a049dbba7ce49629c8156c1e996abb61e15d60590d6 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b +#+gmp.b25eb8876f6868258a2234c015ad532834f8fe488339c6a713b5535427590500 #@untar:-z:sha256:6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e:. autotools() { @@ -21,7 +22,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/mpc" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/mpfr b/packages/mpfr @@ -1,9 +1,10 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+m4.ebf3e533502d6128c4fa67ea82a7407d7d0e6b630ad3c7c31147c16819ecf3b4 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b #@untar:-z:sha256:c05e3f02d09e0e9019384cdd58e0f19c64e6db1fd6f5ecf77b4b1c61ca253acc:. autotools() { @@ -20,7 +21,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/mpfr" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/musl-cross-make b/packages/musl-cross-make @@ -1,24 +1,32 @@ #!/usr/bin/env pthbs-build #+* #+musl-cross-make.6cb863941ec71737e8d15f654be7f64f5e1d1b3578e28f61419c5e7ce58f77c6 -#+gnu-make.5a3ea32d78aa7a67390d110b9f44c88e8254bd8503a91a7ceef5ae7bc56d49d5 -#+busybox.b9094196ca61dd443f1a2d734e8ab616adf15bd671d70d3df6166df7484763c0 +#+gnu-make.494701b2236068b9f77aa85410cd7938d7ed55cf2863e83d5d431dcd132af86a +#+busybox.7563bc011df7edbc3a66de4076d9abfd33ccd53ba53a461e743b7c1bcacc38a1 #@git:fe915821b652a7fa37b34a596f47d8e20bc72338:musl-cross-make #@sha256:ab66fc2d1c3ec0359b8e08843c9f33b63e8707efdff5e4cc5c200eae24722cbf:musl-cross-make/sources/binutils-2.33.1.tar.xz #@sha256:75d5d255a2a273b6e651f82eecfabf6cbcd8eaeae70e86b417384c8f4a58d8d3:musl-cross-make/sources/config.sub #@sha256:c95da32f440378d7751dd95533186f7fc05ceb4fb65eb5b85234e6299eb9838e:musl-cross-make/sources/gcc-9.4.0.tar.xz #@sha256:5275bb04f4863a13516b2f39392ac5e272f5e1bb8057b18aec1c9b79d73d8fb2:musl-cross-make/sources/gmp-6.1.2.tar.bz2 -#@sha256:995bc76ccf0c40d752b5ea67c022232a17eef6c9ec80ea74ea742e3c19992813:musl-cross-make/sources/linux-headers-4.19.88-1.tar.xz +#@sha256:bdf76c15229b241e578046b8486106f09534d754ea4cbf105e0660e551fb1669:musl-cross-make/sources/linux-6.5.4.tar.xz #@sha256:6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e:musl-cross-make/sources/mpc-1.1.0.tar.gz #@sha256:c05e3f02d09e0e9019384cdd58e0f19c64e6db1fd6f5ecf77b4b1c61ca253acc:musl-cross-make/sources/mpfr-4.0.2.tar.bz2 #@sha256:7d5b0b6062521e4627e099e4c9dc8248d32a30285e959b7eecaa780cf8cfd4a4:musl-cross-make/sources/musl-1.2.3.tar.gz #@sha256:3ca74cf91b912122ba74d0bbe3faf4979c5c7ad0c5884a6000cb8cbc4e1bbcb2:musl-cross-make/patches/linux-headers-4.19.88-1/0001-asound-time64.diff +#@sha256:4213e75809588e3f32ae0fde8fb11df2dfd6e0e013762ff5ee951c3aadb7ffc0:musl-cross-make/patches/linux-6.5.4/0001-no-rsync-headers.diff : ${JOBS:=1} export CC="$pthbs_build_environment/command/x86_64-linux-musl-gcc" export HOSTCC="$pthbs_build_environment/command/x86_64-linux-musl-gcc" -printf '%s\n' >musl-cross-make/config.mak "OUTPUT=${pthbs_destdir%/}/home/ccx/versions/$pthbs_package" "TARGET=x86_64-linux-musl" +printf '%s\n' >musl-cross-make/config.mak \ + "OUTPUT=${pthbs_destdir%/}/home/ccx/versions/$pthbs_package" \ + "TARGET=x86_64-linux-musl" \ + 'LINUX_VER=6.5.4' + +printf '%s %s\n' >musl-cross-make/hashes/linux-6.5.4.tar.xz.sha1 \ + 24ffca128d47b6c8e5c15efaa2b1c9ebe546c13c linux-6.5.4.tar.xz + touch musl-cross-make/sources/* make -j${JOBS:-1} -l$((1+${JOBS:-1})) -C musl-cross-make || exit $? make -C musl-cross-make install || exit $? diff --git a/packages/patch b/packages/patch @@ -1,9 +1,10 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+m4.ebf3e533502d6128c4fa67ea82a7407d7d0e6b630ad3c7c31147c16819ecf3b4 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b #@untar:-J:sha256:ac610bda97abe0d9f6b7c963255a11dcb196c25e337c61f94e4778d632f1d8fd:. autotools() { @@ -20,7 +21,7 @@ autotools() { --infodir="$prefix/info" \ --localedir="$prefix/locale" \ --mandir="$prefix/man" \ - --libdir="$prefix/library.so" \ + --libdir="$prefix/library" \ --docdir="$prefix/doc/patch" \ --localstatedir='/home/ccx/.local/var' \ "$@" diff --git a/packages/popt b/packages/popt @@ -0,0 +1,102 @@ +#!/usr/bin/env pthbs-build +#+* +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b +#@untar:-z:sha256:c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9:. + +autotools() { + cd "$1" + shift + export LD_LIBRARY_PATH="$pthbs_build_environment/library:$pthbs_build_environment/library.so" + export CPATH="$pthbs_build_environment/include" + prefix=/home/ccx/versions/$pthbs_package + ./configure -C \ + --prefix="$prefix" \ + --build="$($CC -dumpmachine)" \ + --bindir="$prefix/command" \ + --sbindir="$prefix/command" \ + --infodir="$prefix/info" \ + --localedir="$prefix/locale" \ + --mandir="$prefix/man" \ + --libdir="$prefix/library" \ + --docdir="$prefix/doc/popt" \ + --localstatedir='/home/ccx/.local/var' \ + "$@" + # --libexecdir=DIR program executables [EPREFIX/libexec] + # --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + # --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + # --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] + # --includedir=DIR C header files [PREFIX/include] + # --oldincludedir=DIR C header files for non-gcc [/usr/include] + # --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + # --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + + # ac_cv_func_malloc_0_nonnull=yes \ + # ac_cv_func_realloc_0_nonnull=yes + make -j${JOBS:-1} -l$((1+${JOBS:-1})) + make DESTDIR="$pthbs_destdir" install +} + + +export CFLAGS="-D_GNU_SOURCE" +export LDFLAGS="-static" + +autotools popt-1.19 --enable-static --disable-shared --disable-nls + + +cd "$pthbs_destdir/home/ccx/versions/$pthbs_package" +find -type d -o -print | awk -F/ ' +BEGIN { + x["./include/popt.h"]=1 + x["./library/libpopt.a"]=1 +} + +function r1(s) { + sub("^[.]/[^/]*", ".", s) + return s +} +function s1(repl, s) { + sub("^[.]/[^/]*", "./"repl, s) + return s +} +function link(src) { + x[$0]=0 + printf "%s\t%s\n", $0, src + printf "genlinks >>%s\t%s<<\n", $0, src >>"/dev/stderr" +} +$1!="."{exit 1} + + +$2 == "command" { link($0); next } +$2 == "bin" { link(s1("command", $0)); next } + +$2 == "library.so" { link($0); next } +$2 == "library" { link($0); next } +$2 == "lib" && $NF ~ /\.l?a$/ { link(s1("library", $0)); next } +$2 == "lib" && $NF ~ /\.so(|\..*)$/ { link(s1("library.so", $0)); next } + +$2 == "share" && $3 ~ /^(info|man|doc|icons|terminfo)$/ { link(r1($0)); next } + +$2 == "man" { link($0); next } +$2 == "info" { link($0); next } +$2 == "doc" { link($0); next } +$2 == "icons" { link($0); next } +$2 == "terminfo" { link($0); next } + +$2 == "include" { link($0); next } + +{ printf "genlinks ##%s## skipped\n", $0 >>"/dev/stderr" } + +END { + for(fname in x) { printf "DEBUG: x[\"%s\"]=\"%s\"\n", fname, x[fname] >"/dev/stderr" } + for(fname in x) { + if(x[fname]) { + printf "ERROR: missing expected file \"%s\"\n", fname >"/dev/stderr" + exit 3 + } + } +}' >.install-links.new +mv .install-links.new .install-links diff --git a/packages/rsync b/packages/rsync @@ -0,0 +1,103 @@ +#!/usr/bin/env pthbs-build +#+* +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+busybox-diffutils.d9b095085fec488de1a275fbe45f9ec1b42c5eedea607fee98de0d528a48701a +#+m4.2616c9ba25c3de3a3cc3f8a3cf3e6c6f6ee56f6a666e0bd2d6f869bd57778f2b +#+popt.d4c67e48614695e068a14b4da444bffe38effe779c65f091e9bb18d2471362b4 +#@untar:-z:sha256:4e7d9d3f6ed10878c58c5fb724a67dacf4b6aac7340b13e488fb2dc41346f2bb:. + +autotools() { + cd "$1" + shift + export LD_LIBRARY_PATH="$pthbs_build_environment/library:$pthbs_build_environment/library.so" + export CPATH="$pthbs_build_environment/include" + prefix=/home/ccx/versions/$pthbs_package + ./configure -C \ + --prefix="$prefix" \ + --build="$($CC -dumpmachine)" \ + --bindir="$prefix/command" \ + --sbindir="$prefix/command" \ + --infodir="$prefix/info" \ + --localedir="$prefix/locale" \ + --mandir="$prefix/man" \ + --libdir="$prefix/library" \ + --docdir="$prefix/doc/rsync" \ + --localstatedir='/home/ccx/.local/var' \ + "$@" + # --libexecdir=DIR program executables [EPREFIX/libexec] + # --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + # --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + # --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] + # --includedir=DIR C header files [PREFIX/include] + # --oldincludedir=DIR C header files for non-gcc [/usr/include] + # --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + # --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + + # ac_cv_func_malloc_0_nonnull=yes \ + # ac_cv_func_realloc_0_nonnull=yes + make -j${JOBS:-1} -l$((1+${JOBS:-1})) + make DESTDIR="$pthbs_destdir" install +} + + +export CFLAGS="-D_GNU_SOURCE" +export LDFLAGS="-static" + +autotools rsync-3.2.7 --enable-static --disable-shared --disable-nls --without-included-popt --disable-openssl + + +cd "$pthbs_destdir/home/ccx/versions/$pthbs_package" +find -type d -o -print | awk -F/ ' +BEGIN { + x["./command/rsync"]=1 + x["./man/man1/rsync.1"]=1 +} + +function r1(s) { + sub("^[.]/[^/]*", ".", s) + return s +} +function s1(repl, s) { + sub("^[.]/[^/]*", "./"repl, s) + return s +} +function link(src) { + x[$0]=0 + printf "%s\t%s\n", $0, src + printf "genlinks >>%s\t%s<<\n", $0, src >>"/dev/stderr" +} +$1!="."{exit 1} + + +$2 == "command" { link($0); next } +$2 == "bin" { link(s1("command", $0)); next } + +$2 == "library.so" { link($0); next } +$2 == "library" { link($0); next } +$2 == "lib" && $NF ~ /\.l?a$/ { link(s1("library", $0)); next } +$2 == "lib" && $NF ~ /\.so(|\..*)$/ { link(s1("library.so", $0)); next } + +$2 == "share" && $3 ~ /^(info|man|doc|icons|terminfo)$/ { link(r1($0)); next } + +$2 == "man" { link($0); next } +$2 == "info" { link($0); next } +$2 == "doc" { link($0); next } +$2 == "icons" { link($0); next } +$2 == "terminfo" { link($0); next } + +$2 == "include" { link($0); next } + +{ printf "genlinks ##%s## skipped\n", $0 >>"/dev/stderr" } + +END { + for(fname in x) { printf "DEBUG: x[\"%s\"]=\"%s\"\n", fname, x[fname] >"/dev/stderr" } + for(fname in x) { + if(x[fname]) { + printf "ERROR: missing expected file \"%s\"\n", fname >"/dev/stderr" + exit 3 + } + } +}' >.install-links.new +mv .install-links.new .install-links diff --git a/packages/s6 b/packages/s6 @@ -1,11 +1,11 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+patch.64a9c54973bc2dd18a6215523194161f6dc52fe9ea52d3720cc9a52d7ba7c20d -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 -#+execline.e5e523094b03c20e68d4c526c37b18c4b8223e1206ed156e851365a244ed7518 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+patch.3c425bd6a588765b888714e558dd0745aa9cf25a731373ac8e4f334e7d5bfe15 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 +#+execline.db791e15971a0545fcfb880560ffd8cb986e5289fa309d2dd51d297712e98898 #@git:3e7acf5c35999492e7feeaa59616510bf9cc51ac:s6 #@sha256:627d1273036dc35239ba9dd1da45132e3bfce1ab8171dd27dc7952cdf09b698e:s6_clone3_newpid.patch @@ -20,7 +20,7 @@ patch -up 1 -i ../s6_clone3_newpid.patch --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/s6-dns b/packages/s6-dns @@ -1,9 +1,9 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 #@git:4d081d9c2657ef40e770145f21328d37035dd774:s6-dns : ${JOBS:=1} @@ -17,7 +17,7 @@ cd 's6-dns' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/s6-linux-init b/packages/s6-linux-init @@ -1,11 +1,11 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 -#+execline.e5e523094b03c20e68d4c526c37b18c4b8223e1206ed156e851365a244ed7518 -#+s6.1b0f460bd31a6a3a7d0976a74711f256606bd9d6488c73a46e61b0b0872882da +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 +#+execline.db791e15971a0545fcfb880560ffd8cb986e5289fa309d2dd51d297712e98898 +#+s6.b0bb0d97be95fce10ca4a9f99eee6ab88b9e19027d294123e7277b5b508b7a55 #@git:42a91a98b780759257862642c764c2102237fea6:s6-linux-init : ${JOBS:=1} @@ -19,7 +19,7 @@ cd 's6-linux-init' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/s6-linux-utils b/packages/s6-linux-utils @@ -1,9 +1,9 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 #@git:964442539c3b5b7f6f13a17cbf391843ec93ce6f:s6-linux-utils : ${JOBS:=1} @@ -17,7 +17,7 @@ cd 's6-linux-utils' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/s6-networking b/packages/s6-networking @@ -1,12 +1,12 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 -#+execline.e5e523094b03c20e68d4c526c37b18c4b8223e1206ed156e851365a244ed7518 -#+s6.1b0f460bd31a6a3a7d0976a74711f256606bd9d6488c73a46e61b0b0872882da -#+s6-dns.2b9d95e1fe04f225a6cf989d86992b73e3c8348948673267f4703d1cb4be5b65 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 +#+execline.db791e15971a0545fcfb880560ffd8cb986e5289fa309d2dd51d297712e98898 +#+s6.b0bb0d97be95fce10ca4a9f99eee6ab88b9e19027d294123e7277b5b508b7a55 +#+s6-dns.35016178e4e39e99fa9f9cc6d61955522588ed04635d07948bd4164807a34a1e #@git:68db8af7c26461d4477f482ecbc279729fa911e4:s6-networking : ${JOBS:=1} @@ -20,7 +20,7 @@ cd 's6-networking' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/s6-portable-utils b/packages/s6-portable-utils @@ -1,9 +1,9 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 #@git:536eea15284be9a257b6f97f971e0d8d4a7e437b:s6-portable-utils : ${JOBS:=1} @@ -17,7 +17,7 @@ cd 's6-portable-utils' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/s6-rc b/packages/s6-rc @@ -1,11 +1,11 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 -#+skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206 -#+execline.e5e523094b03c20e68d4c526c37b18c4b8223e1206ed156e851365a244ed7518 -#+s6.1b0f460bd31a6a3a7d0976a74711f256606bd9d6488c73a46e61b0b0872882da +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 +#+skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8 +#+execline.db791e15971a0545fcfb880560ffd8cb986e5289fa309d2dd51d297712e98898 +#+s6.b0bb0d97be95fce10ca4a9f99eee6ab88b9e19027d294123e7277b5b508b7a55 #@git:b79282b3746ff67c3c0df8aa32814b3688b91d4f:s6-rc : ${JOBS:=1} @@ -19,7 +19,7 @@ cd 's6-rc' --bindir="${prefix}/command" \ --libdir="${prefix}/library" \ --shebangdir="${prefix}/command" \ - --with-sysdeps='/home/ccx/versions/skalibs.743eee08d2cd53ead71065626c21078c6bb897a1456ec03838e9d9d967b38206/sysdeps' \ + --with-sysdeps='/home/ccx/versions/skalibs.2ea8bf8c32c50ea3db799bc3019da6048fd6a2e72d2084b581c773e3fcd368b8/sysdeps' \ --with-include="$pthbs_build_environment/include" \ --with-lib="$pthbs_build_environment/library" \ --with-dynlib="$pthbs_build_environment/library.so" \ diff --git a/packages/skalibs b/packages/skalibs @@ -1,8 +1,8 @@ #!/usr/bin/env pthbs-build #+* -#+musl-cross-make.b11394cfa8c14abc8c7da8d66c40b287a75b6eca11dd424bf1e31793b4f0238a -#+gnu-make.8eac2955aee3cdd922af58024a9cab51afccff834a9afd75151cb5d002f40cd6 -#+busybox.ec767de23186276a0f02f2045f2ca2f9050e6dfead835f2a02fdb8a26d5f8397 +#+musl-cross-make.80d88f54910fd6ac17787f57990896ddb5e05bf46683f6c3dd2ac0fce8137219 +#+gnu-make.f5d9aeda4301d0be2491c7c244f9e5f37986c26f23fd92cc8affe4ea8c052c3f +#+busybox.adddf8242eabebcfaf739f346da4e8fd728b389ebde4284540b38632493e8037 #@git:c555cd2ba1682f90fb5344d2865713fcd0f3c3e1:skalibs : ${JOBS:=1}