Bug 237148

Summary: chinese/scim-fcitx: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Piotr Kubaj <pkubaj>
Status: Closed FIXED    
Severity: Affects Only Me CC: linimon, meta
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-04-09 08:40:40 UTC
Created attachment 203531 [details]
patch

Apart from using new GCC on GCC architectures, this port also needs to including sys/types.h and cstring in some cpp files.

Tested on powerpc64 and amd64.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-04-30 19:24:41 UTC
A commit references this bug:

Author: pkubaj
Date: Tue Apr 30 19:23:45 UTC 2019
New revision: 500557
URL: https://svnweb.freebsd.org/changeset/ports/500557

Log:
  chinese/scim-fcitx: fix build with GCC-based architectures

  Apart from using new GCC on GCC architectures, this port also needs to including sys/types.h and cstring in some cpp files:
  /usr/local/lib/libscim-1.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'

  PR:		237148
  Approved by:	meta (maintainer timeout), mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D20106

Changes:
  head/chinese/scim-fcitx/Makefile
  head/chinese/scim-fcitx/files/patch-src__sp.cpp
  head/chinese/scim-fcitx/files/patch-src__tools.cpp
  head/chinese/scim-fcitx/files/patch-src_ime.cpp
  head/chinese/scim-fcitx/files/patch-src_ime.h
  head/chinese/scim-fcitx/files/patch-src_pyParser.h
  head/chinese/scim-fcitx/files/patch-src_scim__fcitx__imengine.cpp