summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2024-12-25 01:07:07 +0100
committerRobert Clausecker <fuz@FreeBSD.org>2024-12-26 11:48:40 +0100
commitdbe8936bd31ea5963de69b31fe6a4b494399a05a (patch)
treef1daa6417d7f94c666c4bee6cd67b3a8bbd58600
parentcf23a14535c244837add5202657d1dd91649b81a (diff)
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)
-rw-r--r--lang/ratfor/Makefile17
-rw-r--r--lang/ratfor/files/patch-Makefile2
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