From nobody Fri Jun 16 18:05:11 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 4QjRs41TlTz4fS4V; Fri, 16 Jun 2023 18:05:12 +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 4QjRs40kHpz3qkG; Fri, 16 Jun 2023 18:05:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686938712; 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=o4uZwSKGn7pu+/O5dOrpYa75Q5G4WeyJK++5ic116YU=; b=RPMrq7/BLsgTth5OTdbcPEpkg+DEv/KDxm9XrcgSVmJiLGuzQZeiK46SMtGx/pWIN4kG64 EDuKIE97pLnpaGeG4Q3e2pBflWmrKr8hTQMYYizi255Iq1BUaZOHGOIgUs0+bdsP31zAKz ViXNdxqe5eLq8qKM41nfYPu5hO011XujLgYiGSXttQkC6A3GoMhCx9N1HpvkWr7Tk2/TfK 2Ag0fISdHYTUnUzeSEARkwC6KpT4PzXjLDUzR/xR59Hxc4bVInqgGEdx0h7D8MBOef//6B ZdVYytJf4RwukNjXjmasyz5j7L5CxKrTY+wVX0Rfz8LWVTGJp1Du3CWRHrviDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686938712; 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=o4uZwSKGn7pu+/O5dOrpYa75Q5G4WeyJK++5ic116YU=; b=gFsaGrGEdVokf+gNnHmMvFqWxeae6Reg4dhEvHa7yk1TJBRT/OjiJQHV1PJPqpsPU3k7/S tQBy2t3Lak7WY69yjeY3cRRW7NkWsuqT2S8E2W4v6GP+qZ649ODssnLN8ikWzAHOZU4A6u ltSGQMEqQZSFESrhVVgp1WAac1HacVtmYVfNpGhjQfbNYhuTwoRlH2dV1RvU/nRWMBrIn9 oc4jfAKjY0rYVg86EYxc05EiIBS3sz1vuffwP17CZ2Vi2hUjwhLojwckDpBE3vhX8DZruv h1WejQwPnjy9DBZwkm/VkF0RFMuYreyzhOyv8nsl01T+HkfFd9wLbxA1+jNFVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686938712; a=rsa-sha256; cv=none; b=OWTOUXcQg8cMVJrYMhKtFRvhOex8vONyDFOhChevKou0fibEZjgBbHQUHJpmnPG34QcXp9 yStcIYpxYQ/TyWObX7YsJnOFkykkfWdBFArAnQOxKHMlYoB5LEQ2VhheCxNCrNZ+RukoPW B14VsHMlygWfQIXeEFygn935ZPvSq90dXh+3K/F9m4EsbFxyzk6dvY0taHFWdGW2c3bEJW 8V/xqssk7U3WRpNz7729+oK79BD76Be+1ckS3Y9yHzg2u0Z8BEPu4PWqWjKMn4tOAyidbb f+AcPYXSGb65y6MmqB7fNKH7OCkLQAiofvfo+hQUBV2j2hXj6G8CtmjO3DHurw== 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 4QjRs36vTpzdcJ; Fri, 16 Jun 2023 18:05:11 +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 35GI5BcO006646; Fri, 16 Jun 2023 18:05:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35GI5Bpk006645; Fri, 16 Jun 2023 18:05:11 GMT (envelope-from git) Date: Fri, 16 Jun 2023 18:05:11 GMT Message-Id: <202306161805.35GI5Bpk006645@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: 9a521a21bc60 - main - audio/festival: 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: 9a521a21bc60d34292ce87e3099f52ec9232d022 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=9a521a21bc60d34292ce87e3099f52ec9232d022 commit 9a521a21bc60d34292ce87e3099f52ec9232d022 Author: Dimitry Andric AuthorDate: 2023-06-15 16:31:34 +0000 Commit: Dimitry Andric CommitDate: 2023-06-16 18:03:01 +0000 audio/festival: fix build with clang 16 Since clang 16 (and gcc 11) the default C++ standard is now gnu++17. Because audio/festival's build infrastructure does not explicitly set its C++ standard, this leads to an error: regexp.cc:178:22: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] STATIC char *regnext(register char *p); ^~~~~~~~~ To work around the error, add USE_CXXSTD=gnu++11 to compile for C++11 with GNU extensions instead. While here, pet portlint a little. PR: 272014 Approved by: fernape MFH: 2023Q2 --- audio/festival/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audio/festival/Makefile b/audio/festival/Makefile index 05001c346ef7..b9ce50db94b5 100644 --- a/audio/festival/Makefile +++ b/audio/festival/Makefile @@ -24,12 +24,14 @@ MAINTAINER= mi@aldan.algebra.com COMMENT= Multi-lingual speech synthesis system WWW= https://www.cstr.ed.ac.uk/projects/festival/ +USES= gmake +USE_CXXSTD= gnu++11 + OPTIONS_DEFINE= NAS OPTIONS_DEFAULT=NAS CXXFLAGS+= -DFTLIBDIR=${LOCALBASE}/share/festival/lib -fno-delete-null-pointer-checks CONFIGURE_WRKSRC=${WRKDIR}/festival -USES= gmake SPEECHTOOLS= ${WRKSRC}/speech_tools FESTIVAL= ${WRKSRC}/festival MAKE_ARGS+= CC="${CCACHE_BIN} ${CC}" GCC="${CCACHE_BIN} ${CC}" \