Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2019 14:11:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        python@FreeBSD.org
Subject:   [Bug 242896] lang/python*: Fail to package in poudriere (testport) when cross-building
Message-ID:  <bug-242896-21822-Yq3gd6Akra@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-242896-21822@https.bugs.freebsd.org/bugzilla/>
References:  <bug-242896-21822@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242896

Christian Ullrich <chris@chrullrich.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #210252|                            |maintainer-approval?
              Flags|                            |

--- Comment #2 from Christian Ullrich <chris@chrullrich.net> ---
Created attachment 210252
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210252&action=
=3Dedit
Patch.

This patch fixes this bug and two related ones.

Firstly, it recompiles the .pyc files after modifying the .py file. This
applies to lang/python3[578] because lang/python36 already has (most of) it.

Secondly, it adds the missing recompilation with -OO to lang/python36.

Thirdly, it generates correct file names involving ${ABIFLAGS}. There are
several places in post-install where file names are assembled that include =
ABI
flags. Previously, these were fixed as "m" (PYMALLOC enabled) for 3.[67] and
empty for 3.8 (where the "m" flag has been removed upstream). (This only fi=
xes
the clearly somewhat rare case of cross-building 3.[67] with native-xtools =
and
without PYMALLOC.)

Tested lang/python3[5-8] using poudriere bulk -t cross-building to aarch64,
with and without PYMALLOC. Once the packages were successfully built, I
manually checked that the .pycs are newer than the .py and that neither
contains the /nxb-bin prefix.

Tested devel/py-zope.interface@py3[5-8] using poudriere bulk -t cross-build=
ing
to aarch64, with and without PYMALLOC, using BUILD_ALL_PYTHON_FLAVORS. This
port includes a binary extension, for added ABIFLAGS enjoyment. (I noticed =
that
this .so is linked to the respective libpython....so with 3.[567], but not =
with
3.8. It can be imported and calling random functions on it does not crash, =
so I
assume this is by design.)

--=20
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242896-21822-Yq3gd6Akra>