On Fri, Jan 05, 2018 at 03:53:32PM +0100, Klemens Nanni wrote:
> On Fri, Jan 05, 2018 at 03:15:22PM +0100, Björn Ketelaars wrote:
> > On Thu 04/01/2018 23:27, Klemens Nanni wrote:
> > > You can build it with SEPARATE_BUILD=Yes.
> >
> > The build of borgbackup still works with SEPARATE_BUILD=Yes, however I'm not
> > sure that it makes sense to set this variable. With this variable set
> > nothing
> > is build in the separate generated ${WRKBUILD} directory.
> > Guess that Python's setuptools doesn't care.
> My bad, I did only half the job.
>
> setup.py accepts a parameter called --build-base but SEPARATE_BUILD
> doesn't automatically effect it's usage:
>
> $ make -p SEPARATE_BUILD=yes | grep ^MODPY_DISTUTILS_BUILD
> MODPY_DISTUTILS_BUILD = build --build-base=${WRKSRC}
>
> So in order to actually make use of it, you need
>
> MODPY_DISTUTILS_BUILD =›build
> MODPY_DISTUTILS_BUILDARGS=--build-base ${WRKBUILD}
Without this bloody typo of course.
> > My proposal would be to leave out the SEPARATE_BUILD bit, and keep the diff
> > as
> > is.
> Updated diff attached. Builds fine, tests are still running but seem all
> fine so far.
>
> diff --git a/sysutils/borgbackup/Makefile b/sysutils/borgbackup/Makefile
> index e941957b50d..cd00e182beb 100644
> --- a/sysutils/borgbackup/Makefile
> +++ b/sysutils/borgbackup/Makefile
> @@ -4,6 +4,7 @@ COMMENT = deduplicating backup program
>
> MODPY_EGG_VERSION = 1.1.4
> DISTNAME = borgbackup-${MODPY_EGG_VERSION}
> +REVISION = 0
>
> CATEGORIES = sysutils
>
> @@ -15,11 +16,16 @@ PERMIT_PACKAGE_CDROM = Yes
> MODULES = lang/python
> MODPY_PI = Yes
> MODPY_SETUPTOOLS = Yes
> +MODPY_DISTUTILS_BUILD = build
> +MODPY_DISTUITLS_BUILDARGS=--build-base ${WRKBUILD}
+MODPY_DISTUTILS_BUILDARGS=--build-base ${WRKBUILD}
Anyways, sthen is probably right.