mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-24 07:51:03 +02:00
profiles: do not wrap pkg-config as a legacy library config script
This little bit of glue for handling old-style foo-config scripts was assuming that anything in /usr/bin with a -config suffix was worth wrapping. This is certainly not the case if the file in question is a binary. This is most likely to cause confusion with pkg-config.
This commit is contained in:
parent
21e79143f1
commit
ffd56e6830
@ -18,6 +18,14 @@ cros_pre_pkg_preinst_wrap_old_config_scripts() {
|
||||
|
||||
local c w
|
||||
for w in ${wrappers} ; do
|
||||
# $CHOST-$CHOST-foo-config isn't helpful
|
||||
if [[ ${w} == ${CHOST}-* ]]; then
|
||||
continue
|
||||
fi
|
||||
# Skip anything that isn't a script, e.g. pkg-config
|
||||
if ! head -n1 | egrep -q '^#!\s*/bin/(ba)?sh'; then
|
||||
continue
|
||||
fi
|
||||
w="${wdir}/${CHOST}-${w}"
|
||||
c="${CROS_ADDONS_TREE}/scripts/config_wrapper"
|
||||
if [[ ! -e ${w} ]] ; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user