The new release supports some new printers and has now the needed needed .ppd-files "on board", so there is no need to download them from linuxprinting.org. There is only one problem: The Makefile tries to delete the old .ppd-files, which of course causes an access violation. I got the ebuild working with "sed"-away the rm-lines in Makefile, but I don't know if that's a really good idea. So I'm attaching a not entirely working diff, since you might know a better way to handle this problem. It only changes the configure-process and removes the unnecessary hint for the ppd-file.
Created attachment 12358 [details, diff] hpijs-1.4 patch Doesn't create a working ebuild, you'll get an access violation.
In meantime version 1.4.1 is out. Maybe it is a good idea to remove the files. It solves the problem of incompatibility betweem the two versions. And the sandbox can be switched off for those directories.
And how would you switch off the sandbox-feature just for this 'rm' command in the Makefile?
You can give the ebuild rights to delete or modify files in the 'live' filesystem. The commando 'addwrite' accomplishs that and it can solve sandbox problems. But it's tricky, because you have to know exactly what you're doing. I'm rewriting the ebuild to give the ebuild some rights to the 'live' filesystem. Hopefully I can post it fast here ;-)
Created attachment 13212 [details] net-print/hpijs-1.4.1.ebuild Here is the ebuild for hpijs-1.4.1 including Foomatic support: foomatic-ppds/*.ppd and foomatic-rip. Please test it.
I am not thrilled about the rm'ing from live filesystem -- I'll prefer to see the Makefile patched
Lars' ebuild doesn't modify the live-filesystem, does it. Although I'm not happy that you have still to download the PPD from linuxprinting.org, hpijs already has all the necessary files bundled. Would be nice if we could make use of that.
Here is a bit more information: The hpijs-1.4.1.ebuild installs all the related Foomatic file that is bundle with hpijs-1.4.1.tar.gz --- 240 PPD files and foomatic-rip --- no need for net-print/foomatic It disable the Cups related rm/ln-s (--disable-cups-install) and leave the symbolic linking to Portage via dosym and mkdir. It still includes Makefile hacking to support the sandbox from before I disabled cups in configure:-). I print on a HP6122 via Cups/hpijs without the net-print/foomatic install. from emerge hpijs: >>> Merging net-print/hpijs-1.4.1 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/hpijs >>> /usr/bin/foomatic-rip --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/hpijs-1.4.1/ >>> /usr/share/doc/hpijs-1.4.1/hpijs_readme.html >>> /usr/share/doc/hpijs-1.4.1/gs_hpijs.png --- /usr/share/ppd/ --- /usr/share/ppd/HP/ >>> /usr/share/ppd/HP/HP-2500C-hpijs.ppd.gz ... 238 more ppd files --- /usr/share/cups/model/ >>> /usr/share/cups/model/foomatic-ppds -> /usr/share/ppd --- /usr/lib/ --- /usr/lib/cups/ --- /usr/lib/cups/filter/ >>> /usr/lib/cups/filter/foomatic-rip -> /usr/bin/foomatic-rip
If the initscript is still perl could we provide a runscript.sh wrapper for it ? The perl script does not deal well with the gentoo initsystem (e.g. dependencies with it don't work).A simple wrapper that maps start, stop and status to the relevant functions in the perl script.
Why would you want a runscript for a printer-driver?
Sorry, I confused it with hpoj.
will be in portage very soon :)
Just test-installed Lars' ebuild (attachment id 13212). Everything looks good here.
thx, in portage with some little changes