Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285905 - net-print/foomatic-db patch for Brother QL-500 and QL-550 ptouch.xml driver
Summary: net-print/foomatic-db patch for Brother QL-500 and QL-550 ptouch.xml driver
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2009-09-22 07:42 UTC by Bob Johnson
Modified: 2020-03-19 18:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
removed ptouch files from ebuild (foomatic-db-4.0.20100218-r1.ebuild,1.60 KB, text/plain)
2010-06-15 21:10 UTC, Nils Andresen
Details
patched version 4.0.20101123 (foomatic-db-4.0.20101123-r1.ebuild,1.60 KB, text/plain)
2010-11-27 20:30 UTC, Nils Andresen
Details
patch for version 4.0.20110506 (foomatic-db-4.0.20110506.ptouch.diff,792 bytes, patch)
2011-05-09 05:12 UTC, Nils Andresen
Details | Diff
A patch adding the "Debug messages" setting for the ptouch driver (ptouch-driver-1.3-add-Debug-option.patch,3.11 KB, patch)
2011-11-20 02:27 UTC, Maciej Grela
Details | Diff
Fix the dpi settings for Brother QL-500 and Brother QL-550 (ptouch-driver-1.3-fix-dpi-for-QL5x0.patch,6.67 KB, patch)
2011-11-20 02:28 UTC, Maciej Grela
Details | Diff
Enable debug codepaths in rastertopcth (ptouch-driver-1.3-enable-DEBUG.patch,367 bytes, patch)
2011-11-20 02:28 UTC, Maciej Grela
Details | Diff
foomatic-db-4.0.20120117.ebuild.patch (foomatic-db-4.0.20120117.ebuild.patch,792 bytes, patch)
2012-01-18 06:15 UTC, Nils Andresen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Johnson 2009-09-22 07:42:36 UTC
On all current versions of the foomatic-db package the ptouch.xml driver is non-functional due to a missing <prototype></prototype> field. This causes the foomatic-ppdfile program (or a GUI like kaddprinterwizard) to fail any time an attempt is made to build a PPD for a Brother P-Touch label maker that uses this driver. The error message is:

ERROR: foomatic-datafile: There is neither a custom PPD file nor the driver database entry contains sufficient data to build a PPD file.

In http://bugs.gentoo.org/show_bug.cgi?id=264447 a link is provided to a ptouch-driver. This driver provides a proper <prototype> field, and it is therefore possible to create a PPD using the foomatic tools. The link also includes the rastertoptch driver that is needed by the PPD in order to drive the P-Touch label printers, as well as the source xml for the printers. 

Unfortunately, it is not easy to create an ebuild as requested in http://bugs.gentoo.org/show_bug.cgi?id=264447 because the xml files in that link conflict with those already supplied by net-print/foomatic-db. However, net-print/foomatic-db does not provide the proper ptouch.xml driver source, nor does it provide the required rastertoptch driver.

About all Gentoo could do would seem to be to strip the P-Touch files which are supplied by ptouch-driver out of foomatic-db (this would be the source/driver/ptouch.xml file and the various source/printer/Brother-PT* files) and create an ebuild for the ptouch-driver tarball. This would ensure that the proper rastertoptch driver was compiled and installed, that a working ptouch.xml foomatic driver was provided, and would install the Brother P-Touch printer source files that are otherwise useless without the first two items.

The best fix would be to get upstream to correct the foomatic-db tarball.


Reproducible: Always
Comment 1 Nils Andresen 2010-06-15 19:43:51 UTC
This really is a problem - and 9 moths old by now... I created a bug[1] upstream.

1: http://bugs.linux-foundation.org/show_bug.cgi?id=447
Comment 2 Nils Andresen 2010-06-15 21:10:17 UTC
Created attachment 235473 [details]
removed ptouch files from ebuild

I attached a foomatic-db ebuild, which does not install the ptouch files.
Using this ebuild it is possible to install ptouch-drivers from bug 264447
Comment 3 Nils Andresen 2010-06-16 04:39:12 UTC
upstream says[1] about the conflicting files:
>The mentioned files are not for generating PPDs, they make up the pages
>on the OpenPrinting web site and this way inform the users of Brother's label
>printers that they are supported by the ptouch driver.

So our only option is to remove this files from the ebuild (see my previous post) and have a separate ptouch ebuild[2].

1: http://bugs.linux-foundation.org/show_bug.cgi?id=447
2: bug 264447
Comment 4 Nils Andresen 2010-11-27 20:30:19 UTC
Created attachment 255667 [details]
patched version 4.0.20101123

The problem is unchanged - as is our ebuild.
So the fix (sadly) is unchanged, too.
Comment 5 Nils Andresen 2011-05-09 05:12:41 UTC
Created attachment 272563 [details, diff]
patch for version 4.0.20110506

Here we are - about 6 months later - the patch is still the same...
Comment 6 Maciej Grela 2011-11-20 02:27:53 UTC
Created attachment 293155 [details, diff]
A patch adding the "Debug messages" setting for the ptouch driver

Hi,

I've written my own ptouch-driver ebuild together with 3 useful patches:

- adding a "Debugging messages" setting for the printer so that you can switch on debug messages from rastertopcth
- fixing the wrong value of dpi for QL-500 and QL-550 causing them to eat too much sticker tape (see here: http://forums.gentoo.org/viewtopic-t-535392-start-0.html)

It would be good to integrate them too when the foomatic-db conflict is resolved. Can we do something to make this happen ?
Comment 7 Maciej Grela 2011-11-20 02:28:24 UTC
Created attachment 293157 [details, diff]
Fix the dpi settings for Brother QL-500 and Brother QL-550
Comment 8 Maciej Grela 2011-11-20 02:28:43 UTC
Created attachment 293159 [details, diff]
Enable debug codepaths in rastertopcth
Comment 9 Maciej Grela 2011-11-20 02:30:22 UTC
Ooops, this was meant for https://bugs.gentoo.org/show_bug.cgi?id=264447 ... Sorry for wrong posts.
Comment 10 Nils Andresen 2011-11-20 10:40:30 UTC
Hi Maciej, thanks for the patches.
Wouldn't it be better to move them to Bug 264447, since this is the bug for the moudified foomatic-db ebuild?
Comment 11 Nils Andresen 2012-01-18 06:15:25 UTC
Created attachment 299205 [details, diff]
foomatic-db-4.0.20120117.ebuild.patch

This bug is now nearly 2.5 years old. Still the patch remains the same...