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 <tom.gl>
Component: Current packagesAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: files/gocr-0.40-as-needed.patch
gocr-0.40-ebuild.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]
files/gocr-0.40-as-needed.patch
Comment 2 TGL 2006-05-07 07:35:22 UTC
Created attachment 86362 [details, diff]
gocr-0.40-ebuild.patch
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.