git: 47f2932ebad0 - main - security/ncrypt: fix build with -fno-common
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Apr 2023 23:04:21 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=47f2932ebad004446c08db2dc98ceac1822a27e2 commit 47f2932ebad004446c08db2dc98ceac1822a27e2 Author: Robert Clausecker <fuz@FreeBSD.org> AuthorDate: 2023-04-11 00:22:30 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-04-11 23:02:43 +0000 security/ncrypt: fix build with -fno-common Move definition of ROUNDS from header to source file. This fixes the port on FreeBSD 13 and later. --- security/ncrypt/Makefile | 4 +--- security/ncrypt/files/patch-rijndael-alg-fst.c | 11 +++++++++++ security/ncrypt/files/patch-rijndael-alg-fst.h | 11 +++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/security/ncrypt/Makefile b/security/ncrypt/Makefile index b9a6f57238f2..8c9a222d0021 100644 --- a/security/ncrypt/Makefile +++ b/security/ncrypt/Makefile @@ -1,5 +1,6 @@ PORTNAME= ncrypt PORTVERSION= 0.8.1 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTNAME}-${PORTVERSION:R}.0 @@ -10,9 +11,6 @@ WWW= http://ncrypt.sourceforge.net/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_13= ld: error: duplicate symbol: ROUNDS -BROKEN_FreeBSD_14= ld: error: duplicate symbol: ROUNDS - USES= tar:tgz GNU_CONFIGURE= yes diff --git a/security/ncrypt/files/patch-rijndael-alg-fst.c b/security/ncrypt/files/patch-rijndael-alg-fst.c new file mode 100644 index 000000000000..f4aaec08628a --- /dev/null +++ b/security/ncrypt/files/patch-rijndael-alg-fst.c @@ -0,0 +1,11 @@ +--- rijndael-alg-fst.c.orig 2023-04-11 00:20:28 UTC ++++ rijndael-alg-fst.c +@@ -9,6 +9,8 @@ + + #include "rijndael-alg-fst.h" + ++int ROUNDS; ++ + #define SC ((BC - 4) >> 1) + + #include "boxes-fst.dat" diff --git a/security/ncrypt/files/patch-rijndael-alg-fst.h b/security/ncrypt/files/patch-rijndael-alg-fst.h new file mode 100644 index 000000000000..7d46cb2c9728 --- /dev/null +++ b/security/ncrypt/files/patch-rijndael-alg-fst.h @@ -0,0 +1,11 @@ +--- rijndael-alg-fst.h.orig 2023-04-11 00:20:14 UTC ++++ rijndael-alg-fst.h +@@ -11,7 +11,7 @@ typedef unsigned char word8; + typedef unsigned short word16; + typedef unsigned int word32; + +-int ROUNDS; ++extern int ROUNDS; + + int rijndaelKeySched (word8 k[MAXKC][4], int keyBits, + word8 rk[MAXROUNDS+1][4][4]);