Package Details: brother-ql570 1.0.1r0-1

Git Clone URL: https://aur.archlinux.org/brother-ql570.git (read-only, click to copy)
Package Base: brother-ql570
Description: LPR and CUPS driver for Brother QL-570 label printer
Upstream URL: http://solutions.brother.com/linux/en_us/
Keywords: brother cups cupswrapper driver filter label lpr ppd printer ql-570
Licenses: custom
Conflicts: brother-ql570-cupswrapper, brother-ql570-lpr
Provides: brother-ql570-cupswrapper, brother-ql570-lpr
Submitter: kbabioch
Maintainer: kbabioch
Last Packager: kbabioch
Votes: 6
Popularity: 0.022810
First Submitted: 2016-09-16 08:46 (UTC)
Last Updated: 2016-09-20 16:35 (UTC)

Latest Comments

OJFord commented on 2020-09-06 14:57 (UTC) (edited on 2020-09-06 20:42 (UTC) by OJFord)

==> Starting prepare()...
~/.cache/yay/brother-ql570/PKGBUILD: line 52: ./cupswrapperql570pt1: Permission denied
==> ERROR: A failure occurred in prepare().
    Aborting...
error making: brother-ql570

Installing OK after applying:

diff --git PKGBUILD PKGBUILD
index 6896a9e..2e086a1 100644
--- PKGBUILD
+++ PKGBUILD
@@ -49,6 +49,7 @@ prepare()
     sed -i 's|/model/Brother|/model|g' $_wrapper_source
     sed -i 's|lpinfo|echo|g' $_wrapper_source
     export srcdir=$srcdir
+    chmod +x ./$_wrapper_source
     ./$_wrapper_source
     sed -i 's|$srcdir||' $srcdir/usr/lib/cups/filter/*lpdwrapper*
     sed -i "s|$srcdir||" $srcdir/usr/lib/cups/filter/*lpdwrapper*

Then it would fail to print anything with:

/bin/sh: /usr/lib/cups/filter/brother_lpdwrapper_ql570: Permission denied

PID 149084 (/usr/lib/cups/filter/brother_lpdwrapper_ql570) stopped with status 126 (Text file busy)

At which point I installed it manually according to the instructions here: https://wiki.archlinux.org/index.php/CUPS/Printer-specific_problems#Custom_drivers. This works, and the key difference seems to be that this filter script is created mode 700 by this package, and 755 by the 'cupswrapper' script run manually. I'm not sure how to fix that in the PKGBUILD - chmod doesn't seem to have any affect.

The only other difference is the existence of a couple of *.ppd files when I do it manually, but I don't think they're crucial, it's just the permissions issue.

kbabioch commented on 2016-11-11 15:25 (UTC)

In my case cups-filters is a dependency on cups itself, which is already a dependency of this package. Why do you need a2ps? I haven't installed this package and it works fine for me. How do you trigger an error regarding the non-existence of a2ps?

projectgus commented on 2016-11-09 04:37 (UTC)

Thanks for packaging both these in one, very convenient! Suggest a small addition to dependencies: I needed cups-filters & a2ps before the filter would run.