From nobody Sun Jun 04 16:21:59 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 4QZ27W5g8Hz4ZHcy; Sun, 4 Jun 2023 16:21:59 +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 4QZ27W3fDdz3sLx; Sun, 4 Jun 2023 16:21:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685895719; 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=mXNqDWXuJRoSrSwzMisvnzuOuSlARZNAaCsH3vmtKhk=; b=AFXhLqmmv8scocUQMl9ol/5nSgw7rsFTNg6pT6kN3ytaTaS+na5IaFee0tdosB7mQq0VeN vJ0Ip86zAqv6VedrY/mYUA/2+iMV9rXtYTzYOflMybtUXyU1JmVVLCYG2sGZuEE/LtvCry VD062vTwRAMi/VrI5Uv53p99t4vFdWeXG/yhxc7MRQ4Qi0SOigsB9ttoRhlT1pZsnFcR+7 DArrNvXzZz6j/IaJDMLHjH6ItxAa2dkz3h6Y+1kXfVJDt9QOon91Xlh/YstPPgY0xDmU/G Kx8ORv1BPOdKSAEKpfYjAimoHNpYpXNbfIGbM5yapwOUmgWHYr1wGES3xvpgxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685895719; 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=mXNqDWXuJRoSrSwzMisvnzuOuSlARZNAaCsH3vmtKhk=; b=pSAaE1rJrpVZ9HPIpLgOfwln1UhjxGh/O3829VpeaFd/u0e2hpUiRpYilRGMpdw++FvDmW vgrrogequa2/ehIVaDBBXePXlrde64Wb1SdlYPsVfa6oZRbv/BytP8fKruTj3ptH4sf0ER xlaoW3QD7/QotgPSehVBbftaXKXIcDSSFj+t6LiKBeE+Athlh6V79jOTMTpk6I9/H5ZThW KfrFRgCwdU+Xi/lj7djrfOJfW02oiYvMs30kJLdOGSgQOVLwrAtTWAmKK+LaBSCzSPOXJp oWjpMoiz+Quhz/FjC3QMdnP8ofssvZUN9UEQi1AhxqIx4JjLpbkRXi5qBXAPHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685895719; a=rsa-sha256; cv=none; b=rwcm8IcN7tvQLf2MtP4QSIiElFxnh5NAJOzMSUkKL/wC7H/euAhGrkFRvoPAE8nwy/evQH 25PIa8tVIZnJcC8AmrvmmCAswwOwSAnWET3+1fn6Nm66Zy/SQPgMBuUPdRhIwffLhjR4Ag iwlpMc18vbazBfpwcux3xeuhhn8OwD3NN33z0eMRLxVEzSVVRcRT3hl79BuyzbGPDZC66B pUxIXmvbdC8mHMhYy2UnBdGIkfJ9FLZVLSa6pESVfWnKNzc1JWNwR7sWH18GANYpGYyYSg OF9DytiZkOPC3MF06oEhBv5uzoaSbwItktCgwfrrvAMFhqjjW+KkAyZidMWhIw== 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 4QZ27W2mFlz1Cdv; Sun, 4 Jun 2023 16:21:59 +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 354GLxvA025019; Sun, 4 Jun 2023 16:21:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 354GLxrO025018; Sun, 4 Jun 2023 16:21:59 GMT (envelope-from git) Date: Sun, 4 Jun 2023 16:21:59 GMT Message-Id: <202306041621.354GLxrO025018@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 83a6aff27701 - main - multimedia/vdr: fix build with clang 16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: 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: 83a6aff27701c52b445db12baee2a98c8cfd4135 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=83a6aff27701c52b445db12baee2a98c8cfd4135 commit 83a6aff27701c52b445db12baee2a98c8cfd4135 Author: Dimitry Andric AuthorDate: 2023-05-29 14:09:31 +0000 Commit: Dimitry Andric CommitDate: 2023-06-04 16:21:24 +0000 multimedia/vdr: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because multimedia/vdr's Makefile does not explicitly set its C++ standard, this leads to an error: util.c:269:4: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register int i; ^~~~~~~~~ Because the port's own Makefile is rather non-standard it does not respect USE_CXXSTD=, so patch away the 'register' keyword instead. PR: 271707 Approved by: fernape MFH: 2023Q2 --- multimedia/vdr/Makefile | 2 +- multimedia/vdr/files/patch-libsi_util.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/multimedia/vdr/Makefile b/multimedia/vdr/Makefile index c52c5db8d5e9..168b605108bc 100644 --- a/multimedia/vdr/Makefile +++ b/multimedia/vdr/Makefile @@ -1,6 +1,6 @@ PORTNAME= vdr PORTVERSION= 1.7.29 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= multimedia MASTER_SITES= ftp://ftp.tvdr.de/vdr/Developer/ DIST_SUBDIR= vdr diff --git a/multimedia/vdr/files/patch-libsi_util.c b/multimedia/vdr/files/patch-libsi_util.c new file mode 100644 index 000000000000..8a68685edff1 --- /dev/null +++ b/multimedia/vdr/files/patch-libsi_util.c @@ -0,0 +1,11 @@ +--- libsi/util.c.orig 2006-02-18 11:17:50 UTC ++++ libsi/util.c +@@ -266,7 +266,7 @@ u_int32_t CRC32::crc32 (const char *d, int len, u_int3 + + u_int32_t CRC32::crc32 (const char *d, int len, u_int32_t crc) + { +- register int i; ++ int i; + const unsigned char *u=(unsigned char*)d; // Saves '& 0xff' + + for (i=0; i