From nobody Tue Jul 11 22:08:42 2023 X-Original-To: dev-commits-ports-all@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 4R0w4V5yf7z4lQwJ; Tue, 11 Jul 2023 22:08:42 +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 4R0w4V50wpz4GsY; Tue, 11 Jul 2023 22:08:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689113322; 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=X2b0xpahr5UCB7knO+AP6QNUztijsedAxTzHKsiN6NQ=; b=Gtzf6mYMphZUhub+/NeWOHNt8JakGPbjj7e3swStiTGWynjbG8vG4qmPS1juNhp2XYWtCh AMt1iy4ecYUI1zd97Lkeq7TKqyjmQF9Ub+lpVO9yeu4F418ov0NuKuG6lp+nrvGC/0YQGG 6+jMIjSQ4nUTdEAJxj14FaZGm8nXI2hIS2Q2QRlul/Kh4bVJda0poRlFT56yuLwKMh8lOX ionQN1/V1/60/1B7/DTnCIsahnwqZEdOECyPU8dGTU/unvVhNAqEwe16rfGMx78RbIjwta r/JjkTkfpRWkPEV6/m+573M3JGii/8Vioc7yAItyl6cmSGodwiNE6qep4FCbZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689113322; 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=X2b0xpahr5UCB7knO+AP6QNUztijsedAxTzHKsiN6NQ=; b=QfOefeZcD0kJMeXTwW1Z/JukgVcuEozic/AQHsaqoBWIUZeEtq2AxI/db9mUPEOpDBL2r0 YBXdvRIrTbTA/Xl+sSBwVqA/5W4CRFIzdKzSgVJxWwnt4Et+PxLnuPvKds8R7mGuJyJ1N5 kD8AM8ikuG4v+hj+mZoY3eJcmGxOEIG0oiMtm/iVlocYbgtGbOekWGRClaQKmaYr6UvfIp q/B1DvV5eSZUn7WaJghq6wWDZ1P2ouswo1YNB9v6qp+vocmg1xCdrx41FLiaKvCc0LWrpj yK2wEuoE8NWbA5seXZVO4KbLzpCSSEvVpjwBQmLr6ZQSWMJhe6ZV+ICHhgpYTQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689113322; a=rsa-sha256; cv=none; b=gJV7cSvHODuLTitFIlJzhX3ATlLoFFNgy6L79/fNqewh3FaKaU2iCKwiJ9CGbwgklD56Ex 2jIG5OO35hg1lcHPSaeIuzZZUao2DTinZgt7IApyIIZJVmSm3SLvguL0sjA/l6j4MK3gy5 8wz0QY/316hufvIzEXE/nD56M7Z7w9ZodMy3p48qQrxVvMOExncW2VBartllySdnwWthoS hLbM8muQNfvqp+oi/9HI8qzN9PI3lME7CHuFzY35P/h6xlF1NZN1fGgWKqKioT3cH/J/l4 mbFR7rGQ441ldOiSZ3AMkcorlVq2iJyfshcRki0whqmOHcw5J55jb5009A1lmA== 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 4R0w4V3xpPzjjH; Tue, 11 Jul 2023 22:08:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36BM8gx8005042; Tue, 11 Jul 2023 22:08:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36BM8gTI005040; Tue, 11 Jul 2023 22:08:42 GMT (envelope-from git) Date: Tue, 11 Jul 2023 22:08:42 GMT Message-Id: <202307112208.36BM8gTI005040@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 1072f555f430 - main - emulators/vmips: fix build with clang 16 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1072f555f4303b06fc936c59597ce47407e97e2f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=1072f555f4303b06fc936c59597ce47407e97e2f commit 1072f555f4303b06fc936c59597ce47407e97e2f Author: Brian R. Gaeke AuthorDate: 2023-07-11 08:22:23 +0000 Commit: Robert Clausecker CommitDate: 2023-07-11 22:07:22 +0000 emulators/vmips: fix build with clang 16 - patch out code that sets the unexpected handler. It is not strictly necessary for normal functionality. - apply C++ and C standards appropriate to this program in the port Makefile. PR: 272436 --- emulators/vmips/Makefile | 4 +++- emulators/vmips/files/patch-vmips.cc | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/emulators/vmips/Makefile b/emulators/vmips/Makefile index 45f23f9892a5..8c7ec21009f6 100644 --- a/emulators/vmips/Makefile +++ b/emulators/vmips/Makefile @@ -1,6 +1,6 @@ PORTNAME= vmips PORTVERSION= 1.5.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators MASTER_SITES= SF \ http://www.dgate.org/vmips/releases/${DISTNAME}/ @@ -14,6 +14,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING USES= gmake GNU_CONFIGURE= yes +USE_CSTD= gnu99 +USE_CXXSTD= gnu++98 INFO= vmips diff --git a/emulators/vmips/files/patch-vmips.cc b/emulators/vmips/files/patch-vmips.cc new file mode 100644 index 000000000000..10c31ef29fc3 --- /dev/null +++ b/emulators/vmips/files/patch-vmips.cc @@ -0,0 +1,24 @@ +--- vmips.cc.orig 2013-05-25 22:21:31 UTC ++++ vmips.cc +@@ -591,9 +591,11 @@ vmips::run() + return 0; + } + ++#if 0 + static void vmips_unexpected() { + fatal_error ("unexpected exception"); + } ++#endif + + static void vmips_terminate() { + fatal_error ("uncaught exception"); +@@ -602,7 +604,9 @@ static void vmips_terminate() { + int + main(int argc, char **argv) + try { ++#if 0 + std::set_unexpected(vmips_unexpected); ++#endif + std::set_terminate(vmips_terminate); + + machine = new vmips(argc, argv);