Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314047 - sci-libs/gdal-1.7.1[mysql]: ebuild breaks MYSQL_LIB LDFLAGS
Summary: sci-libs/gdal-1.7.1[mysql]: ebuild breaks MYSQL_LIB LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-04-09 08:20 UTC by Martin von Gagern
Modified: 2010-04-30 08:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2010-04-09 08:20:45 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--as-needed-L/usr/lib64/mysql'

The cause of this is the following sed in the ebuild:
        sed \
            -i -e "s;-Wl,-O1;;" \
            -i -e "s| -rdynamic ||" \
            GDALmake.opt || die "sed LIBS failed"

It deletes one space too many:
-MYSQL_LIB = -Wl,--as-needed -rdynamic -L/usr/lib64/mysql -lmysqlclient ...
+MYSQL_LIB = -Wl,--as-needed-L/usr/lib64/mysql -lmysqlclient ...

It should be changed to replace the " -rdynamic " with a single space.
Comment 1 Martin von Gagern 2010-04-11 11:37:51 UTC
With the substitution changed to "s| -rdynamic | |" gdal emerged fine for me.
Comment 2 Martin von Gagern 2010-04-13 10:08:45 UTC
Same problem with sci-libs/gdal-1.7.1-r1[mysql].
Comment 3 Martin von Gagern 2010-04-30 07:42:04 UTC
Ping? It shouldn't take so long to add a single space to an ebuild.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2010-04-30 08:18:23 UTC
Added to cvs