First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 232755
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Science Mathematics related packages <sci-mathematics@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ferris McCormick <fmccor@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
glpk-4.29.ebuild.patch glpk-4.29.ebuild.patch text/plain Sébastien Fabbro 2008-07-23 16:23 0000 1.21 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 232755 depends on: Show dependency tree
Bug 232755 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-07-23 14:27 0000
With USE=iodbc sci-mathematics/glpk-4.29 has a dependency on dev-db/libiodbc,
and when it builds, it wants to #include sql.h and sqlext.h from this package. 
The libiodbc package puts these files into /usr/include/iodbc, where glpk
cannot find them because it does not -I/usr/include/iodbc.  However, if you
also have dev-db/unixODBC installed, glpk picks up sql.h and sqlext.h from the
unixODBC versions of them, because unixODBC puts them into /usr/include/sql.h,
etc.

The failure is consistent across systems, but as a test, adding
-I/usr/include/iodbc to CFLAGS cures the problem.

------- Comment #1 From Sébastien Fabbro 2008-07-23 15:09:20 0000 -------
Hi Ferris,

Good you caught this one. I personally never used odbc.
If I understand from wikipedia, libiodbc and unixODBC provide the same. If this
is the case the dependency could be || too, add an 
append-cppflags $(pkg-config --cflags libiodbc),
only in libodbc case, and probably the flag to odbc.

Anyone has an idea why it's not a virtual?

------- Comment #2 From Ferris McCormick 2008-07-23 15:50:21 0000 -------
Yes, if I add
inherit flag-o-matic
to the ebuild then put
        use iodbc && append-cppflags $(pkg-config --cflags libiodbc)
inside the database check, thus:

    if use mysql || use iodbc; then
        myconf="--enable-dl"       
        use iodbc && append-cppflags $(pkg-config --cflags libiodbc)
    fi
everything works fine.

------- Comment #3 From Sébastien Fabbro 2008-07-23 16:23:16 0000 -------
Created an attachment (id=161201) [edit]
glpk-4.29.ebuild.patch

I would add something like this instead: either unixODBC or libiodbc.

------- Comment #4 From Ferris McCormick 2008-07-23 17:07:08 0000 -------
That works, no matter which odbc is installed.

------- Comment #5 From Sébastien Fabbro 2008-07-23 17:36:50 0000 -------
Ok, fixed in cvs. Thanks.

First Last Prev Next    No search results available      Search page      Enter new bug