index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-07-01 20:58:14 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-07-01 20:58:14 +0200 |
commit | 8d36443a8876dff1c31d86717a1197f5231b0bfc (patch) | |
tree | 2da64e52aeb7a8412bdf1bf80809ae045466fed9 /bin/build-packages | |
parent | c0551a94fd73e5184e673404e01d255be21cf2f0 (diff) |
-rwxr-xr-x | bin/build-packages | 39 |
diff --git a/bin/build-packages b/bin/build-packages index 185bada..4034782 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -725,6 +725,11 @@ while [ "${count}" -ne 0 ] && \ -exec objdump -x '{}' \; 2>/dev/null | \ sed ' /^architecture:.* i386:x86-64, /,/^architecture:.* i386:x86-32, / d + \@^\s*RPATH\s\+/usr/lib/perl\([0-9]\+\)/\1\.[0-9.]\+/@ { + s@^\s*RPATH\s\+/usr/lib/perl\([0-9]\+\)/\(\1\(\.[0-9.]\+\)\?\)\.\([0-9]\+\)/.*$@\2 \4@ + w '"${pkgfile}"'.needed-perl-version + d + } /\sNEEDED\s/ { s/^\s*\S\+\s\+\(\S\+\)\(\s.*\)\?$/\1/ /\.c32$/d @@ -789,19 +794,27 @@ while [ "${count}" -ne 0 ] && \ find "${package_content_dir:?}/${pkgfile##*/}" -xdev -not -type l -exec chmod 777 '{}' \; rm -rf --one-file-system "${package_content_dir:?}/${pkgfile##*/}" fi - tar -tJf "${pkgfile}" 2>/dev/null | \ - sed -n ' - s,^usr/lib/python\(2\?\)\([013-9.][0-9.]*\)/$,python\1 \1\2, - t print - s,^usr/lib/perl[^/]\+/\([0-9.]\+\)/$,perl \1, - t print - s,^usr/lib/ruby/\([0-9.]\+\)/$,ruby \1, - t print - b - :print - s/\.\([^.]\+\)$/ \1/ - p - ' | \ + { + tar -tJf "${pkgfile}" 2>/dev/null | \ + sed -n ' + s,^usr/lib/python\(2\?\)\([013-9.][0-9.]*\)/$,python\1 \1\2, + t print + s,^usr/lib/perl[^/]\+/\([0-9.]\+\)/$,perl \1, + t print + s,^usr/lib/ruby/\([0-9.]\+\)/$,ruby \1, + t print + b + :print + s/\.\([^.]\+\)$/ \1/ + p + ' + if [ -f "${pkgfile}.needed-perl-versions" ]; then + sed ' + s/^/perl / + ' "${pkgfile}.needed-perl-versions" + rm "${pkgfile}.needed-perl-versions" + fi + } | \ while read -r name major_version minor_version; do printf '%s>=%s.%s\n%s<%s.%s\n' \ "${name}" \ |