
Hello, Am Sonntag, 25. Oktober 2020, 14:08:31 CET schrieb Peter McD:
Am 24.10.20 um 20:57 schrieb Christian Boltz:
Assuming you downloaded the package manually, you can - check what that script wants to do: rpm -qp --scripts brscan5-1.2.2-0.x86_64 .rpm (If unsure, post the output of this command.) - install the package without running these scripts: rpm -Uhv --noscripts brscan5-1.2.2-0.x86_64 .rpm (needless to say that whatever the %pre and %post scripts would do will not be done, so you'll probably need to do these things manually)
peter@lux-tw:~/Scannerablage> rpm -qp --scripts brscan5-1.2.2-0.x86_64.rpm > atemp.txt
preinstall scriptlet (using /bin/sh): [...] echo -e '\033[1;31m'"ERROR: brscan5 depends on libc6.so.6 (>= GLIBC_2.17)"'\033[1;0m' exit -2 fi
OK, so the preinstall script does some dependency checks (instead of having proper rpm Requires etc.) Nothing to worry about, except that it failed in your case. The postinstall script is more interesting:
postinstall scriptlet (using /bin/sh): echo "This software is based in part on the work of the Independent JPEG Group." if [ $(uname -m) = x86_64 ];then libdirs="/usr/lib/ /usr/lib64/ /usr/lib/x86_64-linux-gnu/" else libdirs="/usr/lib/ /usr/lib32/ /usr/lib/i386-linux-gnu/" fi for libdir in $libdirs do if [ -e $libdir/sane ];then library=libsane-brother5.so.1.0.7 lnkfile1=$(echo $library | sed s/"\.[0-9]*$"//g) lnkfile2=$(echo $lnkfile1 | sed s/"\.[0-9]*$"//g) ln -s /opt/brother/scanner/brscan5/$library $libdir/sane/${library} ln -s $libdir/sane/${library} $libdir/sane/${lnkfile1} ln -s $libdir/sane/${lnkfile1} $libdir/sane/${lnkfile2} fi if [ -e $libdir/ ];then extlibs="libLxBsDeviceAccs.so.1.0.0 libLxBsNetDevAccs.so.1.0.0 libLxBsScanCoreApi.so.2.0.0 libLxBsUsbDevAccs.so.1.0.0" for library in ${extlibs} do lnkfile1=$(echo $library | sed s/"\.[0-9]*$"//g) lnkfile2=$(echo $lnkfile1 | sed s/"\.[0-9]*$"//g) ln -s /opt/brother/scanner/brscan5/$library $libdir/${library} ln -s $libdir/${library} $libdir/${lnkfile1} ln -s $libdir/${lnkfile1} $libdir/${lnkfile2} done fi done /opt/brother/scanner/brscan5/setupSaneScan5 -i /opt/brother/scanner/brscan5/udev-rules/udev_install
So postinstall creates some symlinks and finally runs two commands in /opt/brother/scanner/. That's not nice (it bypasses the rpm database), but explains why installing with --noscripts doesn't result in a working scanner. Basically you'll need to run the postinstall script. There are two options: a) re-install the package and skip only the preinstall script: rpm -Uhv --nopre brscan5-1.2.2-0.x86_64 .rpm (you might also need -f to force a re-install of the package) b) paste the whole postinstall script into a file and then to run it with bash the_file_you_created Afterwards, the scanner should[tm] work.
preuninstall scriptlet (using /bin/sh):
At least the package cleans up after itsself when uninstalling it ;-) Regards, Christian Boltz -- Testers don't break the code, they break your illusions of the code. [https://twitter.com/MarciaBuzzella/status/916086274284331008] -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org