[Bug 270398] Fix the 'stripped' check from 'make check-plist' to report all unstripped files
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270398] Fix the 'stripped' check from 'make check-plist' to report all unstripped files"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270398] Fix the 'stripped' check from 'make check-plist' to report all unstripped files"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270398] Fix the 'stripped' check from 'make check-plist' to report all unstripped files"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 270398] Fix the 'stripped' check from 'make check-plist' to report all unstripped files"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 06:00:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270398 Bug ID: 270398 Summary: Fix the 'stripped' check from 'make check-plist' to report all unstripped files Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: yuri@freebsd.org CC: ports-bugs@FreeBSD.org Created attachment 241047 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=241047&action=edit patch Currently the 'stripped' check always skips 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. The attached script adds $0 to account for the first passed file. -- You are receiving this mail because: You are on the CC list for the bug.