openbsd-ports/lang/sbcl/patches/patch-contrib_asdf-module_mk
jasper a18204ad04 - fix patch names, no binary change
- regen a patch while here
2011-07-08 11:42:09 +00:00

27 lines
1.0 KiB
Plaintext

$OpenBSD: patch-contrib_asdf-module_mk,v 1.1 2011/07/08 11:42:09 jasper Exp $
Fix 'all' target to allow building without running tests.
Don't copy every single file when installing the contribs, only the
ones that are actually needed to load the system.
--- contrib/asdf-module.mk.orig Mon May 9 04:49:39 2011
+++ contrib/asdf-module.mk Fri Jul 8 13:39:44 2011
@@ -25,7 +25,8 @@ endif
export CC SBCL EXTRA_CFLAGS EXTRA_LDFLAGS
-all: $(EXTRA_ALL_TARGETS)
+all: $(EXTRA_ALL_TARGETS) $(SYSTEM).fasl
+$(SYSTEM).fasl:
$(MAKE) -C ../asdf
$(SBCL) --eval '(defvar *system* "$(SYSTEM)")' --load ../asdf-stub.lisp --eval '(quit)'
@@ -37,5 +38,4 @@ test: all
# KLUDGE: There seems to be no portable way to tell tar to not to
# preserve owner, so chown after installing for the current user.
install: $(EXTRA_INSTALL_TARGETS)
- tar cf - . | ( cd "$(BUILD_ROOT)$(INSTALL_DIR)" && tar xpvf - )
- find "$(BUILD_ROOT)$(INSTALL_DIR)" -exec chown `id -u`:`id -g` {} \;
+ cp -p $(SYSTEM).asd *.lisp *.fasl "$(BUILD_ROOT)$(INSTALL_DIR)"