Am 25.10.20 um 15:00 schrieb Christian Boltz:
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): [...] Nothing to worry about, except that it failed in your case.
The postinstall script is more interesting: ...
/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.
It installs, but it doesn't work. Hmm, I got the scanner working with the older driver brscan5-1.1.0-0.x86_64 and setting some links manually about two month ago. So: rpm -Uhv --nopre brscan5-1.1.0-0.x86_64.rpm It shows up in Yast and in Yast - scanner, There is in Leap 15.2, in /etc/udev/rules.d/ 55-brother-mfp-brscan5-1.0.2-2.rules (Brother) 55-libsane.rules (Leap 15.2) 56-sane-backends-autoconfig.rules (Leap 15.2) so I add links in Tumbleweed in /etc/udev/rules.d/ 55-brother-mfp-brscan5-1.0.2-2.rules -> /opt/brother/scanner/brscan5/udev-rules/NN-brother-mfp-brscan5-1.0.2-2.rules (Brother) 55-libsane.rules -> /usr/lib/udev/rules.d/55-libsane.rules (Tumblewwed) 56-sane-backends-autoconfig.rules -> /usr/lib/udev/rules.d/56-sane-backends-autoconfig.rules (Tumbleweed) It's a hack, but it works with Xsane and Skanlite Thanks Peter -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org