Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261214 - net-print/cups-1.3* ignores user cflags and worse, tries to choose/force its own cflags
Summary: net-print/cups-1.3* ignores user cflags and worse, tries to choose/force its ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-04 19:50 UTC by Ryan Hope
Modified: 2010-06-30 15:31 UTC (History)
3 users (show)

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


Attachments
This patch removes cups' horrible optimization attemps (cups-remove-optimizations.patch,10.29 KB, patch)
2009-03-04 19:51 UTC, Ryan Hope
Details | Diff
ebuild which allows custom cflags depending on use-flag (cups-1.3.10-r1.ebuild,8.19 KB, text/plain)
2009-05-14 15:59 UTC, Alexander 'E-Razor' Krause
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hope 2009-03-04 19:50:16 UTC
CUPS thinks it knows better than its users and tries to force is own clflags which can cause the compile to fail, if the compile is successful the resulting binaries will segfault. On my x86 uclibc system, CUPS failes to compile.

Reproducible: Always

Steps to Reproduce:
1. unpack 2008 uclibc stage3
2. emerge cups

Actual Results:  
compile fails because the mantohtml.c included in cups segfaults, if the makefiles are patched to use man2html the compile will succeed but then cupd will segfault

Expected Results:  
cups should respect user cflags and it should build completly as expected
Comment 1 Ryan Hope 2009-03-04 19:51:06 UTC
Created attachment 183922 [details, diff]
This patch removes cups' horrible optimization attemps
Comment 2 Ryan Hope 2009-03-04 19:51:38 UTC
(In reply to comment #1)
> Created an attachment (id=183922) [edit]
> This patch removes cups' horrible optimization attemps
> 

With this patch cups compiles and runs as expected on my uclibc system.
Comment 3 Marat Radchenko 2009-03-06 17:19:20 UTC
Confirming that problem described in this issue exists. I'm on armv6j-gentoo-linux-gnueabi.
Comment 4 Ryan Hope 2009-03-16 22:57:17 UTC
anything gonna happen with this... its been reassigned for well over a week now
Comment 5 Timo Gurr (RETIRED) gentoo-dev 2009-03-16 23:25:39 UTC
Please open an upstream bug about this issue and link the URL here to get this further.
Comment 6 Ryan Hope 2009-03-16 23:35:21 UTC
Well since they are the ones who are overriding/changing the flags that we pass them thinking they know better I really doubt will will do anything about this if I opened a bug. I tried talking to a dev on IRC and that went no where...
Comment 7 Ryan Hope 2009-03-17 17:29:54 UTC
Ok I filed a bug report on CUPS's bugtracker.... Here is the link if you want to see it go nowhere -> http://www.cups.org:80/str.php?L3134+P0+S-2+C0+I0+E0+M20+Q
Comment 8 Alexander 'E-Razor' Krause 2009-05-14 15:59:22 UTC
Created attachment 191277 [details]
ebuild which allows custom cflags depending on use-flag

added a new USE-flag "usercflags" which applies the patch when active
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-30 15:26:00 UTC
Comment on attachment 191277 [details]
ebuild which allows custom cflags depending on use-flag

Please attach a unified diff next time. Also, with the cups ./configure script supporting --with-optim=..., which actually works in the 1.3 branch, I don't see a reason not to use that instead.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-30 15:31:29 UTC
Fixed in 1.3-r*. 1.4* does not seem to suffer this issue, although it does ignore LDFLAGS (which is a matter for another bug).