Package Details: brscan2 0.2.5_1-1

Git Clone URL: (read-only, click to copy)
Package Base: brscan2
Description: SANE driver from Brother for brscan2 models
Upstream URL:
Licenses: GPL, custom:brother
Submitter: leidola
Maintainer: pmattern
Last Packager: pmattern
Votes: 38
Popularity: 0.000076
First Submitted: 2008-08-15 02:08
Last Updated: 2015-08-04 22:29

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

crs commented on 2015-01-11 06:11

/usr/local/Brother is referenced in

the PKGBUILD tries to relocate the files in the RPM package from /usr/local/Brother to /usr/share/brother, but does an incomplete job.
This seems contrary to KISS, and the renaming of lib64 to lib seemed
inelegant too, so I found a way to do that while extracting from the RPM:

if [ "$CARCH" == "i686" ]; then
rpm=`basename ${source[0]}`
noextract=($rpm) # we'll extract manually in prepare()


prepare() {
# change "lib64" to "lib" in paths and symlinks
rpm2cpio $rpm | bsdtar -xpf - -s @/lib64/@/lib/@

package() {
cp -pR "$srcdir/usr" "$pkgdir"
install -m 644 -D scanner-license.txt \

And finally, a suggestion for updating /etc/sane.d/dll.conf from brscan2.install:

post_install() {
echo 'brother2 #brscan2#' >> /etc/sane.d/dll.conf

post_remove() {
sed -i '/#brscan2#/d' /etc/sane.d/dll.conf

ams1 commented on 2014-12-04 17:05

I added that info to the wiki page for dcp150c.

robtaylor commented on 2014-09-17 20:15

I can confirm that to stop the crash on x86_64 you need
sudo ln -s /usr/share/brother/sane/ /usr/local/Brother/sane

However I can see no reason that it's trying to open /usr/local/Brother/sane/Brsane2.ini. strace confirms that it is, but I can find no occurance of /usr/local in any of the installed files!

May break out a debug build of glibc and see if I can figure what's going on...

Evilandi666 commented on 2014-07-29 11:57

I try to fix those bugs on x86_64

Anonymous comment on 2014-07-23 12:33

As the problem only seems to occur on 64-bit and I cannot test this myself, I will disown the package so that someone else can pick this up.

Anonymous comment on 2014-07-23 12:26

@pavbaranov: thx, great tip! as this PKGBUILD didnt work on x86_64 (only i686)

used this PKGBUILD according to the wiki:
pkgdesc="SANE drivers from Brother for model-2 scanners"
arch=('i686' 'x86_64')



build() {
cd "${srcdir}"
if [[ $CARCH = "i686" ]]; then
echo "using: brscan2-0.2.5-1.i386.rpm" brscan2-0.2.5-1.i386.rpm

echo "using: brscan2-0.2.5-1.x86_64.rpm" brscan2-0.2.5-1.x86_64.rpm


package() {
mv -v "${srcdir}/usr" "${pkgdir}/"

# install LICENSE
install -Dm0644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

lsandig commented on 2014-07-13 13:56


Tested it, still won't work without a link from /usr/local/Brother to /usr/share/brother

Anonymous comment on 2014-07-10 21:54

I've looked into this and I found a reference to '/usr/local' in one of the shared-libraries.
The reference to '/usr/local' is now replaced by '/usr/share'.
I hope this fixes all problems.
Can someone please test this on 64-bit Arch.

Anonymous comment on 2014-07-10 12:48

are you on 64-bit?

RoBug commented on 2014-07-09 20:33


on a fresh arch install i created symlinks as suggested by pavbarnov and lsandig.
and just to be on the safe side i created this one:
ln -s /usr/share/brother/sane/ /usr/local/brother/sane
(note the lowercase b in "brother") and it works great with no leftover files from previous install and it refused to work before i did this