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

Bug 424822

Summary: net-misc/axel - sed script fails when LDFLAGS contains a slash (/)
Product: Gentoo Linux Reporter: Kevin <kjbrandstatter>
Component: New packagesAssignee: Justin Lecher (RETIRED) <jlec>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to fix delimiter problem

Description Kevin 2012-07-05 02:48:38 UTC
Created attachment 317198 [details, diff]
patch to fix delimiter problem

as part of source prepare sed calls to replace LFLAGS with LDFLAGS
howerver sed fails when LDFLAGS is set to any expression with a / since / is the delimiter. This causes the expression to terminate early and complain about invalid options to s in expressing -e.
attached is a diff-patch to an ebuild that works by using | instead of /.
this is a problem in both 2.3 and 2.4-r1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-06 14:25:39 UTC
That's a reverse patch, right?
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2012-07-06 14:32:56 UTC
please add your emerge --info axel
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2012-07-06 15:13:56 UTC
+*axel-2.4-r2 (06 Jul 2012)
+
+  06 Jul 2012; Justin Lecher <jlec@gentoo.org> +axel-2.4-r2.ebuild,
+  +files/axel-2.4-bffr-overflow.patch, +files/axel-2.4-buildsystem.patch:
+  Move to EAPI=4, fix buildsystem, #424822, fix potential buffer overflow
+