Skip to content

Commit

Permalink
devel/p8-platform: fix build with clang 16
Browse files Browse the repository at this point in the history
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because devel/p8-platform's Makefile does not explicitly set its C++
standard, this leads to an error:

  /wrkdirs/usr/ports/devel/p8-platform/work/platform-p8-platform-2.1.0.1/src/util/StringUtils.cpp:456:69: error: no member named 'ptr_fun' in the global namespace
    str.erase(str.begin(), ::find_if(str.begin(), str.end(), ::not1(::ptr_fun(isspace_c))));
                                                                    ~~^
  /wrkdirs/usr/ports/devel/p8-platform/work/platform-p8-platform-2.1.0.1/src/util/StringUtils.cpp:469:58: error: no member named 'ptr_fun' in the global namespace
    str.erase(::find_if(str.rbegin(), str.rend(), ::not1(::ptr_fun(isspace_c))).base(), str.end());
                                                         ~~^

Upstream already fixed this in
<Pulse-Eight/platform@a7cd0d5>, via
<Pulse-Eight/platform#45>, so apply it.

While here, pet portlint.

PR:		271710
Approved by:	mickael.maillot@gmail.com (maintainer)
MFH:		2023Q2
  • Loading branch information
DimitryAndric committed Jun 4, 2023
1 parent 83a6aff commit 90b5b1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion devel/p8-platform/Makefile
@@ -1,9 +1,12 @@
PORTNAME= p8-platform
PORTVERSION= 2.1.0.1
PORTREVISION= 2
DISTVERSIONPREFIX= ${PORTNAME}-
PORTREVISION= 3
CATEGORIES= devel

PATCH_SITES= https://github.com/Pulse-Eight/platform/commit/
PATCHFILES= a7cd0d5780ed80a4e70480d1650749f29e8a1fb2.patch:-p1 # https://github.com/Pulse-Eight/platform/pull/45

MAINTAINER= mickael.maillot@gmail.com
COMMENT= Platform support library used by libCEC and binary add-ons for Kodi
WWW= https://github.com/Pulse-Eight/platform
Expand Down
4 changes: 3 additions & 1 deletion devel/p8-platform/distinfo
@@ -1,3 +1,5 @@
TIMESTAMP = 1518119944
TIMESTAMP = 1685379774
SHA256 (Pulse-Eight-platform-p8-platform-2.1.0.1_GH0.tar.gz) = 064f8d2c358895c7e0bea9ae956f8d46f3f057772cb97f2743a11d478a0f68a0
SIZE (Pulse-Eight-platform-p8-platform-2.1.0.1_GH0.tar.gz) = 75257
SHA256 (a7cd0d5780ed80a4e70480d1650749f29e8a1fb2.patch) = a8eb50cbe912faea48f3055d086ee21d6cb827c97d397246b03b87d24540d7a9
SIZE (a7cd0d5780ed80a4e70480d1650749f29e8a1fb2.patch) = 1162
3 changes: 2 additions & 1 deletion devel/p8-platform/pkg-descr
@@ -1 +1,2 @@
Platform support library used by libCEC and binary add-ons for Kodi
This library provides platform specific support for other libraries, and
is used by libCEC and binary add-ons for Kodi.

0 comments on commit 90b5b1e

Please sign in to comment.