Commit 69882e5d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack cnrdrvcups-ufr2-uk: fix issue with fixed libjbig

parent 482e08b7
...@@ -6,13 +6,23 @@ SPEC="$2" ...@@ -6,13 +6,23 @@ SPEC="$2"
UNIREQUIRES="libglib-2.0.so.0 libgmodule-2.0.so.0 libgobject-2.0.so.0 libgthread-2.0.so.0 libatk-1.0.so.0 libcairo.so.2 libcairo-gobject.so.2 UNIREQUIRES="libglib-2.0.so.0 libgmodule-2.0.so.0 libgobject-2.0.so.0 libgthread-2.0.so.0 libatk-1.0.so.0 libcairo.so.2 libcairo-gobject.so.2
libcups.so.2 libcupsimage.so.2 libgdk_pixbuf-2.0.so.0 libgio-2.0.so.0 libgdk-3.so.0 libgtk-3.so.0 libcups.so.2 libcupsimage.so.2 libgdk_pixbuf-2.0.so.0 libgio-2.0.so.0 libgdk-3.so.0 libgtk-3.so.0
libpango-1.0.so.0 libpangocairo-1.0.so.0 libpangoft2-1.0.so.0 libpangoxft-1.0.so.0 libxml2.so.2 libjbig.so.1.6" libpango-1.0.so.0 libpangocairo-1.0.so.0 libpangoft2-1.0.so.0 libpangoxft-1.0.so.0 libxml2.so.2 libjbig.so.2.1"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
[ "$(epm print info -s)" = "alt" ] || exit 0
# fixes for ALT bug with libjbig packing
# try install fixed libjbig2.1
epm install --skip-installed --no-remove libjbig2.1 && exit 0
# in other way hack a binary for obsoleted libjbig.so.1.6 soname
epm install --skip-installed --no-remove libjbig || exit
# fix hang up when can't find libjbig.so libjbig.so.2.1 libjbig.so.2.0 libjbig.so.0 # fix hang up when can't find libjbig.so libjbig.so.2.1 libjbig.so.2.0 libjbig.so.0
# source code: linux-UFRII-drv-v570-m17n/Sources/cnrdrvcups-lb-5.70-1.11.tar.xz/utar://cnrdrvcups-common-5.70/cnjbig/cnjbig.c # source code: linux-UFRII-drv-v570-m17n/Sources/cnrdrvcups-lb-5.70-1.11.tar.xz/utar://cnrdrvcups-common-5.70/cnjbig/cnjbig.c
if [ -f /usr/lib64/libjbig.so.1.6 ] ; then if [ -f /usr/lib64/libjbig.so.1.6 ] ; then
subst 's|libjbig.so.2.0|libjbig.so.1.6|' $BUILDROOT/usr/bin/cnjbigufr2 subst 's|libjbig\.so\.2\.1|libjbig.so.1.6|' $BUILDROOT/usr/bin/cnjbigufr2 $SPEC
fi fi
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