1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/ruby-ffi/musl-compat.patch
2021-05-30 22:55:27 +02:00

13 lines
590 B
Diff

Fix handling of ldscript.so files.
--- a/lib/ffi/library.rb
+++ b/lib/ffi/library.rb
@@ -114,7 +114,7 @@
rescue Exception => ex
ldscript = false
- if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short|invalid file format)/
+ if ex.message =~ /(([^ \t()])+\.so([^ \t:()])*):([ \t])*(invalid ELF header|file too short|invalid file format|Exec format error)/
if File.binread($1) =~ /(?:GROUP|INPUT) *\( *([^ \)]+)/
libname = $1
ldscript = true