Lines 20-25
Link Here
|
20 |
echo "Error: $@" >&2 |
20 |
echo "Error: $@" >&2 |
21 |
} |
21 |
} |
22 |
|
22 |
|
|
|
23 |
list_stagedir_elfs() { |
24 |
cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) |
25 |
} |
26 |
|
23 |
shebangonefile() { |
27 |
shebangonefile() { |
24 |
local f interp rc |
28 |
local f interp rc |
25 |
|
29 |
|
Lines 115-123
Link Here
|
115 |
;; |
119 |
;; |
116 |
esac |
120 |
esac |
117 |
done <<-EOF |
121 |
done <<-EOF |
118 |
$(find ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/sbin \ |
122 |
$(for elf in $(list_stagedir_elfs); do |
119 |
${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/libexec \ |
123 |
readelf -d $elf 2>/dev/null; |
120 |
-type f -exec readelf -d {} + 2>/dev/null) |
124 |
done) |
121 |
EOF |
125 |
EOF |
122 |
if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then |
126 |
if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then |
123 |
warn "you need USES=ssl" |
127 |
warn "you need USES=ssl" |
Lines 614-620
Link Here
|
614 |
!/^\// && section<=1 && ($3 ~ "^'${PREFIX}'" || $3 ~ "^'${LOCALBASE}'") {print $3}') |
618 |
!/^\// && section<=1 && ($3 ~ "^'${PREFIX}'" || $3 ~ "^'${LOCALBASE}'") {print $3}') |
615 |
EOT |
619 |
EOT |
616 |
done <<-EOT |
620 |
done <<-EOT |
617 |
$(cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) | \ |
621 |
$(list_stagedir_elfs | \ |
618 |
file -F $'\1' -f - | \ |
622 |
file -F $'\1' -f - | \ |
619 |
grep -a 'ELF.*dynamically linked' | \ |
623 |
grep -a 'ELF.*dynamically linked' | \ |
620 |
cut -f 1 -d $'\1'| \ |
624 |
cut -f 1 -d $'\1'| \ |