app-shells/bashdb: hardcode path to debugger main #591994
authorMike Frysinger <vapier@gentoo.org>
Wed, 7 Dec 2016 08:15:58 +0000 (03:15 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 7 Dec 2016 08:15:58 +0000 (03:15 -0500)
This isn't a great solution, but considering bash hasn't changed its path
in decades, it shouldn't be a big deal.  It's better than relying on the
output of `strings` on the /bin/bash binary.

app-shells/bashdb/bashdb-4.3.0.91-r2.ebuild

index 63d4d411d95708636a0fc7f6944b1e57bc024d8e..4179d15f91d4fd696f7cd78c3ce5ab000ca411cb 100644 (file)
@@ -27,3 +27,9 @@ src_prepare() {
        # We don't install this, so don't bother building it. #468044
        sed -i 's:texi2html:true:' doc/Makefile.in || die
 }
+
+src_configure() {
+       # This path matches the bash sources.  If we ever change bash,
+       # we'll probably have to change this to match.  #591994
+       econf --with-dbg-main='$(PKGDATADIR)/bashdb-main.inc'
+}