Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2022 08:29:15 +0200
From:      =?UTF-8?Q?Mika=c3=abl_Urankar?= <mikael@FreeBSD.org>
To:        Kirill Ponomarev <kp@krion.cc>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org
Subject:   Re: git: 15b1da831b7c - main - lang/sbcl: Add aarch64 support
Message-ID:  <fab086d4-6266-289f-dad7-f6f46e4b45a3@FreeBSD.org>
In-Reply-To: <YnDKz7XfoE%2BFKmke@krion.cc>
References:  <202205030531.2435VnSg087811@gitrepo.freebsd.org> <YnDFYGOh%2Bq013G0V@krion.cc> <2fb8edc2-66c6-9c38-a60a-c27170d6f2f2@FreeBSD.org> <YnDKz7XfoE%2BFKmke@krion.cc>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------7dFk10BKfV3OCgvXDIReDifC
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 03/05/2022 08:25, Kirill Ponomarev wrote:
> On 05/03, Mikaël Urankar wrote:
>> On 03/05/2022 08:02, Kirill Ponomarev wrote:
>>> Did you test it before you merged it? It seems tarballs in distinfo are
>>> missing.
>>>
>>> On 05/03, Mikael Urankar wrote:
>>>> The branch main has been updated by mikael:
>>>>
>>>> URL:https://cgit.FreeBSD.org/ports/commit/?id=15b1da831b7cbebe2762fccebcfb3b0d50b27fc9
>>>>
>>>> commit 15b1da831b7cbebe2762fccebcfb3b0d50b27fc9
>>>> Author:     Mikael Urankar<mikael@FreeBSD.org>
>>>> AuthorDate: 2022-04-04 11:00:54 +0000
>>>> Commit:     Mikael Urankar<mikael@FreeBSD.org>
>>>> CommitDate: 2022-05-03 05:22:17 +0000
>>>>
>>>>       lang/sbcl: Add aarch64 support
>>>>       
>>>>       PR:             261096
>>>>       Reported by:    Robert Clausecker
>>>>       Approved by:    krion (maintainer timeout)
>>>> ---
>>>>    lang/sbcl/Makefile | 15 ++++++++++-----
>>>>    1 file changed, 10 insertions(+), 5 deletions(-)
>>>>
>>>> diff --git a/lang/sbcl/Makefile b/lang/sbcl/Makefile
>>>> index 5266d38ca984..b857d293f8f1 100644
>>>> --- a/lang/sbcl/Makefile
>>>> +++ b/lang/sbcl/Makefile
>>>> @@ -18,7 +18,7 @@ LICENSE=	BSD2CLAUSE PD
>>>>    LICENSE_COMB=	dual
>>>>    LICENSE_FILE=	${WRKSRC}/COPYING
>>>>    
>>>> -ONLY_FOR_ARCHS=	amd64 i386
>>>> +ONLY_FOR_ARCHS=	aarch64 amd64 i386
>>>>    
>>>>    LIB_DEPENDS=	libgmp.so:math/gmp \
>>>>    		libmpfr.so:math/mpfr
>>>> @@ -75,6 +75,8 @@ SAFEPOINT_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-safepoint --without-sb-thruption
>>>>    SBCL_DISTFILES=	${PORTNAME}-${SBCL_BOOT_LIST:M${ARCHOS_PATTERN}}-binary${EXTRACT_SUFX}:binaries
>>>>    SBCL_VARS=	XC_HOST="${BOOT_WRKSRC}/src/runtime/sbcl --core ${BOOT_WRKSRC}/output/sbcl.core --noinform --disable-debugger --no-sysinit --no-userinit"
>>>>    
>>>> +XC_HOST="ecl"
>>>> +
>>>>    THREADS_VARS=		MAKE_SH_ARGS+="--with-sb-thread"
>>>>    THREADS_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-thread"
>>>>    
>>>> @@ -87,7 +89,10 @@ XREF_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-xref-for-internals"
>>>>    ZLIB_VARS=	MAKE_SH_ARGS+="--with-sb-core-compression"
>>>>    ZLIB_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-core-compression"
>>>>    
>>>> -BOOTVERSION=	1.2.7
>>>> +BOOTVERSION=		${BOOTVERSION_${ARCH}}
>>>> +BOOTVERSION_aarch64=	2.2.0
>>>> +BOOTVERSION_i386=	1.2.7
>>>> +BOOTVERSION_amd64=	1.2.7
>>>>    CONMODULES=	asdf sb-aclrepl sb-bsd-sockets sb-cltl2 sb-concurrency sb-cover \
>>>>    		sb-executable sb-gmp sb-grovel sb-introspect sb-md5 sb-mpfr \
>>>>    		sb-posix sb-queue sb-rotate-byte sb-rt sb-simple-streams \
>>>> @@ -98,12 +103,12 @@ MAKE_SH_ARGS?=	--prefix="${PREFIX}" --xc-host="${XC_HOST}"
>>>>    .if defined(DYNAMIC_SPACE_SIZE)
>>>>    MAKE_SH_ARGS+=	--dynamic-space-size=${DYNAMIC_SPACE_SIZE}
>>>>    .endif
>>>> -SBCL_BOOT_LIST=	${BOOTVERSION}-x86-64-freebsd ${BOOTVERSION}-x86-freebsd \
>>>> -		${BOOTVERSION}-x86-64-dragonfly
>>>> +SBCL_BOOT_LIST=	${BOOTVERSION}-arm64-freebsd ${BOOTVERSION}-x86-64-freebsd ${BOOTVERSION}-x86-freebsd \
>>>> +		${BOOTVERSION}-x86-64-dragonfly \
>>>>    
>>>>    .include <bsd.port.options.mk>
>>>>    
>>>> -ARCHOS_PATTERN=	*-${ARCH:S/amd64/x86-64/:S/i386/x86/}-${OPSYS:tl}*
>>>> +ARCHOS_PATTERN=	*-${ARCH:S/aarch64/arm64/:S/amd64/x86-64/:S/i386/x86/}-${OPSYS:tl}*
>>>>    BOOT_WRKSRC=	${WRKDIR}/${PORTNAME}-${SBCL_BOOT_LIST:M${ARCHOS_PATTERN}}
>>>>    
>>>>    .if ${PORT_OPTIONS:MLINKABLE_RUNTIME}
>> yes, I've done a poudriere testport before the commit on both aarch64 and amd64.
>> The testport was successfull on both arch
>> I got a merged conflict and forgot to readd the distinfo for aarch64
>> It's fixed in 1e4acb02a9bfdf003e20dd6627e2f49beeaa12e5
> What I meant is did you test sbcl functionality on arm64, not building
> it on poudriere.

What do you mean? sbcl building itself is not a good test?

--------------7dFk10BKfV3OCgvXDIReDifC
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 03/05/2022 08:25, Kirill Ponomarev
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:YnDKz7XfoE+FKmke@krion.cc">
      <pre class="moz-quote-pre" wrap="">On 05/03, Mikaël Urankar wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On 03/05/2022 08:02, Kirill Ponomarev wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">Did you test it before you merged it? It seems tarballs in distinfo are
missing.

On 05/03, Mikael Urankar wrote:
</pre>
          <blockquote type="cite">
            <pre class="moz-quote-pre" wrap="">The branch main has been updated by mikael:

URL:<a class="moz-txt-link-freetext" href="https://cgit.FreeBSD.org/ports/commit/?id=15b1da831b7cbebe2762fccebcfb3b0d50b27fc9">https://cgit.FreeBSD.org/ports/commit/?id=15b1da831b7cbebe2762fccebcfb3b0d50b27fc9</a>;

commit 15b1da831b7cbebe2762fccebcfb3b0d50b27fc9
Author:     Mikael Urankar<a class="moz-txt-link-rfc2396E" href="mailto:mikael@FreeBSD.org">&lt;mikael@FreeBSD.org&gt;</a>
AuthorDate: 2022-04-04 11:00:54 +0000
Commit:     Mikael Urankar<a class="moz-txt-link-rfc2396E" href="mailto:mikael@FreeBSD.org">&lt;mikael@FreeBSD.org&gt;</a>
CommitDate: 2022-05-03 05:22:17 +0000

     lang/sbcl: Add aarch64 support
     
     PR:             261096
     Reported by:    Robert Clausecker
     Approved by:    krion (maintainer timeout)
---
  lang/sbcl/Makefile | 15 ++++++++++-----
  1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/lang/sbcl/Makefile b/lang/sbcl/Makefile
index 5266d38ca984..b857d293f8f1 100644
--- a/lang/sbcl/Makefile
+++ b/lang/sbcl/Makefile
@@ -18,7 +18,7 @@ LICENSE=	BSD2CLAUSE PD
  LICENSE_COMB=	dual
  LICENSE_FILE=	${WRKSRC}/COPYING
  
-ONLY_FOR_ARCHS=	amd64 i386
+ONLY_FOR_ARCHS=	aarch64 amd64 i386
  
  LIB_DEPENDS=	libgmp.so:math/gmp \
  		libmpfr.so:math/mpfr
@@ -75,6 +75,8 @@ SAFEPOINT_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-safepoint --without-sb-thruption
  SBCL_DISTFILES=	${PORTNAME}-${SBCL_BOOT_LIST:M${ARCHOS_PATTERN}}-binary${EXTRACT_SUFX}:binaries
  SBCL_VARS=	XC_HOST="${BOOT_WRKSRC}/src/runtime/sbcl --core ${BOOT_WRKSRC}/output/sbcl.core --noinform --disable-debugger --no-sysinit --no-userinit"
  
+XC_HOST="ecl"
+
  THREADS_VARS=		MAKE_SH_ARGS+="--with-sb-thread"
  THREADS_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-thread"
  
@@ -87,7 +89,10 @@ XREF_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-xref-for-internals"
  ZLIB_VARS=	MAKE_SH_ARGS+="--with-sb-core-compression"
  ZLIB_VARS_OFF=	MAKE_SH_ARGS+="--without-sb-core-compression"
  
-BOOTVERSION=	1.2.7
+BOOTVERSION=		${BOOTVERSION_${ARCH}}
+BOOTVERSION_aarch64=	2.2.0
+BOOTVERSION_i386=	1.2.7
+BOOTVERSION_amd64=	1.2.7
  CONMODULES=	asdf sb-aclrepl sb-bsd-sockets sb-cltl2 sb-concurrency sb-cover \
  		sb-executable sb-gmp sb-grovel sb-introspect sb-md5 sb-mpfr \
  		sb-posix sb-queue sb-rotate-byte sb-rt sb-simple-streams \
@@ -98,12 +103,12 @@ MAKE_SH_ARGS?=	--prefix="${PREFIX}" --xc-host="${XC_HOST}"
  .if defined(DYNAMIC_SPACE_SIZE)
  MAKE_SH_ARGS+=	--dynamic-space-size=${DYNAMIC_SPACE_SIZE}
  .endif
-SBCL_BOOT_LIST=	${BOOTVERSION}-x86-64-freebsd ${BOOTVERSION}-x86-freebsd \
-		${BOOTVERSION}-x86-64-dragonfly
+SBCL_BOOT_LIST=	${BOOTVERSION}-arm64-freebsd ${BOOTVERSION}-x86-64-freebsd ${BOOTVERSION}-x86-freebsd \
+		${BOOTVERSION}-x86-64-dragonfly \
  
  .include &lt;bsd.port.options.mk&gt;
  
-ARCHOS_PATTERN=	*-${ARCH:S/amd64/x86-64/:S/i386/x86/}-${OPSYS:tl}*
+ARCHOS_PATTERN=	*-${ARCH:S/aarch64/arm64/:S/amd64/x86-64/:S/i386/x86/}-${OPSYS:tl}*
  BOOT_WRKSRC=	${WRKDIR}/${PORTNAME}-${SBCL_BOOT_LIST:M${ARCHOS_PATTERN}}
  
  .if ${PORT_OPTIONS:MLINKABLE_RUNTIME}
</pre>
          </blockquote>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">
yes, I've done a poudriere testport before the commit on both aarch64 and amd64.
The testport was successfull on both arch
I got a merged conflict and forgot to readd the distinfo for aarch64
It's fixed in 1e4acb02a9bfdf003e20dd6627e2f49beeaa12e5
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
What I meant is did you test sbcl functionality on arm64, not building
it on poudriere.
</pre>
    </blockquote>
    <pre>What do you mean? sbcl building itself is not a good test?
</pre>
  </body>
</html>

--------------7dFk10BKfV3OCgvXDIReDifC--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fab086d4-6266-289f-dad7-f6f46e4b45a3>