Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 132567

Summary: app-text/gocr-0.4.0: fix compilation with -Wl,--as-needed
Product: Gentoo Linux Reporter: TGL <>
Component: Current packagesAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: files/gocr-0.40-as-needed.patch

Description TGL 2006-05-07 07:34:24 UTC
This package fails to build with LDFLAGS="-Wl,--as-needed" because of wrong order of the linker arguments, and unresolved symbols in libPgm2asc.a. The attached patch fixes that.

Note that i don't use the "gtk" flag on this package (no GTK+-1.2 here), so i don't know whether the frontend compiles.
Comment 1 TGL 2006-05-07 07:35:03 UTC
Created attachment 86361 [details, diff]
Comment 2 TGL 2006-05-07 07:35:22 UTC
Created attachment 86362 [details, diff]
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-07 20:42:30 UTC
Patch looks fine for me.
Comment 4 Martin Ehmsen (RETIRED) gentoo-dev 2006-05-08 01:17:46 UTC
Added to CVS in gocr-0.40-r1
Thanks for supplying the patch!

Just a quick remark: remember to use || die in your ebuilds on patches for style.