index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-11 15:32:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-11 15:32:56 +0200 |
commit | 89917e5af7236e7544323bc7a81ac9e88b854bf1 (patch) | |
tree | 69c91c5fc52bef41a71b0f8485bc660e192de146 /bin/build-packages | |
parent | 2b4578976b2eb99a753c43b6edee3e165c2e14b1 (diff) |
-rwxr-xr-x | bin/build-packages | 10 |
diff --git a/bin/build-packages b/bin/build-packages index d6a2ede..982a908 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -11,8 +11,6 @@ # TODO: report back memory and hdd stats to the build master on successful build -# TODO: if linked against glibc, add ">=$installed_glibc_version" - # shellcheck disable=SC2016 usage() { >&2 echo '' @@ -533,7 +531,13 @@ while [ "${count}" -ne 0 ] && \ find "${tar_content_dir}" -maxdepth 1 \ -name '*.pkg.tar.xz' | \ while read -r pkgfile; do - touch "${pkgfile}.so.needs" + tar -OxJf "${pkgfile}" '.BUILDINFO' 2>/dev/null | \ + sed -n ' + s/^installed = \(glibc\)-\([0-9.]\+\)\(-[^-]\+\)\{2\}$/\1>=\2/ + T + p + ' > \ + "${pkgfile}.so.needs" if printf '%s\n' "${pkgfile}" | \ grep -vq -- '-any\.pkg\.tar\.xz$'; then # we do not check "any" packages for linked libraries |