[pacman-dev] stripping binaries in makepkg
Dan McGee
dpmcgee at gmail.com
Thu Sep 23 01:08:12 EDT 2010
On Wed, Sep 22, 2010 at 11:55 PM, Sven-Hendrik Haase <sh at lutzhaase.com> wrote:
> I'd also like an answer to this. Why not do away with the individual
> directories? Locating the binaries even in a fairly large package will
> be fairly quick in any case.
>
> -- Sven-Hendrik
>
>
Commit 721ceee1e2c9b18425d84cf39f6541b2f04072b3 might offer some
insight, and then there is the original code from the git import:
+# strip binaries
+if [ "$NOSTRIP" = "0" ]; then
+ msg "Stripping debugging symbols from libraries..."
+ find pkg/{,usr,usr/local,opt/*}/lib -type f -not -name "*.dll"
-not -name "*.exe" \
+ -exec /usr/bin/strip --strip-debug '{}' \; 2>&1 \
+ | grep -v "No such file" | grep -v "format not recognized"
+ msg "Stripping symbols from binaries..."
+ find pkg/{,usr,usr/local,opt/*}/{bin,sbin} -type f -not -name
"*.dll" -not -name "*.exe" \
+ -exec /usr/bin/strip '{}' \; 2>&1 \
+ | grep -v "No such file" | grep -v "format not recognized"
+fi
This leads me to believe stripping *.exe or *.dll files is bad news,
and since we don't hardcode that anymore, we also limit where we
traverse in the package filesystem.
-Dan
More information about the pacman-dev
mailing list