bintron-r1.eclass: accept non-pie executables

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-03-01 04:07:59 +02:00
parent c5fde9b51b
commit db40459547
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -126,7 +126,7 @@ bintron-r1_src_prepare() {
for file in $(find .); do for file in $(find .); do
type=$(file -b --mime-type "${file}") type=$(file -b --mime-type "${file}")
case ${type} in case ${type} in
application/x-sharedlib|application/x-pie-executable) application/x-sharedlib|application/x-executable|application/x-pie-executable)
patchelf --add-rpath /usr/$(get_libdir)/chromium ${file} || die patchelf --add-rpath /usr/$(get_libdir)/chromium ${file} || die
;; ;;
esac esac
@ -147,7 +147,7 @@ bintron-r1_src_install() {
type=$(file -b --mime-type "${file}") type=$(file -b --mime-type "${file}")
case ${type} in case ${type} in
application/x-sharedlib|application/x-pie-executable|text/x-shellscript) application/x-sharedlib|application/x-executable|application/x-pie-executable|text/x-shellscript)
fperms 0755 "${BINTRON_HOME}${file#./}" fperms 0755 "${BINTRON_HOME}${file#./}"
;; ;;
esac esac