initramfs-tools: update to 0.99.112.
mkinitramfs: strip unneeded symbols for all binaries if strip cmd is available.
This commit is contained in:
parent
a7d67a2b5a
commit
375b381bd7
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue