Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65156 - Ebuild for foo2zjs
Summary: Ebuild for foo2zjs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-23 17:02 UTC by Robert Führicht
Modified: 2004-11-20 11:42 UTC (History)
1 user (show)

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


Attachments
app-misc/foo2zjs-20042309 (foo2zjs-20042309.ebuild,1.49 KB, application/octet-stream)
2004-09-23 17:05 UTC, Robert Führicht
Details
20042309-Makefile.patch (20042309-Makefile.patch,1.95 KB, patch)
2004-09-23 17:06 UTC, Robert Führicht
Details | Diff
Script to refresh foomatic db (regen-foomatic-db,180 bytes, application/octet-stream)
2004-09-23 17:07 UTC, Robert Führicht
Details
net-print/foo2zjs/foo2zjs-20040923.ebuild (foo2zjs-20040923.ebuild,2.33 KB, text/plain)
2004-09-24 12:19 UTC, Stefan Schweizer (RETIRED)
Details
files/foo2zjs-20040923-Makefile.patch (foo2zjs-20040923-Makefile.patch,2.31 KB, text/plain)
2004-09-24 12:20 UTC, Stefan Schweizer (RETIRED)
Details
foo2zjs-20040923-r2 (foo2zjs-20040923-r2.ebuild,2.49 KB, application/octet-stream)
2004-09-28 05:37 UTC, Robert Führicht
Details
foo2zjs-20040923-amd64.patch (foo2zjs-20040923-amd64.patch,592 bytes, patch)
2004-09-28 05:38 UTC, Robert Führicht
Details | Diff
hp-printer-udev.patch (hp-printer-udev.patch,491 bytes, patch)
2004-09-28 05:39 UTC, Robert Führicht
Details | Diff
files/hp-printer-udev.patch (hp-printer-udev.patch,767 bytes, text/plain)
2004-10-01 11:39 UTC, Stefan Schweizer (RETIRED)
Details
foo2zjs-20041023.ebuild (foo2zjs-20041023.ebuild,2.06 KB, text/plain)
2004-10-27 09:28 UTC, Robert Führicht
Details
foo2zjs-20041117-Makefile.patch (foo2zjs-20041117-Makefile.patch,3.25 KB, patch)
2004-11-17 04:56 UTC, Stefan Schweizer (RETIRED)
Details | Diff
foo2zjs-20041117.ebuild (foo2zjs-20041117.ebuild,1.66 KB, patch)
2004-11-17 04:58 UTC, Stefan Schweizer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Führicht 2004-09-23 17:02:33 UTC
http://foo2zjs.rkkda.com/

foo2zjs is an open source printer driver for printers that use the Zenographics ZjStream wire protocol for their print data, such as the Minolta/QMS magicolor 2300 DL, HP Laserjet 1000/1005 etc.

Latest Version: n/a (20041109), see http://foo2zjs.rkkda.com/ChangeLog
Comment 1 Robert Führicht 2004-09-23 17:05:27 UTC
Created attachment 40264 [details]
app-misc/foo2zjs-20042309

seems to dislike 64 Bit compilers, it compiles but it doesn't work. I hope it's
a good decision do append -m32 to CFLAGS for amd64 here...

Use the local use flag 'getweb' to instruct the shipped getweb script to get
additional files (firmware, icm color profiles, some ppd files) from the web.
Comment 2 Robert Führicht 2004-09-23 17:06:34 UTC
Created attachment 40265 [details, diff]
20042309-Makefile.patch
Comment 3 Robert Führicht 2004-09-23 17:07:21 UTC
Created attachment 40266 [details]
Script to refresh foomatic db
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2004-09-24 12:19:17 UTC
Created attachment 40316 [details]
net-print/foo2zjs/foo2zjs-20040923.ebuild

Hi, I think I made your ebuild better, added some use, made portage download
the getweb files. Basically I merged my old and your ebuild to get the best of
both.

I left out the foomatic reconfigure because the directory does not exist in my
2 gentoo installations, and the printer apperently works without it, do you
need it?

Can you please test the ebuild so that we can assure that it works on 64bit?
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2004-09-24 12:19:41 UTC
Add myself as cc
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2004-09-24 12:20:27 UTC
Created attachment 40317 [details]
files/foo2zjs-20040923-Makefile.patch
Comment 7 Robert Führicht 2004-09-24 15:49:50 UTC
Seems alright to me, works fine on amd64 here.
You're most certainly right about this foomatic directory thing, works here without that directory.

My experiences so far: (Laserjet 1000)

Automatic firmware transferation with hotplug doesn't work here
Paper Size is must be set to A4 instead of letter, but does still cut of parts of the things to print - most certainly a configuration issue, how could I fix this?
Still prints the 'Media Tray empty' warning, but prints though.
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2004-09-26 00:39:25 UTC
laserjet 1005 here - hotplug works.

Is your printer on usb, what does the logfile tell us?
Did you install with USE=getweb to get the firmware?

Hotplug should work .. its a needed feature.
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2004-09-26 13:32:21 UTC
It works on my 2.4 kernel server - on the 2.6 client I cant do hotplug .. :(

any clue why it does not work?
Comment 10 Robert Führicht 2004-09-28 05:35:43 UTC
Now I know what's wrong:

Firstly, usb_printerid.c doesn't like being compiled with -m32, so I figured out a (dirty?!) workaround to fix this for amd64.

Secondly, hotplug seems to run /etc/hotplug/usb/hplj1000 _before_ udev has finished creating the device nodes. I inserted a sleep 20 into the script, which is executed if it detects udev. This dirty hack is sufficient for me, but shouldn't hotplug call this script _after_ a successful udev run?
Comment 11 Robert Führicht 2004-09-28 05:37:09 UTC
Created attachment 40604 [details]
foo2zjs-20040923-r2
Comment 12 Robert Führicht 2004-09-28 05:38:21 UTC
Created attachment 40605 [details, diff]
foo2zjs-20040923-amd64.patch

makes udev_printerid.c work as it should on amd64
Comment 13 Robert Führicht 2004-09-28 05:39:15 UTC
Created attachment 40606 [details, diff]
hp-printer-udev.patch

inserts sleep into hplj1000 hotplug script
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2004-10-01 11:39:33 UTC
Created attachment 40883 [details]
files/hp-printer-udev.patch

An updated hotplug patch that loads the firmware when the device is there and
does not waste ~7 sec before.
Comment 15 Stefan Schweizer (RETIRED) gentoo-dev 2004-10-27 06:35:29 UTC
We still need to get the hotplug script working.

But maybe 64bit works now:

2004-10-23      Rick Richardson <rickr@mn.rr.com>
        * Make code 64-bit clean for x86_64 (but not well tested).


Can you please check and report?
Comment 16 Robert Führicht 2004-10-27 09:28:50 UTC
Created attachment 42700 [details]
foo2zjs-20041023.ebuild

version bump, removed amd64 specific stuff, works without this now.
hotplug script works too.
Shouldn't the ebuild install the hotplug stuff only if the use flasg 'usb' is
set?
Comment 17 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-17 04:56:53 UTC
Created attachment 44146 [details, diff]
foo2zjs-20041117-Makefile.patch

net-print: Can I take that bug and add foo2zjs to portage?
Comment 18 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-17 04:58:29 UTC
Created attachment 44147 [details, diff]
foo2zjs-20041117.ebuild

New ebuild with cleaned up patch, moved fixes from the ebuild to the patch.
Comment 19 Heinrich Wendel (RETIRED) gentoo-dev 2004-11-17 04:59:41 UTC
yes, go ahead
Comment 20 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-20 11:42:08 UTC
Fixed in cvs. Thanks.