Re: Can anyone build www/node right now?

2020-06-29 Thread Mateusz Piotrowski
Hi Bradley,

do you think that we should specify the minimal required Python version in 
www/node? Like,
USES=python:build,3.7+?


Here's the context:


On 6/29/20 2:20 AM, Dutch Daemon - FreeBSD Forums Administrator wrote:
> On June 28, 2020 22:54:57 DutchDaemon - FreeBSD Forums Administrator 
>  wrote:
>
>> On 2020-06-28 22:49, Christoph Moench-Tegeder wrote:
>>> ## Dutch Daemon - FreeBSD Forums Administrator (dutchdae...@freebsd.org):
>>>
 In absence of a make.conf in the jail it pulled in python36-3.6.11 as the
 default.
>>> Uhm. From your log, we see that you have a make.conf with a python
>>> version override:
>>>
>>> 95.  /usr/local/etc/poudriere.d/testamd64-make.conf 
>>> [...]
>>> 116. DEFAULT_VERSIONS= perl5=5.30 python=3.6 python3=3.6 php=73 apache=2.4 
>>> mysql=56 ssl=openssl
>>>
>>> The default "default python" is 3.7.
>>
>>
>> Ah, it pulled in the generic /etc/make.conf., which was never there
>> until I tested something (else) with it; forgot to remove it.
>
> Even worse: I had had a jail with the same name before, and that one had a 
> make.conf with Python
> 3.6 in it. Always clear out your test configs when you're unoriginal with 
> your test jail names ;)
>
>> I'll try Python 3.7 in all of the build jails that need www/node and remove 
>> the hard Python default.
>
> That did indeed fix it, thanks again.
>
> ___
> 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"

Cheers,

Mateusz
___
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"


Re: Can anyone build www/node right now?

2020-06-28 Thread Dutch Daemon - FreeBSD Forums Administrator
On June 28, 2020 22:54:57 DutchDaemon - FreeBSD Forums Administrator 
 wrote:



On 2020-06-28 22:49, Christoph Moench-Tegeder wrote:

## Dutch Daemon - FreeBSD Forums Administrator (dutchdae...@freebsd.org):


In absence of a make.conf in the jail it pulled in python36-3.6.11 as the
default.

Uhm. From your log, we see that you have a make.conf with a python
version override:

95.  /usr/local/etc/poudriere.d/testamd64-make.conf 
[...]
116. DEFAULT_VERSIONS= perl5=5.30 python=3.6 python3=3.6 php=73 apache=2.4 
mysql=56 ssl=openssl


The default "default python" is 3.7.



Ah, it pulled in the generic /etc/make.conf., which was never there
until I tested something (else) with it; forgot to remove it.


Even worse: I had had a jail with the same name before, and that one had a 
make.conf with Python 3.6 in it. Always clear out your test configs when 
you're unoriginal with your test jail names ;)


I'll try Python 3.7 in all of the build jails that need www/node and remove 
the hard Python default.


That did indeed fix it, thanks again.

___
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"


Re: Can anyone build www/node right now?

2020-06-28 Thread DutchDaemon - FreeBSD Forums Administrator
On 2020-06-28 22:49, Christoph Moench-Tegeder wrote:
> ## Dutch Daemon - FreeBSD Forums Administrator (dutchdae...@freebsd.org):
>
>> In absence of a make.conf in the jail it pulled in python36-3.6.11 as the 
>> default.
> Uhm. From your log, we see that you have a make.conf with a python
> version override:
>
>  95.  /usr/local/etc/poudriere.d/testamd64-make.conf 
>  [...]
> 116. DEFAULT_VERSIONS= perl5=5.30 python=3.6 python3=3.6 php=73 apache=2.4 
> mysql=56 ssl=openssl
>
> The default "default python" is 3.7.


Ah, it pulled in the generic /etc/make.conf., which was never there
until I tested something (else) with it; forgot to remove it.

I'll try Python 3.7 in all of the build jails that need www/node and
remove the hard Python default.

Thanks guys!




signature.asc
Description: OpenPGP digital signature


Re: Can anyone build www/node right now?

2020-06-28 Thread Christoph Moench-Tegeder
## Dutch Daemon - FreeBSD Forums Administrator (dutchdae...@freebsd.org):

> In absence of a make.conf in the jail it pulled in python36-3.6.11 as the 
> default.

Uhm. From your log, we see that you have a make.conf with a python
version override:

 95.  /usr/local/etc/poudriere.d/testamd64-make.conf 
 [...]
116. DEFAULT_VERSIONS= perl5=5.30 python=3.6 python3=3.6 php=73 apache=2.4 
mysql=56 ssl=openssl

The default "default python" is 3.7.

Regards,
Christoph

-- 
Spare Space
___
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"


Re: Can anyone build www/node right now?

2020-06-28 Thread Dutch Daemon - FreeBSD Forums Administrator

On June 28, 2020 22:25:31 George Mitchell  wrote:


On 2020-06-28 16:07, DutchDaemon - FreeBSD Forums Administrator wrote:

[...]
Traceback (most recent call last):

 File "tools/genv8constants.py", line 23, in 

   bufsize=-1, stdout=subprocess.PIPE, text=True).stdout

TypeError: __init__() got an unexpected keyword argument 'text'
[...]


You appear not to have a recent enough version of Python installed.
The "text" keyword argument to the Popen constructor was added in
Python 3.7, and it isn't available at all in Python 2.  The patch
file patch-tools_genv8constants.py in /usr/ports/www/node/files
explicitly adds a "text" keyword argument to the call to Popen.
Can you check your default version of Python?

www/node/Makefile specifies it USES=python:build, which should
probably be changed to python3 given the patch.   -- George


In absence of a make.conf in the jail it pulled in python36-3.6.11 as the 
default. If node depends on 3.7, that should be declared a hard dependency. 
I can try it with 3.7.


___
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"


Re: Can anyone build www/node right now?

2020-06-28 Thread George Mitchell
On 2020-06-28 16:07, DutchDaemon - FreeBSD Forums Administrator wrote:
> [...]
> Traceback (most recent call last):
> 
>   File "tools/genv8constants.py", line 23, in 
> 
>     bufsize=-1, stdout=subprocess.PIPE, text=True).stdout
> 
> TypeError: __init__() got an unexpected keyword argument 'text'
> [...]

You appear not to have a recent enough version of Python installed.
The "text" keyword argument to the Popen constructor was added in
Python 3.7, and it isn't available at all in Python 2.  The patch
file patch-tools_genv8constants.py in /usr/ports/www/node/files
explicitly adds a "text" keyword argument to the call to Popen.
Can you check your default version of Python?

www/node/Makefile specifies it USES=python:build, which should
probably be changed to python3 given the patch.   -- George



signature.asc
Description: OpenPGP digital signature


Re: Can anyone build www/node right now?

2020-06-28 Thread David Wolfskill
On Sun, Jun 28, 2020 at 10:07:58PM +0200, DutchDaemon - FreeBSD Forums 
Administrator wrote:
> I have tried to build www/node for weeks now, and it always fails. This is on 
> a fresh Poudriere jail, amd64, 12.1-REL-p6.

Checking my logs, www/node is one of the packages built (via poudriere)
this morning by my build machine, which was running:

freebeast(12.1-S)[1] uname -aUK
FreeBSD freebeast.catwhisker.org 12.1-STABLE FreeBSD 12.1-STABLE #942 
r362716M/362719: Sun Jun 28 03:33:45 PDT 2020 
r...@freebeast.catwhisker.org:/common/S1/obj/usr/src/amd64.amd64/sys/GENERIC  
amd64 1201518 1201518

at the time, using a (head) ports tree at r540699.

As a reality check, I am trying to build www/node on my laptop, running:

g1-55(12.1-S)[4] uname -aUK
FreeBSD g1-55.catwhisker.org 12.1-STABLE FreeBSD 12.1-STABLE #737 
r362716M/362719: Sun Jun 28 03:33:54 PDT 2020 
r...@g1-48.catwhisker.org:/common/S1/obj/usr/src/amd64.amd64/sys/CANARY  amd64 
1201518 1201518

with a (head) ports tree at r540699.

The build machine has no option overrides for www/node; the laptop shows:
g1-55(12.1-S)[2] make -C /usr/ports/www/node showconfig
===> The following configuration options are available for node-14.4.0:
 BUNDLED_SSL=on: Use node.js's bundled OpenSSL implementation
 DOCS=on: Build and/or install documentation
 DTRACE=on: Build with DTrace probes
 NLS=on: Native Language Support
===> Use 'make config' to modify these settings

> Opened a ticket for it, with full output...

Peace,
david
-- 
David H. Wolfskill  da...@catwhisker.org
Of course Black Lives Matter!  Now vote accordingly!

See http://www.catwhisker.org/~david/publickey.gpg for my public key.


signature.asc
Description: PGP signature


Can anyone build www/node right now?

2020-06-28 Thread DutchDaemon - FreeBSD Forums Administrator
I have tried to build www/node for weeks now, and it always fails. This is on a 
fresh Poudriere jail, amd64, 12.1-REL-p6.

Opened a ticket for it, with full output, but no response yet. To rule any 
interference out, I built this in a clean jail, without any make.conf or port 
options, bog standard defaults.

All 33 (from pkg to binutils) dependencies built correctly (as was always the 
case), but www/node bombed on the same error as always.

See https://pastebin.pl/view/3a6f48db for this latest clean build; the error is 
invariably:

---
Traceback (most recent call last):

  File "tools/genv8constants.py", line 23, in 

    bufsize=-1, stdout=subprocess.PIPE, text=True).stdout

TypeError: __init__() got an unexpected keyword argument 'text'

gmake[2]: *** [node_dtrace_ustack.target.mk:13: 
/wrkdirs/usr/ports/www/node/work/node-v14.4.0/out/Release/obj/gen/v8constants.h]
 Error 1

gmake[2]: *** Waiting for unfinished jobs

rm ad3fd4c76aef3b4797bbb2572833f9000cee0294.intermediate 
ea2d89ddb30e54c8a8d75f33fc84b228111d7c67.intermediate 
ed36ab92458644e121416e8697a6b64c051c72b0.intermediate

gmake[1]: *** [Makefile:101: node] Error 2

gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/node/work/node-v14.4.0'

===> Compilation failed unexpectedly.

Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to

the maintainer.

*** Error code 1
---

Previous build attempts on 12-REL-p5 amd 64, with clean and resued jails:

https://pastebin.pl/view/4953a503
https://pastebin.pl/view/db278ac3
https://pastebin.pl/view/e3c16e57
https://pastebin.pl/view/f3fcdfbf



signature.asc
Description: OpenPGP digital signature