From nobody Thu Dec 26 10:49:03 2024 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 4YJljr1dYkz5hh5G; Thu, 26 Dec 2024 10:49:04 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YJljq5Czlz47gN; Thu, 26 Dec 2024 10:49:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735210143; 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=MJuXiQLTSCxqs+fwpahJZ/vWjW8mdoIQ7mU3G+0RNYI=; b=xYA8bdBwZCDHJaTkPejroOJuD8JiYx8hk0ekZ0cXyIF2XcFsK+Hn5r/hoQREyKVpUv6j3M rzPSguIrAYhU957QzhLNWw2FfqVAv94cQwRP+asvE6JprxCCqslLrJTAyv7Pmtfeh807rx 3t6PO0v5qG/PY9lBCtok7Hv2dvh+Da/VyPPr/UfXXepRbMwl7hTA0C8tXZandRzLLSq6ae xEzwadmi2GS9U2frwGujCCQloDxVo39BQqeonV3jSsuNH7jmOCc1M++1vEupGsZWh6Sju9 nZP/UayTjgfenS5lMpWz1seLlG3tQYsg4e/r9LSTQ10NI+KAtkY3+YxbWl+opg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735210143; 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=MJuXiQLTSCxqs+fwpahJZ/vWjW8mdoIQ7mU3G+0RNYI=; b=acWRCCWVUiVUOX/Rk2kCZ8Rh5sVKPsNoXOqIyiKF0JZcpvJ8nM/CYaOfccXW+wHUdUyDTo zj4ECvPHhXG9BDhH+XNGoCz3qnT62fbSgnoRAWw9//c7mPJqCqzKOcmHixrY+lGo9vfuaa vIDTySQjKKrG0zMF8e9ZZ7K+hl55lQVj0KynQIm+0scMK8khjrrlx3zc2ED+lSPS6bodFt i9MSlxfN3qdyfOLP4VQewJPFi5U13Tb5S4UQF0p4E5o80noAeLpUxulCvDbS7r4pNIcNwx SrUnRJcRB1sm0ZYsg/72G1PBLtOnnbsx3wxcP5iFO8xaPUsIjs4a8fjt/llPtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735210143; a=rsa-sha256; cv=none; b=BIgKNP+iUYS77Jo0uLNfrNr3tqW7WrgCaxxZxuGOBUi0+BqE9TKaIUWfbdHjS2EvymQ9sE DaTXyKasDqWtY6/M4Wa7BuEwIUfD29TIk23JmkuNJJi08FwYCqm88LXr9Eh/eTXRW7v2/9 uMW1nhSeRPTRIjCE7TOCXLL3S3V+9INn5x81u0e+OhXNvCcoVAW3lkp91jYLeWultZdNSN nQbJUtpF1RpgIx6lg9daRT2Pjo4t5PBs/lSO2Q+Ld1GR0nI+OiXYCTYx0WUjMLTvTFCdXX dAPWwxLqrgWOHCVhp5I4pHvUm0C3Uhgku2xHfCeHntSq3RkGtzpt92HVL76LhA== 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 4YJljq4rGRzrTQ; Thu, 26 Dec 2024 10:49:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BQAn3Jo040461; Thu, 26 Dec 2024 10:49:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BQAn3kG040458; Thu, 26 Dec 2024 10:49:03 GMT (envelope-from git) Date: Thu, 26 Dec 2024 10:49:03 GMT Message-Id: <202412261049.4BQAn3kG040458@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Robert Clausecker Subject: git: dbe8936bd31e - 2024Q4 - lang/ratfor: fix build on platforms where char is unsigned 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-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/2024Q4 X-Git-Reftype: branch X-Git-Commit: dbe8936bd31ea5963de69b31fe6a4b494399a05a Auto-Submitted: auto-generated The branch 2024Q4 has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=dbe8936bd31ea5963de69b31fe6a4b494399a05a commit dbe8936bd31ea5963de69b31fe6a4b494399a05a Author: Robert Clausecker AuthorDate: 2024-12-25 00:07:07 +0000 Commit: Robert Clausecker CommitDate: 2024-12-26 10:48:40 +0000 lang/ratfor: fix build on platforms where char is unsigned Turns out the code anticipates this problem and has support for using "signed char" over "char" where "char" is unsigned by default. Use "signed char" unconditionally to fix the port on all platforms. While we are at it, pet portclippy. PR: 258628, 283509 Approved by: bofh MFH: 2024Q4 (cherry picked from commit 147aeb1ee48f8aeb8e4892e3271a3231388a412c) --- lang/ratfor/Makefile | 17 ++++++----------- lang/ratfor/files/patch-Makefile | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/lang/ratfor/Makefile b/lang/ratfor/Makefile index 3c13978b5f1f..0b4dee9b243f 100644 --- a/lang/ratfor/Makefile +++ b/lang/ratfor/Makefile @@ -1,6 +1,6 @@ PORTNAME= ratfor PORTVERSION= 1985.06 -PORTREVISION= 16 +PORTREVISION= 17 CATEGORIES= lang MASTER_SITES= LOCAL/obrien \ http://sepwww.stanford.edu/sep/prof/ @@ -12,20 +12,15 @@ COMMENT= Rational FORTRAN compiler LICENSE= PD LICENSE_FILE= ${WRKSRC}/README -BROKEN_aarch64= ./ratfor -o test.f test.r keeps creating huge output file -BROKEN_armv6= ./ratfor -o test.f test.r keeps creating huge output file -BROKEN_armv7= ./ratfor -o test.f test.r keeps creating huge output file -BROKEN_powerpc= ./ratfor -o test.f test.r keeps creating huge output file -BROKEN_powerpc64= ./ratfor -o test.f test.r keeps creating huge output file -BROKEN_powerpc64le= ./ratfor -o test.f test.r keeps creating huge output file -BROKEN_powerpcspe= ./ratfor -o test.f test.r keeps creating huge output file +USES= fortran + +ALL_TARGET= all tests -NO_WRKSUBDIR= yes EXTRACT_CMD= ${CAT} EXTRACT_BEFORE_ARGS= EXTRACT_AFTER_ARGS= | ${SH} -ALL_TARGET= all tests -USES= fortran + +NO_WRKSUBDIR= yes PLIST_FILES= bin/ratfor bin/ratfor77 share/man/man1/ratfor.1.gz diff --git a/lang/ratfor/files/patch-Makefile b/lang/ratfor/files/patch-Makefile index 4ce15b7de3a4..b686e9ab66b8 100644 --- a/lang/ratfor/files/patch-Makefile +++ b/lang/ratfor/files/patch-Makefile @@ -5,7 +5,7 @@ # -CFLAGS+= -DF77 -DS_CHAR="char" -+CFLAGS+= -DF77 -DS_CHAR="char" -Wno-error=return-type ++CFLAGS+= -DF77 -DS_CHAR="signed char" -Wno-error=return-type #CFLAGS+= -DS_CHAR="char" OBJS= rat4.o lookup.o getopt.o