Created attachment 185669 [details] [patch] fix include dir search order for test/ The build of devel/libftdi1 PORTVERSION 1.4 fails if the old version (1.3) is installed... ================================== /usr/bin/c++ -I/usr/local/include -Isrc -O2 -pipe -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-stri ct-aliasing -Wall -MD -MT test/CMakeFiles/test_libftdi1.dir/baudrate.cpp.o -MF test/CMakeFiles/test_libftdi1.dir/baudrate.cpp. o.d -o test/CMakeFiles/test_libftdi1.dir/baudrate.cpp.o -c test/baudrate.cpp test/baudrate.cpp:105:14: error: use of undeclared identifier 'TYPE_230X'; did you mean 'TYPE_232H'? case TYPE_230X: ^~~~~~~~~ TYPE_232H /usr/local/include/ftdi.h:25:97: note: 'TYPE_232H' declared here ================================== The attached patch fixes the include ordering so it looks in the work directory for header files before looking at install headers (e.g., in /usr/local).
ping
A commit references this bug: Author: bsam Date: Wed Oct 11 10:50:37 UTC 2017 New revision: 451740 URL: https://svnweb.freebsd.org/changeset/ports/451740 Log: devel/libftdi1: Fix build if previous version is installed. PR: 221721 Submitted by: John Hein <z7dr6ut7gs@snkmail.com> Changes: head/devel/libftdi1/files/patch-test_CMakeLists.txt
Sorry for a delay. Committed, thanks!