Commit bd17f7d0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

functions/repl: add some workarounds

parent 53af3a3c
...@@ -50,13 +50,15 @@ fix_arch_requires() ...@@ -50,13 +50,15 @@ fix_arch_requires()
rhas "$GREP" "-devel$" && ! rhas "$i" ":i386$" && ! rhas "$i" ":amd64$" && echo "$i:i386" && continue rhas "$GREP" "-devel$" && ! rhas "$i" ":i386$" && ! rhas "$i" ":amd64$" && echo "$i:i386" && continue
echo "$i" echo "$i"
done | xargs -n 1000 echo done | xargs -n 1000 echo
elif [ "$DISTRNAME" = "AstraLinux" ] ; then elif [ "$DISTRNAME" = "AstraLinux" ] ||[ "$DISTRNAME" = "AstraLinuxCE" ] || [ "$DISTRNAME" = "AstraLinuxSE" ] ; then
for i in $* ; do for i in $* ; do
rhas "$i" "^ia32-libs$" && continue rhas "$i" "^ia32-libs$" && continue
rhas "$i" "^libtool$" && continue rhas "$i" "^libtool$" && continue
# AstraLinux have no :i386 devel packages (see https://bugs.etersoft.ru/show_bug.cgi?id=12955)
rhas "$i" "-dev$" && echo "$i" && continue
rhas "$i" "^lib" && ! rhas "$i" ":i386$" && ! rhas "$i" ":amd64$" && echo "$i:i386" && continue rhas "$i" "^lib" && ! rhas "$i" ":i386$" && ! rhas "$i" ":amd64$" && echo "$i:i386" && continue
rhas "$i" "-devel$" && ! rhas "$i" ":i386$" && ! rhas "$i" ":amd64$" && echo "$i:i386" && continue # AstraLinux have no :i386 packages (see https://bugs.etersoft.ru/show_bug.cgi?id=12955)
#! rhas "$i" ":i386$" && ! rhas "$i" ":amd64$" && echo "$i:any" && continue #rhas "$i" "-devel$" && ! rhas "$i" ":i386$" && ! rhas "$i" ":amd64$" && echo "$i:i386" && continue
echo "$i" echo "$i"
done | xargs -n 1000 echo done | xargs -n 1000 echo
# TODO # TODO
...@@ -94,7 +96,7 @@ fix_arch_requires() ...@@ -94,7 +96,7 @@ fix_arch_requires()
fi fi
else else
case "$DISTRNAME" in case "$DISTRNAME" in
"Mandriva"|"ROSA") "Mandriva"|"ROSA"|"ROSAFresh"|"Mageia")
if [ $TARGETARCH = "x86_64" ] ; then if [ $TARGETARCH = "x86_64" ] ; then
for i in $* ; do for i in $* ; do
rhas "$GREP" "^libtool$" && echo "$i" && continue rhas "$GREP" "^libtool$" && echo "$i" && continue
...@@ -122,7 +124,7 @@ hack_distr_requires() ...@@ -122,7 +124,7 @@ hack_distr_requires()
esac esac
case "$DISTRNAME" in case "$DISTRNAME" in
"Mandriva"|"ROSA") "Mandriva"|"ROSA"|"ROSAFresh"|"Mageia")
if [ $TARGETARCH = "x86_64" ] ; then if [ $TARGETARCH = "x86_64" ] ; then
rhas "$GREP" "^libtool$" && echo "$GREP" && return rhas "$GREP" "^libtool$" && echo "$GREP" && return
echo "$GREP" | sed -e "s|^lib\([^6]\)|lib64\1|g" echo "$GREP" | sed -e "s|^lib\([^6]\)|lib64\1|g"
......
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