FreeBSD Bugzilla – Attachment 256121 Details for
Bug 283509
lang/ratfor: fix build on platforms where char is unsigned
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lang/ratfor: fix build in platforms where char is unsigned
0001-lang-ratfor-fix-build-on-platforms-where-char-is-uns.patch (text/plain), 1.88 KB, created by
Robert Clausecker
on 2024-12-25 00:08:57 UTC
(
hide
)
Description:
lang/ratfor: fix build in platforms where char is unsigned
Filename:
MIME Type:
Creator:
Robert Clausecker
Created:
2024-12-25 00:08:57 UTC
Size:
1.88 KB
patch
obsolete
>From 11aa8ab57d1c1dcf62d9b23e96a9dc48a3e76625 Mon Sep 17 00:00:00 2001 >From: Robert Clausecker <fuz@FreeBSD.org> >Date: Wed, 25 Dec 2024 01:07:07 +0100 >Subject: [PATCH] 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. > >PR: 258628, 283509 >Approved by: ... >MFH: 2024Q4 >--- > lang/ratfor/Makefile | 8 -------- > lang/ratfor/files/patch-Makefile | 2 +- > 2 files changed, 1 insertion(+), 9 deletions(-) > >diff --git a/lang/ratfor/Makefile b/lang/ratfor/Makefile >index 3c13978b5f1f..c6648ce52207 100644 >--- a/lang/ratfor/Makefile >+++ b/lang/ratfor/Makefile >@@ -12,14 +12,6 @@ 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 >- > NO_WRKSUBDIR= yes > EXTRACT_CMD= ${CAT} > EXTRACT_BEFORE_ARGS= >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 > >-- >2.47.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
fuz
:
maintainer-approval?
(
bofh
)
Actions:
View
|
Diff
Attachments on
bug 283509
:
256063
| 256121