Summary: | net-print/foomatic-filters-4.0.17 fails to build | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
Component: | New packages | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | admwiggin, gabemarcano, jakub.daniel, jlp.bugs, jmbsvicetto, kfm, m.debruijne, markus.knetschke, peter, psychopatch, tomka, vityokster, xmw, zorry |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Updated working foomatic-filters-4.0.17.ebuild |
Description
Patrick Lauer
2012-08-03 05:21:35 UTC
In fact, the problem here is that foomatic-filters needs either cups-filters, a2ps, mpage, or enscript. From foomatic-filters' configure.ac: if test "${NOCONVERTERCHECK}" = "" -a "${A2PS}" = "" -a "${ENSCRIPT}" = "" -a "${MPAGE}" = "" -a "${TEXTTOPS}" = "" ; then AC_MSG_ERROR([cannot find a2ps, enscript, mpage, or CUPS' texttops. You need to have at least one installed]); fi Cups relies on both cups-filters and foomatic-filters, and foomatic-filters relies on cups, but not directly on cups-filters: cups? ( >=net-print/cups-1.1.19 ) !cups? ( || ( app-text/enscript app-text/a2ps app-text/mpage ) ) It looks like, at a time, cups probably provided what cups-filters now provides. In any case, this patch will do the trick: --- foomatic-filters-4.0.17_orig.ebuild 2012-08-09 02:35:13.078789582 +0200 +++ foomatic-filters-4.0.17.ebuild 2012-08-09 02:37:18.169225736 +0200 @@ -18,7 +18,7 @@ RDEPEND=" dev-lang/perl app-text/ghostscript-gpl - cups? ( >=net-print/cups-1.1.19 ) + cups? ( >=net-print/cups-1.1.19 net-print/cups-filters ) !cups? ( || ( app-text/enscript It needs either cups-1.6.x + cups-filters or <cups-1.5.9999. So, afaik, it should look like this: cups? ( || ( ( >=net-print/cups-1.6.0 net-print/cups-filters ) <net-print/cups-1.5.9999 ) ) Created attachment 331634 [details]
Updated working foomatic-filters-4.0.17.ebuild
Fixes the bug by correctly depending on net-print/cups-filters if cups is >= 1.6.
The fix is very simple and works perfectly. It is available in my 'stuge' overlay which is included in the layman list. Please commit it now. Thanks to Vladimir for the correct cut-off point between versions. I've went ahead and did a revbump with this fix. I'm leaving this bug open for the printing team to decide what to do. All done, thanks. |