diff --git a/srcpkgs/initramfs-tools/files/mkinitramfs b/srcpkgs/initramfs-tools/files/mkinitramfs index 53032e57ed6..2708620140a 100755 --- a/srcpkgs/initramfs-tools/files/mkinitramfs +++ b/srcpkgs/initramfs-tools/files/mkinitramfs @@ -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: diff --git a/srcpkgs/initramfs-tools/template b/srcpkgs/initramfs-tools/template index b6a5d41cd35..9d1b3af1a13 100644 --- a/srcpkgs/initramfs-tools/template +++ b/srcpkgs/initramfs-tools/template @@ -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"