mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
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
2 changed files with 13 additions and 1 deletions
|
@ -303,6 +303,18 @@ fi
|
||||||
(cd "${DESTDIR}" && find . -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \
|
(cd "${DESTDIR}" && find . -type l -printf '%p %Y\n' | sed -n 's/ [LN]$//p' \
|
||||||
| xargs ${xargs_verbose:-} -rL1 rm -f)
|
| 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"
|
[ "${verbose}" = y ] && echo "Building cpio ${outfile} initramfs"
|
||||||
(
|
(
|
||||||
# work around lack of "set -o pipefail" for the following pipe:
|
# work around lack of "set -o pipefail" for the following pipe:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'initramfs-tools'
|
# Template file for 'initramfs-tools'
|
||||||
pkgname=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
|
_distver=0.99 # This should match debian version
|
||||||
version=${_distver}.${_localver}
|
version=${_distver}.${_localver}
|
||||||
short_desc="Tools for generating an initramfs"
|
short_desc="Tools for generating an initramfs"
|
||||||
|
|
Loading…
Add table
Reference in a new issue