initramfs-tools: update to 0.99.112.

mkinitramfs: strip unneeded symbols for all binaries if strip cmd is available.
This commit is contained in:
Juan RP 2012-01-13 16:01:45 +01:00
parent a7d67a2b5a
commit 375b381bd7
2 changed files with 13 additions and 1 deletions

View File

@ -303,6 +303,18 @@ fi
(cd "${DESTDIR}" && find . -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \
| xargs ${xargs_verbose:-} -rL1 rm -f)
# Remove debugging symbols from binaries.
if command -v strip 2>&1 >/dev/null; then
find ${DESTDIR} -type f | while read f; do
case "$(file -bi "$f")" in
application/x-executable*|application/x-sharedlib*|application/x-archive*)
strip --strip-unneeded "$f"
[ "${verbose}" = y ] && \
echo "Stripped symbols from $f."
esac
done
fi
[ "${verbose}" = y ] && echo "Building cpio ${outfile} initramfs"
(
# work around lack of "set -o pipefail" for the following pipe:

View File

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools'
pkgname=initramfs-tools
_localver=111 # This is the XBPS version
_localver=112 # This is the XBPS version
_distver=0.99 # This should match debian version
version=${_distver}.${_localver}
short_desc="Tools for generating an initramfs"