Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 2023 11:40:05 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 24717118f752 - main - lang/smalltalk: try to unbreak the port's build on fresh -CURRENT
Message-ID:  <202307061140.366Be5CM006975@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=24717118f75234c37e0e7ebac41b4452c8a3e761

commit 24717118f75234c37e0e7ebac41b4452c8a3e761
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-07-06 11:39:00 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-07-06 11:39:00 +0000

    lang/smalltalk: try to unbreak the port's build on fresh -CURRENT
    
    While here, define LICENSE (GPLv2+) and hook the test suite to our
    framework.  Currently, out of 130 tests, 8 fail (7, 8, 32, 41, 70,
    118, and 122 with 1 expected failure), 1 test was skipped.
    
    Reported by:    pkg-fallout
---
 lang/smalltalk/Makefile                     |  6 ++++++
 lang/smalltalk/files/patch-lib-src_getopt.c | 11 +++++++++++
 2 files changed, 17 insertions(+)

diff --git a/lang/smalltalk/Makefile b/lang/smalltalk/Makefile
index e9293bead024..591a27d6302b 100644
--- a/lang/smalltalk/Makefile
+++ b/lang/smalltalk/Makefile
@@ -8,6 +8,8 @@ MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	GNU Smalltalk
 WWW=		https://smalltalk.gnu.org/
 
+LICENSE=	GPLv2+
+
 BROKEN_aarch64=		Fails to link: undefined reference to sbrk
 BROKEN_powerpc64=	Fails to build: gst-package: did not understand #~
 BROKEN_riscv64=		Fails to link: undefined reference to sbrk
@@ -39,6 +41,8 @@ sed_OLD_CMD=	/bin/sed
 sed_CMD=	${SED}
 SHEBANG_FILES=	packages/vfs/deb packages/vfs/mailfs \
 		examples/pepe.sed examples/xml.sed
+TEST_TARGET=	check
+
 PLIST_SUB=	VERSION="${PORTVERSION}"
 PORTDATA=	*
 
@@ -58,6 +62,8 @@ post-patch:
 	@${REINPLACE_CMD} -e 's/lrintl (truncl/lroundl (truncl/' \
 		${WRKSRC}/libgst/prims.def \
 		${WRKSRC}/libgst/prims.inl
+	@${REINPLACE_CMD} -e '/^gst_SkippedEntityHandler/,+1s/)/, int)/' \
+		${WRKSRC}/packages/xml/expat/expat.c
 	@${REINPLACE_CMD} -e '/^ac_include/s/\\$$/#include <wctype.h> \\/' \
 		${WRKSRC}/snprintfv/configure
 
diff --git a/lang/smalltalk/files/patch-lib-src_getopt.c b/lang/smalltalk/files/patch-lib-src_getopt.c
new file mode 100644
index 000000000000..3f5027222e43
--- /dev/null
+++ b/lang/smalltalk/files/patch-lib-src_getopt.c
@@ -0,0 +1,11 @@
+--- lib-src/getopt.c.orig	2013-03-23 19:56:26 UTC
++++ lib-src/getopt.c
+@@ -43,6 +43,8 @@
+ #endif
+ 
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ 
+ /* Comment out all this code if we are using the GNU C Library, and are not
+    actually compiling the library itself.  This code is part of the GNU C



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307061140.366Be5CM006975>