| Summary: | freetds ebuild's 'odbc' USE flag is tied to dev-db/unixODBC, however freetds also supports dev-db/libiodbc but has no 'iodbc' USE flag | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sergey Anufrienko <sergey.anoufrienko> |
| Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | proposed patch to support libiodbc | ||
|
Description
Sergey Anufrienko
2009-07-15 13:00:05 UTC
This is not that simple. Installing freetds with iodbc support runs into this error: http://www.mail-archive.com/libtool@gnu.org/msg08928.html This seems to be an upstream issue. We also need to patch the iodbc include path to say $with_iodbc/include/iodbc (with an added "iodbc"). I agree having libiodbc as a choice here is desirable, but I've no time to fix it properly. Patches welcome. You can start by modifying freetds-0.82-r2.ebuild to say $(use_enable odbc) $(use odbc && --with-iodbc=/usr) and in src_prepare(): sed -ie 's:with_iodbc/include":with_iodbc/include/iodbc":' configure.ac eautoreconf Created attachment 235041 [details, diff]
proposed patch to support libiodbc
With this patch it seems to emerge OK. I'm not sure about the cleanliness of such solution though. The missing config.rpath file has been taken from a more recent upstream source tree.
Thanks for pulling that config.rpath thing out. I hadn't had a look at upstreams nightly builds, yet. I've added dev-db/freetds-0.82-r3 to the php-overlay for testing. You can get it via layman -a php (supposing you have layman installed). I've already tested it on amd64 and it seems fine so far. After it has spent some time (like 2-3 days) in the overlay without complaints or bugs, i'll push it to the main tree. freetds-0.82-r3 should fix this issue. |