Date: Mon, 13 Apr 2015 04:54:52 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 199408] [maintainer] chinese/ibus-libpinyin: fix build on older systems Message-ID: <bug-199408-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199408 Bug ID: 199408 Summary: [maintainer] chinese/ibus-libpinyin: fix build on older systems Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: henry.hu.sh@gmail.com Created attachment 155533 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=155533&action=edit 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. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199408-13>