[Bug 199408] [maintainer] chinese/ibus-libpinyin: fix build on older systems
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 13 04:54:52 UTC 2015
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 at FreeBSD.org
Reporter: henry.hu.sh at 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.
More information about the freebsd-ports-bugs
mailing list