forked from Lainports/freebsd-ports
Prior to this patch, the 'stripped' check always skipped the first
unstripped file.
It uses the "find [...] -exec sh -c 'readelf -S -- /dev/null $0 "$@" || :' -- {} +"
command. When arguments are passed to shell like this:
"sh -c 'script' arg1 arg2 arg3" - $@ within the script is assigned
to 'arg2 arg3', and $0 is assigned to arg1. This is a quirk in
how shells handle arguments in case when the script is passed
using -c.
This patch adds $0 to account for the first passed file.
PR: 270398
Approved by: portmgr-lurkers (garga)
|
||
|---|---|---|
| .. | ||
| actual-package-depends.sh | ||
| cargo-crates-git-common.awk | ||
| cargo-crates-git-configure.awk | ||
| cargo-crates-git-fetch.awk | ||
| cargo-crates.awk | ||
| check-desktop-entries.sh | ||
| check-stagedir.sh | ||
| check-vulnerable.sh | ||
| check_leftovers.sh | ||
| checksum.sh | ||
| create-manifest.sh | ||
| depends-list.sh | ||
| desktop-categories.sh | ||
| dialog4ports.sh | ||
| do-depends.sh | ||
| do-fetch.sh | ||
| do-patch.sh | ||
| do-users-groups.sh | ||
| find-lib.sh | ||
| functions.sh | ||
| generate-symbols.sh | ||
| install-desktop-entries.sh | ||
| makesum.sh | ||
| plist_sub_sed_sort.sh | ||
| ports_env.sh | ||
| qa.sh | ||
| rust-compat11-canary.sh | ||
| security-check.awk | ||
| sed_checked.sh | ||
| smart_makepatch.sh | ||
| split-url.awk | ||
| strip_RECORD.py | ||