From nobody Sun Jun  4 16:22:00 2023
X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QZ27X5R7pz4ZHjd;
	Sun,  4 Jun 2023 16:22:00 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (4096 bits) client-digest SHA256)
	(Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4QZ27X4wkgz3sjR;
	Sun,  4 Jun 2023 16:22:00 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1685895720;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=y12WMibYMbgJ3hlfq14XeFgrCdUSKpUV/mlzbRtvNKo=;
	b=FQLfwiQBZuhGhHHjODrhfvuMZxi9inYcrdlDpAwd76oyZIR3Vn5SmsmnPWbeZYTkgaVY3U
	PZeOcdgXaehKJ6gk9OuW3EzUe+1RH64iQ9Oi/ugJN0uM1ZX17GUOwDqkLJ/axe5ol29wPJ
	kCX/x2zSIxs23YghqJ0/X9IsUHu+jMNadcKeqDCzVTcL4WqVLcizs1aAOaiFoTUkmzBJ6Z
	w+BJoTANeQSIvwBu4Sy0f0CvZGyivVUd59c0zlvhutjqweks2eVcv4VIwOMiy7jxPWdwZu
	WsGADtwvuof4x5nTlLjEyPO1YIKD453p2Bwx5BJeTg5Tu9ew1L+sLVHuwHVXSw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1685895720;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=y12WMibYMbgJ3hlfq14XeFgrCdUSKpUV/mlzbRtvNKo=;
	b=DDgKTm1iIFujg4175SEHnJ9ejW4Elr+uSOx1nZc0aqzgl1OU55aGflEote6/5TSO/OTZna
	C8YfDzbKCH97DAGGbDI5p5W2sc4qbEgCo7MHq4/zRIkGwm87+TkpOHQoI8jkujE2O863Bp
	1n3g55M2KPDuKBn31YaX06/pxI9HBd0Hj1O9efKijNMR8d6ikM8xsBrV0M+rBnJkX4IXj0
	JGwn5aMhX8pgocXMqWDafzHx5JfqIgniGoMKGvz/eWA+7QdtEJyXB30tB1v5jdrT8tL+q/
	zVxd0oszj4XKxtZ9vNp7F3n6SzNLWotdpEaaSff4ZYz0gYY9WqnFDjQfvnQcDQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685895720; a=rsa-sha256; cv=none;
	b=dqEP/jyBlVJhYNSD2Ef+2PKD9+xbpxMeVsTDBV3X8W8jctGeGruQlSkXFepe7jdfvGvhrw
	BRJ7mG5/T1r4v5vSbU3KSxrZgWOKqzYlTndjV39NqmU6sGm0Vhy5L5EFJ9WhQcgV5LMG8e
	BllbhNx7u0Py7nC9eDup5mlEdgfYcbArumVaY30LlTkcbciGi9wytjsWPl/D2zeIItL6he
	JkOUXmu4Sb2fV8hf0k4efVoHprTedTsVzwgZSSy9VD6LEs4jOnCKAvqjvgEepkspcu+yBa
	JuixKnf1VEAyPDV1gpyCdkZ3MUKYaRwpgDT+rPv0SUviND9QM3OksE09Lbmd3w==
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QZ27X3nH6z1CbW;
	Sun,  4 Jun 2023 16:22:00 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 354GM0u1025065;
	Sun, 4 Jun 2023 16:22:00 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 354GM00x025064;
	Sun, 4 Jun 2023 16:22:00 GMT
	(envelope-from git)
Date: Sun, 4 Jun 2023 16:22:00 GMT
Message-Id: <202306041622.354GM00x025064@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
        dev-commits-ports-main@FreeBSD.org
From: Dimitry Andric <dim@FreeBSD.org>
Subject: git: 90b5b1e859bd - main - devel/p8-platform: fix build with clang 16
List-Id: Commits to the main branch of the FreeBSD ports repository <dev-commits-ports-main.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main
List-Help: <mailto:dev-commits-ports-main+help@freebsd.org>
List-Post: <mailto:dev-commits-ports-main@freebsd.org>
List-Subscribe: <mailto:dev-commits-ports-main+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-ports-main+unsubscribe@freebsd.org>
Sender: owner-dev-commits-ports-main@freebsd.org
X-BeenThere: dev-commits-ports-main@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: dim
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 90b5b1e859bd89d629adc15ef72898a8e786e2ce
Auto-Submitted: auto-generated
X-ThisMailContainsUnwantedMimeParts: N

The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/ports/commit/?id=90b5b1e859bd89d629adc15ef72898a8e786e2ce

commit 90b5b1e859bd89d629adc15ef72898a8e786e2ce
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-05-29 17:11:00 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-06-04 16:21:24 +0000

    devel/p8-platform: fix build with clang 16
    
    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
    <https://github.com/Pulse-Eight/platform/commit/a7cd0d5>, via
    <https://github.com/Pulse-Eight/platform/pull/45>, so apply it.
    
    While here, pet portlint.
    
    PR:             271710
    Approved by:    mickael.maillot@gmail.com (maintainer)
    MFH:            2023Q2
---
 devel/p8-platform/Makefile  | 5 ++++-
 devel/p8-platform/distinfo  | 4 +++-
 devel/p8-platform/pkg-descr | 3 ++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/devel/p8-platform/Makefile b/devel/p8-platform/Makefile
index 2eb887dec228..e47aa61eb6ec 100644
--- a/devel/p8-platform/Makefile
+++ b/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
diff --git a/devel/p8-platform/distinfo b/devel/p8-platform/distinfo
index 6ac29a1a21d4..9c65dd24f06b 100644
--- a/devel/p8-platform/distinfo
+++ b/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
diff --git a/devel/p8-platform/pkg-descr b/devel/p8-platform/pkg-descr
index 020ec212cff0..0f1006d0553d 100644
--- a/devel/p8-platform/pkg-descr
+++ b/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.