Lines 1229-1238
dyn_install() {
Link Here
|
1229 |
|
1229 |
|
1230 |
if hasq multilib-strict ${FEATURES} && [ -x /usr/bin/file -a -x /usr/bin/find -a \ |
1230 |
if hasq multilib-strict ${FEATURES} && [ -x /usr/bin/file -a -x /usr/bin/find -a \ |
1231 |
-n "${MULTILIB_STRICT_DIRS}" -a -n "${MULTILIB_STRICT_DENY}" ]; then |
1231 |
-n "${MULTILIB_STRICT_DIRS}" -a -n "${MULTILIB_STRICT_DENY}" ]; then |
1232 |
MULTILIB_STRICT_EXEMPT=${MULTILIB_STRICT_EXEMPT:-"(perl5|gcc|gcc-lib|debug)"} |
1232 |
MULTILIB_STRICT_EXEMPT=$(echo ${MULTILIB_STRICT_EXEMPT:-"(perl5|gcc|gcc-lib|debug)"} | sed -e '/\([(|]\)/\\\1/g') |
1233 |
for dir in ${MULTILIB_STRICT_DIRS}; do |
1233 |
for dir in ${MULTILIB_STRICT_DIRS}; do |
1234 |
[ -d "${D}/${dir}" ] || continue |
1234 |
[ -d "${D}/${dir}" ] || continue |
1235 |
for file in $(find ${D}/${dir} -type f | egrep -v "^${D}/${dir}/${MULTILIB_STRICT_EXEMPT}"); do |
1235 |
for file in $(find ${D}/${dir} -type f | grep -v "^${D}/${dir}/${MULTILIB_STRICT_EXEMPT}"); do |
1236 |
file ${file} | egrep -q "${MULTILIB_STRICT_DENY}" && die "File ${file} matches a file type that is not allowed in ${dir}" |
1236 |
file ${file} | egrep -q "${MULTILIB_STRICT_DENY}" && die "File ${file} matches a file type that is not allowed in ${dir}" |
1237 |
done |
1237 |
done |
1238 |
done |
1238 |
done |