Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200122 - www-apache/mod_python-3.3.1 failed due to crappy sed expression
Summary: www-apache/mod_python-3.3.1 failed due to crappy sed expression
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 218027 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-23 21:22 UTC by Carsten Lohrke (RETIRED)
Modified: 2008-04-18 07:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A new ebuild which fixes the problem in 3.3.1 (mod_python-3.3.1-r1.ebuild,1.59 KB, text/plain)
2008-04-18 02:20 UTC, Brandon Mintern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2007-11-23 21:22:35 UTC
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed=both'
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2007-11-29 19:03:19 UTC
patch?
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2007-12-01 15:49:50 UTC
Sorry, I'm not quite active these days. A working fix for the ebuild would be to replace the sed expression with something like

local dummy=""
for flag in $LDFLAGS ; do [[ "${flag}" != "${flag/hashstyle/}" ]] || dummy="${dummy} ${flag}" ; done
LDFLAGS="${dummy}"

a real improvement would be to enhance flag-o-matic.eclass to let filter-ldflags() et al deal with non-trivial flags, and to use this function then.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2008-04-17 07:39:27 UTC
*** Bug 218027 has been marked as a duplicate of this bug. ***
Comment 4 Brandon Mintern 2008-04-18 02:17:08 UTC
Okay, I finally figured this out. The sed expression really is screwed up, but it's only there because it's trying to fix a screwed up Makefile. It's not the situation that Carsten thought it was, where it was actually trying to adjust the LDFLAGS.

I am attaching my ebuild for mod_python-3.3.1-r1. If you put this in your overlay, don't forget to copy www-apache/mod_python/files/16_mod_python.conf into it as well.

The only difference between my ebuild and 3.3.1 is the sed line in the compile stage. I would attach a patch, but I wasn't able to find the Gentoo way of doing it, and I'm not at all familiar with patching. Hopefully this ebuild helps someone out.
Comment 5 Brandon Mintern 2008-04-18 02:20:38 UTC
Created attachment 150119 [details]
A new ebuild which fixes the problem in 3.3.1

Changes the sed expression on line 36 so that it matches the last "-Wl,--hash-style" (the erroneous one from src/Makefile) instead of the first one. I would have also edited out the last "-Wl,-O1" along with it, but it doesn't seem to be causing any problems.
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2008-04-18 07:40:01 UTC
fixed in cvs (without revbump), thanks