Wednesday, December 04, 2024

Re: lang/sbcl-2.4.11: breaks x11/stumpwm

On Wed, 04 Dec 2024 03:35:51 +0100,
Kirill A. Korinsky <kirill@korins.ky> wrote:
>
> Not sure that the right move here: revert that commit? revert to
> sbcl-2.4.10? Something else?
>

As Stas Boukarev had pointed [1] it is warning. Here, I made warnings
non-fatal which allows to build x11/stumpwm without touching sbcl, and
should prevet similar issues in the future.

Ok?

Footnotes:
[1] https://bugs.launchpad.net/sbcl/+bug/2090967/comments/2

Index: x11/stumpwm/Makefile
===================================================================
RCS file: /home/cvs/ports/x11/stumpwm/Makefile,v
diff -u -p -r1.27 Makefile
--- x11/stumpwm/Makefile 3 Dec 2024 13:46:28 -0000 1.27
+++ x11/stumpwm/Makefile 4 Dec 2024 09:45:09 -0000
@@ -42,9 +42,17 @@ MAKE_FLAGS= '-e'
DESTDIRNAME= destdir
NO_TEST= yes

+# ~/.sbclrc
+PORTHOME = ${WRKDIST}
+
# Use symlinks so ASDF finds system dependencies
pre-configure:
@find ${WRKDIR} -type f -name \*.asd -a \! -name stumpwm.asd \
-exec ln -s {} ${WRKSRC} \;
+
+# Warning shouldn't fail the build
+pre-build:
+ @echo '(declaim (sb-ext:muffle-conditions cl:warning))' \
+ > ${WRKDIST}/.sbclrc

.include <bsd.port.mk>


--
wbr, Kirill

No comments:

Post a Comment