Created attachment 155533 [details] patch to fix ibus-libpinyin Currently, chinese/ibus-libpinyin fails to build on fbsd9.3 and fbsd8.4. Makefile says "USES=compiler:c++0x". As a result, on old systems it uses clang 3.4. However, the port also uses c++0x/c++11 headers. These headers are not present or not c++0x/c++11 compatible on older systems. This patch changes the USES to c++11-lib. As a result, on older systems new gcc would be picked. It comes with usable headers. This patch also adds #include <stdio.h>, which is required for getline() and fopen(). On newer systems, other headers already includes stdio.h.
Thanks. Fixed. Please, use |make makepatch| format for new patches unless you want to add comments within or split changes according to features/bugs. https://www.freebsd.org/doc/en/books/porters-handbook/slow-patch.html#slow-patch-rules
A commit references this bug: Author: jbeich Date: Sat Apr 25 18:19:16 UTC 2015 New revision: 384747 URL: https://svnweb.freebsd.org/changeset/ports/384747 Log: Unbreak build on FreeBSD 8.x/9.x and DragonFly ./PYSignal.h:35:22: error: expected namespace name using namespace std::placeholders; ~~~~~^ ./PYSignal.h:49:18: error: no type named 'function' in namespace 'std' typedef std::function<R()> func_type; ~~~~~^ ./PYEditor.h:37:14: error: no type named 'shared_ptr' in namespace 'std' typedef std::shared_ptr<Editor> EditorPtr; ~~~~~^ PYLibPinyin.cc:223:54: error: 'getline' was not declared in this scope while ((read = getline (&linebuf, &size, dictfile)) != -1) { ^ PR: 199408 Reported by: pkg-fallout, DPorts Submitted by: Henry Hu <henry.hu.sh@gmail.com> (maintainer) Changes: head/chinese/ibus-libpinyin/Makefile head/chinese/ibus-libpinyin/files/ head/chinese/ibus-libpinyin/files/patch-src_PYLibPinyin.cc
A commit references this bug: Author: jbeich Date: Sun Apr 26 11:31:33 UTC 2015 New revision: 384774 URL: https://svnweb.freebsd.org/changeset/ports/384774 Log: MFH: r384747 Unbreak build on FreeBSD 8.x/9.x and DragonFly ./PYSignal.h:35:22: error: expected namespace name using namespace std::placeholders; ~~~~~^ ./PYSignal.h:49:18: error: no type named 'function' in namespace 'std' typedef std::function<R()> func_type; ~~~~~^ ./PYEditor.h:37:14: error: no type named 'shared_ptr' in namespace 'std' typedef std::shared_ptr<Editor> EditorPtr; ~~~~~^ PYLibPinyin.cc:223:54: error: 'getline' was not declared in this scope while ((read = getline (&linebuf, &size, dictfile)) != -1) { ^ PR: 199408 Reported by: pkg-fallout, DPorts Submitted by: Henry Hu <henry.hu.sh@gmail.com> (maintainer) Approved by: ports-secteam (delphij) Changes: _U branches/2015Q2/ branches/2015Q2/chinese/ibus-libpinyin/Makefile branches/2015Q2/chinese/ibus-libpinyin/files/