From nobody Wed Aug 09 16:04:16 2023 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RLZct5Bhzz4TsMD for ; Wed, 9 Aug 2023 16:04:30 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RLZct4q4Rz3GNS; Wed, 9 Aug 2023 16:04:30 +0000 (UTC) (envelope-from bofh@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691597070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=s5X03TkJPF6la5hKQdw0Ikl/ItFU1U3JHA04CNrPR2o=; b=Mwsdjm1hIVbms4Ggzz4bDCBK6VpQlByDIsbQaEpDHd+mx0dI0sUNXEptl9XKlaecSxwTXy vPpI5sOa9BGwGRBjNExSrhmmbZEWN0t2cWAxeyYiblfsAV1i4VdeDAN90szJruyrcGn7lA cd4aOdl7dKCTzglwyec8mzpmj/2PdQ/0jJCEk1uNtIRYI+oLRd2rqsg6+TXc3sPUlCFaHu iZ2KYTdJawFtl/cCNfq2X858QyvUlZYNrtIURH56cFNFvn55QxxnfOccJfjM2KtK+JvsRi 9wsVHbQcvm+0fUkCWwX1/nVWTjc/HYr8Va61mvk6WUqzDJ/EmlSemSnhMYlBqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691597070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=s5X03TkJPF6la5hKQdw0Ikl/ItFU1U3JHA04CNrPR2o=; b=x9Tbv7Bg6PSBJwVepxSWFrmh9Ywpx5+hUzqw5kSyWrRvedXfMnDCTS7A1A98BEzoEtsRU/ BKMyvFThP4Y1VW+tBzpfIGRl0syZpN+2SZjUHv4BzLa5oblUtP7Gnw3QYCBASQ+7Ii3Wnt 9jRYasCrKF7lbtIFGX2DeYzyqaGPLf8WI1AnXiuOvmrDDAo+XLALRTUTI9OmsedqxrvGuc bgNSbNTrHQPWLVYUpfaU5lBeNaPLUafrM2vJatRBVE6UOhFy1q4UeBPnXDdglOp9+yZd+J uzgSrmPK4uh3FfnTOgln5Uksrg/Q4cUkanyT3qZ0qvNsMInHKPKpD0iJOpt+Fw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691597070; a=rsa-sha256; cv=none; b=bk7p+qxylUhXU2thSwNMpxmNVbmC8Zs+6VT0mdDiYLJxM5Xp87oTYV3kLsrgMAEquwjUZf ScEFcnXlN/80DO43ZcSfqdG8KL/AhPRUY/BrOyYySuMEZTBvdhFOcS6AtHvm2aZem77xNO ogfPT+CfXbNW65aBV98T60dE4swAsiFhWLjuyTDa+jf4KVpZP31pAb0Qsgv/Xn19YyNqei EKm7nMxAEH9dt+zKl8CgVu6UT14FnoXjiiyPvSoJaJdQ6uAx+yWO5Sw30Hjet22bjjoBAH 3x1DNKaSDXAvsez1bleJDtjZvNI3lTHjXnV4CZB5QJtLKDdwGf1FQYHICVoejw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from mx.bofh.network (mx.bofh.network [IPv6:2a01:4f8:261:25de::227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mx.bofh.network", Issuer "R3" (verified OK)) (Authenticated sender: bofh/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RLZct0Q2Fz17VD; Wed, 9 Aug 2023 16:04:29 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtpclient.apple ( [217.117.226.147]) by mx.bofh.network (OpenSMTPD) with ESMTPSA id f121aa5e (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Wed, 9 Aug 2023 16:04:27 +0000 (UTC) From: Moin Rahman Message-Id: <9A29A1BA-F957-40D9-96C6-062471BA14AF@freebsd.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_E859EA4B-3879-4560-9CBA-E84EBEB34361" List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: port lang/python27 does not build in 14.0-CURRENT w/ poudriere Date: Wed, 9 Aug 2023 18:04:16 +0200 In-Reply-To: Cc: python@freebsd.org To: Matthias Apitz References: <414B922C-C553-41D4-B519-E3B3B239B606@freebsd.org> X-Mailer: Apple Mail (2.3731.700.6) --Apple-Mail=_E859EA4B-3879-4560-9CBA-E84EBEB34361 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 This perfectly builds on the latest HEAD without any problem as shared = in my build log. I am not sure what is wrong at your end. Neither can I = see any fallout on the clusters. Kind regards, Moin > On Aug 9, 2023, at 6:01 PM, Matthias Apitz wrote: >=20 > El d=C3=ADa mi=C3=A9rcoles, agosto 09, 2023 a las 04:35:29 +0200, Moin = Rahman escribi=C3=B3: >=20 >> My commit didn't add any new files but just changed the Makefile. Can = you do: >>=20 >> grep 000000 Makefile and see what is the result. >>=20 >> You should get something like this: >> @${REINPLACE_CMD} -e 's|00907000|00000000|' \ >>=20 >> If not then there is something else in the play. >=20 > # grep 000000 Makefile > # openssl/opensslv.h so setup.py just detects the string as 00000000 > @${REINPLACE_CMD} -e 's|00907000|00000000|' \ >=20 > This explains why in the log of the build the OpenSSL version is seen > as: >=20 > ... > running build > running build_ext > warning: openssl 0x00000000 is too old for _hashlib > building dbm using ndbm > ... >=20 > Maybe you want to think about this 'is too old'.... >=20 > matthias >=20 >>> On Aug 9, 2023, at 4:07 PM, Matthias Apitz > wrote: >>>=20 >>> El d=C3=ADa mi=C3=A9rcoles, agosto 09, 2023 a las 03:55:40 +0200, = Moin Rahman escribi=C3=B3: >>>=20 >>>> I just ran a new testport and it looks to build fine with = src@b8b33f3b3b=20 >>>>=20 >>>> = https://pkg.bofh.network/data/MAIN-default/2023-08-09_15h45m49s/logs/pytho= n27-2.7.18_2.log >>>>=20 >>>> And from what it looks like that you might have some local python27 = patch which might have removed my last commit or there is a mid air = collision. See my stupid hacky commits here: >>>>=20 >>>> = https://cgit.freebsd.org/ports/commit/?id=3Da5b3714057750ecbb8db8912edf5c4= 81ff46ef2b >>>>=20 >>>> = https://cgit.freebsd.org/ports/commit/?id=3D23105bfd5591bed1c24b6a8524a0f2= 74a5977a94 >>>=20 >>> I did a git pull and have these files only from your port: >>>=20 >>> root@jet:/usr/ports/lang # ls -l python27 >>> total 196 >>> -rw-r--r-- 1 root wheel 5525 Aug 5 14:10 Makefile >>> -rw-r--r-- 1 root wheel 197 Aug 5 14:10 Makefile.version >>> -rw-r--r-- 1 root wheel 173 Aug 5 14:10 distinfo >>> drwxr-xr-x 2 root wheel 1024 Aug 5 14:10 files >>> -rw-r--r-- 1 root wheel 109 Aug 5 14:10 pkg-descr >>> -rw-r--r-- 1 root wheel 324 Aug 5 14:10 pkg-message >>> -rw-r--r-- 1 root wheel 170771 Aug 5 14:10 pkg-plist >>> root@jet:/usr/ports/lang # ls -l python27/files/ >>> total 48 >>> -rw-r--r-- 1 root wheel 569 Aug 5 14:10 = patch-Doc__library__fcntl.rst >>> -rw-r--r-- 1 root wheel 643 Aug 5 14:10 = patch-Lib_distutils_command_build__scripts.py >>> -rw-r--r-- 1 root wheel 1357 Aug 5 14:10 = patch-Lib_distutils_command_install__lib.py >>> -rw-r--r-- 1 root wheel 1246 Aug 5 14:10 = patch-Lib_distutils_tests_test__install__lib.py >>> -rw-r--r-- 1 root wheel 771 Aug 5 14:10 patch-Makefile.pre.in >>> -rw-r--r-- 1 root wheel 776 Aug 5 14:10 = patch-Misc_python-config.in >>> -rw-r--r-- 1 root wheel 1162 Aug 5 14:10 = patch-Modules___ctypes__libffi__src__arm__ffi.c >>> -rw-r--r-- 1 root wheel 719 Aug 5 14:10 = patch-Modules___hashopenssl.c >>> -rw-r--r-- 1 root wheel 2281 Aug 5 14:10 = patch-Modules__fcntlmodule.c >>> -rw-r--r-- 1 root wheel 785 Aug 5 14:10 = patch-Modules_posixmodule.c >>> -rw-r--r-- 1 root wheel 2320 Aug 5 14:10 patch-pr192365 >>> -rw-r--r-- 1 root wheel 3742 Aug 5 14:10 patch-setup.py >>>=20 >>> More I can't do. >>>=20 >>> matthias >>>=20 >>>>> On Aug 9, 2023, at 2:30 PM, Moin Rahman > wrote: >>>>>=20 >>>>> Hi Matthias, >>>>>=20 >>>>> I will need some time to check this. My box has not yet been = updated to 1400094. I am still running 1400093 and I can confirm that it = builds fine on 1400093. So I will need to dig deeper but this will not = take place until my current build finishes within a day or two. >>>>>=20 >>>>> Kind regards, >>>>> Moin >>>>>=20 >>>>>=20 >>>>>> On Aug 9, 2023, at 1:30 PM, Matthias Apitz = wrote: >>>>>>=20 >>>>>>=20 >>>>>> Hello, >>>>>>=20 >>>>>> The port lang/python27 does not build in 14.0-CURRENT w/ = poudriere. >>>>>>=20 >>>>>> =3D>> Building lang/python27 >>>>>> build started at Tue Aug 8 04:05:20 CEST 2023 >>>>>> port directory: /usr/ports/lang/python27 >>>>>> package name: python27-2.7.18_2 >>>>>> building for: FreeBSD 140-CURRENT-ports20230806-job-04 = 14.0-CURRENT FreeBSD 14.0-CURRENT 1400094 amd64 >>>>>> maintained by: python@FreeBSD.org >>>>>> Makefile datestamp: -rw-r--r-- 1 root wheel 5525 Aug 6 17:51 = /usr/ports/lang/python27/Makefile >>>>>> Ports top last git commit: 5914253c5 >>>>>> Ports top unclean checkout: no >>>>>> Port dir last git commit: c84214246 >>>>>> Port dir unclean checkout: no >>>>>> Poudriere version: poudriere-git-3.3.99.20220831 >>>>>> Host OSVERSION: 1400094 >>>>>> Jail OSVERSION: 1400094 >>>>>>=20 >>>>>> ... >>>>>>=20 >>>>>> 1 warning generated. >>>>>> warning: openssl 0x00000000 is too old for _hashlib >>>>>> building dbm using ndbm >>>>>>=20 >>>>>> Python build finished, but the necessary bits to build these = modules were not found: >>>>>> _bsddb _hashlib _sqlite3 >>>>>> _tkinter dl gdbm >>>>>> imageop linuxaudiodev spwd >>>>>> sunaudiodev >>>>>> To find the necessary bits, look in setup.py in detect_modules() = for the module's name. >>>>>>=20 >>>>>> ... >>>>>>=20 >>>>>> and at the end in stage package it is missing _hashlib.so: >>>>>>=20 >>>>>> =3D=3D=3D> Building package for python27-2.7.18_2 >>>>>> pkg-static: Unable to access file = /wrkdirs/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dy= nload/_hashlib.so:No such file or directory >>>>>> *** Error code 1 >>>>>>=20 >>>>>> Stop. >>>>>> make: stopped in /usr/ports/lang/python27 >>>>>>=20 >>>>>> The full log is at: http://www.unixarea.de/python27-2.7.18_2.log >>>>>>=20 >>>>>> Thanks >>>>>>=20 >>>>>> matthias >>>>>>=20 >>>>>>=20 >>>>>> --=20 >>>>>> Matthias Apitz, =E2=9C=89 guru@unixarea.de = , http://www.unixarea.de/+49-176-38902045 >>>>>> Public GnuPG key: http://www.unixarea.de/key.pub >>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>> --=20 >>> Matthias Apitz, =E2=9C=89 guru@unixarea.de = , http://www.unixarea.de/ +49-176-38902045 >>> Public GnuPG key: http://www.unixarea.de/key.pub >>>=20 >>> NATO must not win the war against Russia. >>> Die NATO darf den Krieg gegen Russland nicht gewinnen! >>=20 >=20 > --=20 > Matthias Apitz, =E2=9C=89 guru@unixarea.de , = http://www.unixarea.de/ +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub >=20 > NATO must not win the war against Russia. > Die NATO darf den Krieg gegen Russland nicht gewinnen! --Apple-Mail=_E859EA4B-3879-4560-9CBA-E84EBEB34361 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 This perfectly = builds on the latest HEAD without any problem as shared in my build log. = I am not sure what is wrong at your end. Neither can I see any fallout = on the clusters.

Kind = regards,
Moin

On = Aug 9, 2023, at 6:01 PM, Matthias Apitz <guru@unixarea.de> = wrote:

El d=C3=ADa mi=C3=A9rcoles= , agosto 09, 2023 a las 04:35:29 +0200, Moin Rahman escribi=C3=B3:<= br style=3D"caret-color: rgb(0, 0, 0); font-family: FiraCodeNFM-Reg; = font-size: 11px; font-style: normal; font-variant-caps: normal; = font-weight: 400; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: = none;">
My commit didn't add any new files but just = changed the Makefile. Can you do:

grep 000000 Makefile and see = what is the result.

You should get something like = this:
       @${REINPLACE_CMD} -e = 's|00907000|00000000|' \

If not then there is something else in = the play.

# grep = 000000 Makefile
# = openssl/opensslv.h so setup.py just detects the string as = 00000000
       @${REINPLACE_CMD} = -e 's|00907000|00000000|' \

This = explains why in the log of the build the OpenSSL version is = seen
as:

...
running build
running = build_ext
warning: openssl = 0x00000000 is too old for _hashlib
building dbm using ndbm
...

Maybe = you want to think about this 'is too old'....

matthias

On Aug 9, 2023, at = 4:07 PM, Matthias Apitz <guru@unixarea.de> = wrote:

El d=C3=ADa mi=C3=A9rcoles, agosto 09, 2023 a las 03:55:40 = +0200, Moin Rahman escribi=C3=B3:

I = just ran a new testport and it looks to build fine with = src@b8b33f3b3b 

https://pkg.bofh.network/data/MAIN-default/2023-= 08-09_15h45m49s/logs/python27-2.7.18_2.log

And from what it = looks like that you might have some local python27 patch which might = have removed my last commit or there is a mid air collision. See my = stupid hacky commits here:

https://cgit.freebsd.org/ports/commit/?id=3Da5b3714057= 750ecbb8db8912edf5c481ff46ef2b

https://cgit.freebsd.org/ports/commit/?id=3D23105bfd55= 91bed1c24b6a8524a0f274a5977a94

I did a git pull = and have these files only from your = port:

root@jet:/usr/ports/lang # ls -l python27
total = 196
-rw-r--r--  1 root wheel   5525 Aug  5 14:10 = Makefile
-rw-r--r--  1 root wheel    197 Aug =  5 14:10 Makefile.version
-rw-r--r--  1 root wheel =    173 Aug  5 14:10 distinfo
drwxr-xr-x  2 = root wheel   1024 Aug  5 14:10 files
-rw-r--r-- =  1 root wheel    109 Aug  5 14:10 = pkg-descr
-rw-r--r--  1 root wheel    324 Aug =  5 14:10 pkg-message
-rw-r--r--  1 root wheel 170771 Aug =  5 14:10 pkg-plist
root@jet:/usr/ports/lang # ls -l = python27/files/
total 48
-rw-r--r--  1 root wheel  569 = Aug  5 14:10 patch-Doc__library__fcntl.rst
-rw-r--r--  1 = root wheel  643 Aug  5 14:10 = patch-Lib_distutils_command_build__scripts.py
-rw-r--r--  1 root = wheel 1357 Aug  5 14:10 = patch-Lib_distutils_command_install__lib.py
-rw-r--r--  1 root = wheel 1246 Aug  5 14:10 = patch-Lib_distutils_tests_test__install__lib.py
-rw-r--r--  1 = root wheel  771 Aug  5 14:10 = patch-Makefile.pre.in
-rw-r--r--  1 root wheel  776 Aug =  5 14:10 patch-Misc_python-config.in
-rw-r--r--  1 root = wheel 1162 Aug  5 14:10 = patch-Modules___ctypes__libffi__src__arm__ffi.c
-rw-r--r--  1 = root wheel  719 Aug  5 14:10 = patch-Modules___hashopenssl.c
-rw-r--r--  1 root wheel 2281 Aug =  5 14:10 patch-Modules__fcntlmodule.c
-rw-r--r--  1 root = wheel  785 Aug  5 14:10 = patch-Modules_posixmodule.c
-rw-r--r--  1 root wheel 2320 Aug =  5 14:10 patch-pr192365
-rw-r--r--  1 root wheel 3742 Aug =  5 14:10 patch-setup.py

More I can't do.

= matthias

On Aug 9, 2023, at 2:30 PM, Moin Rahman <bofh@freebsd.org<mailto:bofh@freebsd.org>> = wrote:

Hi Matthias,

I will need some time to check this. = My box has not yet been updated to 1400094. I am still running 1400093 = and I can confirm that it builds fine on 1400093. So I will need to dig = deeper but this will not take place until my current build finishes = within a day or two.

Kind regards,
Moin


On Aug 9, 2023, at 1:30 PM, Matthias Apitz = <guru@unixarea.de> wrote:


Hello,

The port = lang/python27 does not build in 14.0-CURRENT w/ = poudriere.

=3D>> Building lang/python27
build started at = Tue Aug  8 04:05:20 CEST 2023
port directory: = /usr/ports/lang/python27
package name: python27-2.7.18_2
building = for: FreeBSD 140-CURRENT-ports20230806-job-04 14.0-CURRENT FreeBSD = 14.0-CURRENT 1400094 amd64
maintained by: = python@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel = 5525 Aug  6 17:51 /usr/ports/lang/python27/Makefile
Ports top = last git commit: 5914253c5
Ports top unclean checkout: no
Port dir = last git commit: c84214246
Port dir unclean checkout: no
Poudriere = version: poudriere-git-3.3.99.20220831
Host OSVERSION: = 1400094
Jail OSVERSION: 1400094

...

1 warning = generated.
warning: openssl 0x00000000 is too old for = _hashlib
building dbm using ndbm

Python build finished, but = the necessary bits to build these modules were not found:
_bsddb =             _h= ashlib =           _sqlite3
_t= kinter           dl =             &n= bsp;   gdbm
imageop =            linuxaud= iodev      spwd
sunaudiodev
To find the = necessary bits, look in setup.py in detect_modules() for the module's = name.

...

and at the end in stage package it is missing = _hashlib.so:

=3D=3D=3D>  Building package for = python27-2.7.18_2
pkg-static: Unable to access file = /wrkdirs/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dy= nload/_hashlib.so:No such file or directory
*** Error code = 1

Stop.
make: stopped in /usr/ports/lang/python27

The = full log is at: = http://www.unixarea.de/python27-2.7.18_2.log

Thanks

= matthias


-- 
Matthias Apitz, = =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/+49-176-389020= 45
Public GnuPG key: http://www.unixarea.de/key.pub=




-- 
Matthias Apitz, = =E2=9C=89 guru@unixarea.de <mailto:guru@unixarea.de>, http://www.unixarea.de/ +49-176-38902045
Public = GnuPG key: http://www.unixarea.de/key.pub=

NATO must not win the war against Russia.
Die NATO darf den = Krieg gegen Russland nicht = gewinnen!


-- 
Matthias Apitz, =E2=9C=89<= span class=3D"Apple-converted-space"> guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

NATO = must not win the war against Russia.
Die = NATO darf den Krieg gegen Russland nicht = gewinnen!

= --Apple-Mail=_E859EA4B-3879-4560-9CBA-E84EBEB34361--