| Summary: | Latest versions of cups-pdf produce no output | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Jonathan Pappworth <gentoo> |
| Component: | Current packages | Assignee: | Printing Team <printing> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | net-print/cups-pdf 1.6.4 patch | ||
|
Description
Jonathan Pappworth
2004-10-31 06:46:47 UTC
I have solved this by forcing cups to run as root. I think this is necessary for cups-pdf to work. If this is the case perhaps an info line at the end of the ebuild to inform people of this change. As reported at http://forums.gentoo.org/viewtopic.php?p=1790664#1790664 the problem can be fixed with a one-line header modification. In the ebuild, changing sed -i -e "s:CPLOGTYPE 7:CPLOGTYPE 2:" \ -e "s:nobody:lp:" cups-pdf.h to sed -i -e "s:CPLOGTYPE 3:CPLOGTYPE 2:" \ -e "s:CPSH \"-s /bin/sh\":CPSH \"\":" \ -e "s:nobody:lp:" cups-pdf.h makes everything work as it should, no need to make cups run as root. (I also made a change to the CPLOGTYPE variable, since it's set to 3 in 0.6.4 instead of 7.) Whoops, made two mistakes: - I'm talking about 1.6.4, not 0.6.4 - The CPLOGTYPE change may not apply to 1.5.2, which seems to be the focus of this bug. I haven't checked. Created attachment 44906 [details, diff]
net-print/cups-pdf 1.6.4 patch
The patch works. Please put it in portage. Thanks! Hi, got bitten by the same bug. I fixed it by using "sudo" as my users on AD/Samba/Winbind do not have shell access on the "cups" server. This change works (tested in my environment) for users without shell. Dont know what security implications this may bring. please test, and if u think its good idea, feel free to include in the "cups-pdf" ebuild. This will also require to add a dependency for 'sudo' in be ebuild as well. hope this helps, Shirish >> diff between my working version and 1.6.4 source is as follows: 25c25 < #define CPSU "/usr/bin/sudo" --- > #define CPSU "/bin/su" 32c32 < #define CPSH "-S /bin/sh" --- > #define CPSH "-s /bin/sh" 42c42 < #define CPGSCALL "%s -u \"%s\" %s -c \"%s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH \ --- > #define CPGSCALL "%s - \"%s\" %s -c \"%s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH \ sorry for the delay, fixed |