You are not logged in.
Hi there!
I am currently trying to setup my Brother QL-700 using yaourt. However, if I run
yaourt -S brother-ql700-cupswrapper
to install the printer driver, it also tries to install brother-ql700-lpr. As I tried to use the delivered PKGBUILD file I ran into several errors, which where caused by wrong paths and an outdated MD5 checksum. So I updated the checksum and fixed the paths by changing from usr/local/Brother to /opt/brother. Which I think should work well, but I am not sure what the last three lines of the script
sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/loca$
find . | cpio -p -dum $pkgdir || return 1
install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/licens$
do and so I am not able to fix them. Could somebody help me with this? And how could I push the new PKGBUILD back to the repositories, so others do not have the same problems?
Thanks and best regards
Andreas
Original PKGBUILD file:
# Contributor: Jacob Alexander <triplehaata@gmail.com>
# Based on the QL-500 PKGBUILD -> K. Hampf <khampf@users.sourceforge.net>
pkgname=brother-ql700-lpr
pkgver=1.0.1
pkgrel=1
pkgdesc="Brother LPR driver for P-Touch QL-700 labelprinter"
url="http://solutions.brother.com/linux/en_us/"
arch=('i686' 'x86_64')
license=("custom:brother")
depends=('cups' 'ghostscript')
makedepends=('rpmextract' 'cpio')
source=("http://www.brother.com/pub/bsc/linux/dlf/ql700lpr-${pkgver}-1.i386.rpm"
'license.txt')
md5sums=('b65f8a5f26590922a9c98ecd5bf7ab9a'
'47cf89c2ae034aaf18ea0a6379c897da')
noextract=("ql700lpr-$pkgver-1.i386.rpm")
build() {
cd $srcdir
rpmextract.sh "ql700lpr-$pkgver-1.i386.rpm" || return 1
rm "ql700lpr-$pkgver-1.i386.rpm"
mkdir -p usr/share/ || return 1
rm -rf usr/share/brother
mv usr/local/Brother usr/share/brother || return 1
rmdir usr/local || return 1
sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./` || return 1
find . | cpio -p -dum $pkgdir || return 1
install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1
}
Modified PKGBUILD file:
# Contributor: Andreas Wilhelm <info@avedo.net>
# Based on old QL-700 PKGBUILD -> Jacob Alexander <triplehaata@gmail.com>
pkgname=brother-ql700-lpr
pkgver=1.0.1
pkgrel=1
pkgdesc="Brother LPR driver for P-Touch QL-700 labelprinter"
url="http://solutions.brother.com/linux/en_us/"
arch=('i686' 'x86_64')
license=("custom:brother")
depends=('cups' 'ghostscript')
makedepends=('rpmextract' 'cpio')
source=("http://www.brother.com/pub/bsc/linux/dlf/ql700lpr-${pkgver}-1.i386.rpm"
'license.txt')
md5sums=('8c7863c19034ab23d5197d2e214f2061'
'47cf89c2ae034aaf18ea0a6379c897da')
noextract=("ql700lpr-$pkgver-1.i386.rpm")
build() {
cd $srcdir
rpmextract.sh "ql700lpr-$pkgver-1.i386.rpm" || return 1
rm "ql700lpr-$pkgver-1.i386.rpm"
mkdir -p usr/share/ || return 1
rm -rf usr/share/brother
mv opt/brother usr/share/brother || return 1
rmdir opt || return 1
sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./` || return 1
find . | cpio -p -dum $pkgdir || return 1
install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1
}
Offline
Hi, and welcome to Arch Linux.
You've a few options. For details, make sure you read the AUR wiki article, in particular this part
tl;dr: Start by flagging the package out of date and posting your fix to the comments. That way others can see it. If the maintainer does not respond, send them an email. If they still do not respond, ask the mailing list to have the package be orphaned. Provide documentation of your attempts to contact the maintainer. When the package is orphaned, adopt it. Upload your changes. Profit
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Hi ewaller.
Thanks for your quick reply. I have flagged the package as out-of-date and added a link to this post in the comments. I will update this post, if I get a reply. :-D
Offline
I've updated the package(s) to reflect more closely what Brother does in their Debs and RPMs.
Unfortunately, like I mentioned in the package comments, when trying out a Test Page I get a segfault. Which was never a problem before... (I was printing hundreds of labels )
[784695.796459] brprintconfpt1_[12966]: segfault at 4 ip 00000000f77a2c73 sp 00000000ffa28fa0 error 4 in ld-2.18.so[f7798000+20000]
[784695.801768] brprintconfpt1_[12969]: segfault at 4 ip 00000000f7787c73 sp 00000000ff8eca00 error 4 in ld-2.18.so[f777d000+20000]
[784695.805215] brprintconfpt1_[12971]: segfault at 4 ip 00000000f7778c73 sp 00000000ff902a40 error 4 in ld-2.18.so[f776e000+20000]
[784695.809550] brprintconfpt1_[12973]: segfault at 4 ip 00000000f77b0c73 sp 00000000ffd65090 error 4 in ld-2.18.so[f77a6000+20000]
[784695.814599] brprintconfpt1_[12975]: segfault at 4 ip 00000000f77c3c73 sp 00000000ff8355a0 error 4 in ld-2.18.so[f77b9000+20000]
[784695.818412] brprintconfpt1_[12977]: segfault at 4 ip 00000000f77a2c73 sp 00000000ffa8a8a0 error 4 in ld-2.18.so[f7798000+20000]
[784695.823843] brprintconfpt1_[12979]: segfault at 4 ip 00000000f76fec73 sp 00000000ffb21c00 error 4 in ld-2.18.so[f76f4000+20000]
[784695.828015] brprintconfpt1_[12981]: segfault at 4 ip 00000000f77c2c73 sp 00000000ffedb480 error 4 in ld-2.18.so[f77b8000+20000]
[784695.831492] brprintconfpt1_[12983]: segfault at 4 ip 00000000f7762c73 sp 00000000fff41c60 error 4 in ld-2.18.so[f7758000+20000]
[784695.835520] brprintconfpt1_[12985]: segfault at 4 ip 00000000f76f6c73 sp 00000000ffd56210 error 4 in ld-2.18.so[f76ec000+20000]
I'll keep investigating. But let me know if you find something.
https://aur.archlinux.org/packages/brother-ql700-lpr/
https://aur.archlinux.org/packages/brot … pswrapper/
Last edited by HaaTa (2014-02-11 04:40:44)
Offline
All fixed now
Above segfault was due to the binary strings now being different length because of Brother's bizarre directory structure change (which I don't think works on the supported OSs...).
I've mentioned in the package comments, but the package now automatically adds the printer (via Brother's scripts) to cups. If the red light is flashing, make sure the paper size is set correctly.
Offline