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

Bug 209724

Summary: sys-apps/usermode-utilities-20070815 does not respect LDFLAGS
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Daniel Gryniewicz (RETIRED) <dang>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 331933    

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-02-11 20:55:46 UTC
These files have a .hash section even when my LDFLAGS tell the linker not to generate it:

sys-apps/usermode-utilities-20070815 (/usr/bin/uml_mount)
sys-apps/usermode-utilities-20070815 (/usr/bin/uml_watchdog)
sys-apps/usermode-utilities-20070815 (/usr/bin/uml_mconsole)
sys-apps/usermode-utilities-20070815 (/usr/bin/uml_moo)
sys-apps/usermode-utilities-20070815 (/usr/bin/tunctl)
sys-apps/usermode-utilities-20070815 (/usr/bin/jailtest)
sys-apps/usermode-utilities-20070815 (/usr/bin/uml_mkcow)
sys-apps/usermode-utilities-20070815 (/usr/bin/uml_switch)
Comment 1 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-02-12 00:54:38 UTC
usermode-utilities doesn't have much of a build system.  It's highly unlikely that I'll fix it, since I don't want to maintain a whole build system for it on my own.

I'll look into it, tho, to see if it's fairly easy to do.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-02-12 09:12:50 UTC
At a first glance, I think something like

sed -i -e 's:-o \$(BIN):$(LDFLAGS) -o $(BIN):' "${S}"/*/Makefile || die "LDFLAGS sed failed"

would work. I haven't tried it yet though, as I just woke up :)
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2008-02-14 03:28:40 UTC
Comitted, thanks.