I created PR 241463 with my changes.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241463

This works for me to create a new port (mongodb42) using scons+python3. And it 
is backwards compatible for existing ports with python2 AFAIK.

If this needs more work from my side, please tell.

Regards,
Ronald.

Van: Ronald Klop <ronald-li...@klop.ws>
Datum: donderdag, 24 oktober 2019 12:09
Aan: freebsd-ports@freebsd.org, Sunpoet Po-Chuan Hsieh <sunp...@freebsd.org>, Eir Nym 
<eir...@gmail.com>
Onderwerp: Re: scons and python3?

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-li...@klop.ws>
Datum: maandag, 21 oktober 2019 22:22
Aan: freebsd-ports@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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
>
>
>
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"



_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to