|
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 |
$(list_stagedir_elfs | xargs readelf -d 2>/dev/null) |
| 119 |
${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/libexec \ |
|
|
| 120 |
-type f -exec readelf -d {} + 2>/dev/null) |
| 121 |
EOF |
123 |
EOF |
| 122 |
if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then |
124 |
if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then |
| 123 |
warn "you need USES=ssl" |
125 |
warn "you need USES=ssl" |
|
Lines 614-620
Link Here
|
| 614 |
!/^\// && section<=1 && ($3 ~ "^'${PREFIX}'" || $3 ~ "^'${LOCALBASE}'") {print $3}') |
616 |
!/^\// && section<=1 && ($3 ~ "^'${PREFIX}'" || $3 ~ "^'${LOCALBASE}'") {print $3}') |
| 615 |
EOT |
617 |
EOT |
| 616 |
done <<-EOT |
618 |
done <<-EOT |
| 617 |
$(cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) | \ |
619 |
$(list_stagedir_elfs | \ |
| 618 |
file -F $'\1' -f - | \ |
620 |
file -F $'\1' -f - | \ |
| 619 |
grep -a 'ELF.*dynamically linked' | \ |
621 |
grep -a 'ELF.*dynamically linked' | \ |
| 620 |
cut -f 1 -d $'\1'| \ |
622 |
cut -f 1 -d $'\1'| \ |