Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: lang/sbcl - building and installing libsbcl.so ?
To:
Dima Pasechnik <dima@sagemath.org>
Cc:
Theo Buehler <tb@theobuehler.org>, George Koehler <kernigh@gmail.com>, ports@openbsd.org, Sebastien Marie <semarie@kapouay.eu.org>
Date:
Thu, 25 Apr 2024 12:49:07 +0100

Download raw body.

Thread
On 2024/04/25 10:24, Dima Pasechnik wrote:
> 
> 1) Is there a standard way to set up .so's major.minor version
> in the port, and propagate it to the build?
> (hardcoding major.minor in several patched places is a pain, obviously)
> 
> In port's makefile I now have a line
> 
> SHARED_LIBS +=  sbcl                              0.0
> 
> - is this "0.0" being stored somewhere usable?

You can use LIBsbcl_VERSION in the port Makefile. This can either
be passed to the build via a make variable (usually preferable)
or by patching (one option is to patch to ${LIBsbcl_VERSION},
SUBST_VARS+=LIBsbcl_VERSION, and use ${SUBST_CMD} to replace it, perhaps
in a pre-configure target).

> 2) What is the easiest way to create acceptable to the build system patches
> in patches/ ?
> I just do "git diff > patchifile" and manually edit patchfile, but
> that's clearly suboptimal.

Copy the clean original file to have the suffix .orig.port, edit,
then run "make update-patches" from the port dir. If you're using
SUBST_CMD then "update-patches" needs to be run at the right time.