Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460916 - dev-embedded/openocd USE=ftdi with dev-embedded/libftdi-1 - configure:14337: error: Cannot build & run test program using libftdi
Summary: dev-embedded/openocd USE=ftdi with dev-embedded/libftdi-1 - configure:14337: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-09 12:46 UTC by Marcin Sporysz
Modified: 2013-04-23 03:16 UTC (History)
3 users (show)

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


Attachments
configure log (config.log,53.83 KB, text/plain)
2013-03-09 12:48 UTC, Marcin Sporysz
Details
files/openocd-0.5.0-libftdi1.patch (openocd-0.5.0-libftdi1.patch,2.52 KB, patch)
2013-03-18 21:29 UTC, Maks Verver
Details | Diff
Updated ebuild for openocd-0.5.0 (openocd-0.5.0-r1.ebuild,2.35 KB, text/plain)
2013-03-18 21:30 UTC, Maks Verver
Details
files/openocd-0.6.1-libftdi1.patch (openocd-0.6.1-libftdi1.patch,1.28 KB, patch)
2013-03-18 21:30 UTC, Maks Verver
Details | Diff
Updated ebuild for openocd-0.6.1 (openocd-0.6.1-r1.ebuild,2.39 KB, text/plain)
2013-03-18 21:30 UTC, Maks Verver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Sporysz 2013-03-09 12:46:41 UTC
I think problem is that libftdi-1 renames some parts of library to libftdi1 vs old libftdi names.



Reproducible: Always
Comment 1 Marcin Sporysz 2013-03-09 12:48:47 UTC
Created attachment 341424 [details]
configure log
Comment 2 jannis 2013-03-17 23:07:38 UTC
any reason why libftdi didn't get SLOTed? -1.0 seems to break a lot of things ...
Comment 3 Maks Verver 2013-03-18 21:29:07 UTC
I hacked around this by editing the configure.in/Makefile.am (fixing some other things to make them work with recent autotools along the way).  I'll attach patches/updated ebuilds for 0.6.1 and 0.5.0 (since 0.6.1 is still masked).
Comment 4 Maks Verver 2013-03-18 21:29:47 UTC
Created attachment 342582 [details, diff]
files/openocd-0.5.0-libftdi1.patch
Comment 5 Maks Verver 2013-03-18 21:30:12 UTC
Created attachment 342584 [details]
Updated ebuild for openocd-0.5.0
Comment 6 Maks Verver 2013-03-18 21:30:35 UTC
Created attachment 342586 [details, diff]
files/openocd-0.6.1-libftdi1.patch
Comment 7 Maks Verver 2013-03-18 21:30:59 UTC
Created attachment 342588 [details]
Updated ebuild for openocd-0.6.1
Comment 8 SpanKY gentoo-dev 2013-04-23 02:27:10 UTC
Comment on attachment 342584 [details]
Updated ebuild for openocd-0.5.0

please post diffs rather than whole files
Comment 9 SpanKY gentoo-dev 2013-04-23 02:45:12 UTC
Comment on attachment 342586 [details, diff]
files/openocd-0.6.1-libftdi1.patch

need to use pkg-config to query for paths, not hardcode things like /usr/include
Comment 10 SpanKY gentoo-dev 2013-04-23 03:16:22 UTC
should be all set now in the tree; thanks for the report!

Commit message: Clean up the ebuild a bit and fix building against either libftdi-0.x or libftdi-1.x
http://sources.gentoo.org/dev-embedded/openocd/openocd-0.6.1.ebuild?r1=1.1&r2=1.2
http://sources.gentoo.org/dev-embedded/openocd/openocd-9999.ebuild?r1=1.25&r2=1.26