Commit 9364416c authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

add_unirequires: add 32 bit libs support (eterbug #17360)

parent bd2ac4b2
......@@ -356,9 +356,17 @@ add_unirequires()
if [ "$EPMARCH" = "64" ] ; then
local req reqs
reqs=''
while IFS= read -r file ; do
if file "$file" | grep -q "ELF 32-bit" ; then
X32_ARCH="true"
break
fi
done < <(find "$BUILDROOT" -type f -executable)
for req in $* ; do
reqs="$reqs $req"
if [ "$X32_ARCH" != "true" ] ; then
echo "$req" | grep "^lib.*\.so" | grep -q -v -F "(64bit)" && reqs="$reqs"'()(64bit)'
fi
done
subst "1iRequires:$reqs" $SPEC
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment