scons and python3?

Ronald Klop ronald-lists at klop.ws
Thu Oct 24 10:09:09 UTC 2019


Cc-ing some of the people from the PRs. I don't know if they are still interested.

Would a master ports construction be a possible solution to the scons+python3 problem?

diff -urN /usr/ports/devel/scons/Makefile devel/scons/Makefile
--- /usr/ports/devel/scons/Makefile    2019-10-02 21:51:04.000000000 +0200
+++ devel/scons/Makefile    2019-10-24 11:48:48.997995000 +0200
@@ -14,7 +14,7 @@
 
 RUN_DEPENDS=    gm4:devel/m4
 
-USES=        python:2.7 shebangfix
+USES?=        python:2.7 shebangfix
 USE_PYTHON=    autoplist distutils
 
 NO_ARCH=    yes


And the sub-port:
$ cat devel/scons-py3/Makefile
# $FreeBSD: head/devel/scons/Makefile 513618 2019-10-02 19:51:04Z sunpoet $

MASTERDIR=    ${.CURDIR}/../scons
PKGNAMESUFFIX=    -py3
USES=        python:3.5+ shebangfix

.include "${MASTERDIR}/Makefile"


With a little adjustment of /usr/ports/Mk/Uses/scons.mk this might work or not?
Addition of ${scons_ARGS}=py3 maybe?
(I'm not a master of the ports system, so please enlighten me if I miss something.)

Regards,
Ronald.

PS: My goal is still a port of mongodb42 which requires python3 for SCons.

 
Van: Ronald Klop <ronald-lists at klop.ws>
Datum: maandag, 21 oktober 2019 22:22
Aan: freebsd-ports at freebsd.org
Onderwerp: scons and python3?
> 
> Hi,
> 
> For porting mongodb42 I need scons with python3.
> There are some attempts on making the scons port flavored, but that did  
> not work out.
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237122
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230734
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239792
> 
> What is the way forward?
> - A port like scons-py3 as a slave port of scons?
> - If I could overwrite MAKE_CMD to "MAKE_CMD=python3 ${SCONS}" it would  
> help, but it is fixed in /usr/ports/Mk/Uses/scons.mk
> 
> Any thoughts?
> 
> Regards,
> 
> Ronald.
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> 
> 
> 


More information about the freebsd-ports mailing list