Bug 209724 - sys-apps/usermode-utilities-20070815 does not respect LDFLAGS
Bug#: 209724 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dang@gentoo.org Reported By: flameeyes@gentoo.org
Component: Ebuilds
URL: 
Summary: sys-apps/usermode-utilities-20070815 does not respect LDFLAGS
Keywords:  
Status Whiteboard: 
Opened: 2008-02-11 20:55 0000
Description:   Opened: 2008-02-11 20:55 0000
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 From Daniel Gryniewicz 2008-02-12 00:54:38 0000 -------
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 From Diego E. 'Flameeyes' Pettenò 2008-02-12 09:12:50 0000 -------
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 From Daniel Gryniewicz 2008-02-14 03:28:40 0000 -------
Comitted, thanks.