Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2021 21:43:00 +0000 (UTC)
From:      Christoph Moench-Tegeder <cmt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r566509 - head/databases/pgloader3/files
Message-ID:  <202102242143.11OLh05S011745@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cmt
Date: Wed Feb 24 21:43:00 2021
New Revision: 566509
URL: https://svnweb.freebsd.org/changeset/ports/566509

Log:
  allow pgloader3 to build on 32bit platforms
  
  guess if we're on a 32bit platform and set a reduced DYNSIZE - else
  sbcl may hit it's adress space limits.
  
  PR:		253766
  Submitted by:	maintainer

Modified:
  head/databases/pgloader3/files/patch-Makefile

Modified: head/databases/pgloader3/files/patch-Makefile
==============================================================================
--- head/databases/pgloader3/files/patch-Makefile	Wed Feb 24 20:45:14 2021	(r566508)
+++ head/databases/pgloader3/files/patch-Makefile	Wed Feb 24 21:43:00 2021	(r566509)
@@ -1,7 +1,21 @@
 --- Makefile.orig	2020-03-22 21:26:18 UTC
 +++ Makefile
-@@ -86,7 +86,7 @@ $(QLDIR)/local-projects/cl-csv:
+@@ -30,6 +30,13 @@ BUNDLEDIR  = $(BUILDDIR)/bundle/$(BUNDLENAME)
+ BUNDLE     = $(BUILDDIR)/$(BUNDLENAME).tgz
+ BUNDLETESTD= $(BUILDDIR)/bundle/test
  
++ifneq ($(shell getconf LONG_BIT),64)
++# Assuming 32 bit FreeBSD and setting DYNSIZE down to 1 GiB...
++# (Will be used by SBCL for its GC/heap, 32 bit systems can only
++# allocate 4 GiB max).
++DYNSIZE = 1024
++endif
++
+ ifeq ($(OS),Windows_NT)
+ EXE           = .exe
+ COMPRESS_CORE = no
+@@ -86,7 +93,7 @@ $(QLDIR)/local-projects/cl-csv:
+ 
  $(QLDIR)/setup.lisp:
  	mkdir -p $(BUILDDIR)
 -	curl -o $(BUILDDIR)/quicklisp.lisp http://beta.quicklisp.org/quicklisp.lisp
@@ -9,7 +23,7 @@
  	$(CL) $(CL_OPTS) --load $(BUILDDIR)/quicklisp.lisp                        \
               --load src/getenv.lisp                                               \
               --eval '(quicklisp-quickstart:install :path "$(BUILDDIR)/quicklisp" :proxy (getenv "http_proxy"))' \
-@@ -126,7 +126,9 @@ $(BUILDAPP_CCL): $(QLDIR)/setup.lisp
+@@ -126,7 +133,9 @@ $(BUILDAPP_CCL): $(QLDIR)/setup.lisp
  
  $(BUILDAPP_SBCL): $(QLDIR)/setup.lisp
  	mkdir -p $(BUILDDIR)/bin
@@ -20,7 +34,7 @@
               --eval '(ql:quickload "buildapp")'                   \
               --eval '(buildapp:build-buildapp "$@")'              \
               --eval '(quit)'
-@@ -199,7 +201,7 @@ $(BUNDLE): $(BUNDLEDIR) $(BUNDLEDIR)/version.sexp
+@@ -199,7 +208,7 @@ $(BUNDLE): $(BUNDLEDIR) $(BUNDLEDIR)/version.sexp
  	sed -e s/%VERSION%/$(VERSION)/ < bundle/Makefile > $(BUNDLEDIR)/Makefile
  	git archive --format=tar --prefix=pgloader-$(VERSION)/ master \
  	     | tar -C $(BUNDLEDIR)/local-projects/ -xf -



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