This is causing problems for newer Firebird sources. Looks like its not long enough for the \0 at the end. Minor patch, not worth adding as a patch, or even having as an external patch to the ebuild. Just a simple sed command is enough to resolve problem. Thanks to Adriano dos Santos Fernandes on the firebird-devel@lists.sourceforge.net for the fix, detected using Valgrind. I will see about filing with upstream, but for now want to get this fixed on Gentoo. diff -Naur btyacc-3.0-r1.ebuild btyacc-3.0-r2.ebuild --- btyacc-3.0-r1.ebuild 2010-11-18 14:37:08.000000000 -0500 +++ btyacc-3.0-r2.ebuild 2011-03-28 17:26:10.000000000 -0400 @@ -22,6 +22,8 @@ cp -av Makefile{,.orig} epatch "${FILESDIR}/${P}-includes.patch" epatch "${FILESDIR}/${P}-makefile.patch" + # fix memory issue/glibc corruption + sed -i -e "s|len + 13|len + 14|" main.c || die "Could not fix main.c" # Darwin doesn't do static binaries [[ ${CHOST} == *-darwin* ]] && sed -i -e 's/-static//' Makefile }
Oh wait, that's your mentor?
No Patrick has been proxying stuff for me. Which was hilarious that you just change the status on this as I was emailing Mike Frysinger about this very bug. I really don't need a mentor, I was a developer before. I wish the time spent to modify this bug was spent bumping that package. Its a super small fix, and quite obvious what it does :)
+*btyacc-3.0-r2 (06 Oct 2011) + + 06 Oct 2011; Patrick Lauer <patrick@gentoo.org> -btyacc-3.0.ebuild, + -btyacc-3.0-r1.ebuild, +btyacc-3.0-r2.ebuild, metadata.xml: + Fix for #361013, changing metadata to reflect proxy-maintainer +