bintron-r1.eclass: accept non-pie executables
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
c5fde9b51b
commit
db40459547
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user