Date: Mon, 10 Sep 2018 07:11:48 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Subject: Re: poudriere, FLAVOR and rebuilding for python3.6 Message-ID: <7d98555c-14bb-ddf2-09fd-045fff1d4a45@FreeBSD.org> In-Reply-To: <4ad9fa73-aa42-5cff-2f0c-26f27a0873e5@darco.dk> References: <4ad9fa73-aa42-5cff-2f0c-26f27a0873e5@darco.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HfW71jXeQ8D8bjpHDJHsULUo76BEW1sSb Content-Type: multipart/mixed; boundary="yL6RTuiDiEZjcMh0aFZSq6dzGOwr32Rhq"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-ports@freebsd.org Message-ID: <7d98555c-14bb-ddf2-09fd-045fff1d4a45@FreeBSD.org> Subject: Re: poudriere, FLAVOR and rebuilding for python3.6 References: <4ad9fa73-aa42-5cff-2f0c-26f27a0873e5@darco.dk> In-Reply-To: <4ad9fa73-aa42-5cff-2f0c-26f27a0873e5@darco.dk> --yL6RTuiDiEZjcMh0aFZSq6dzGOwr32Rhq Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 09/09/2018 19:34, Bjarne wrote: >=20 > I have been using python 2.7 so far for all ports, which means all > python packages=C2=A0 are built as py27-something. These python package= s are > all automaticcaly build as dependencies from other packages, for exampl= e > like py27-dnspython which is a requirement of mailman. >=20 > Now I am trying to change to python36, but can't get the py36 packages > to build. In the transition period,=C2=A0 I would like to simultaneousl= y have: > py27-something > py36-something >=20 >=20 > In make.conf for the jail I set: > DEFAULT_VERSIONS+=3D python=3D3.6 python=3D2.7 This does not do what you're expecting, and will be equivalent to just 'python=3D2.7' > I would expect a new "poudriere bulk" command would build all > py36-something for me, but no, got nothing. > No packages where build. >=20 >=20 > I added the follwing to=C2=A0 poudriere.conf: > FLAVOR_DEFAULT_ALL=3Dyes > Still without any luck. >=20 > I can of course specify that I want to build for example dnspython and > then poudriere builds py36-dnspython, but that means I will have to go > through all dependencies by hand. >=20 > So what am I supposed to do. OK, there are two ways of handling this. Firstly you can specify a package as: some/port@all in the list of packages you feed to poudriere. I think you can use that on a package which is not itself flavoured, and the effect is inherited by flavoured dependencies, but you'll need to experiment. If you do this explicitly for python ports it will result in building both python-2.7 and python-3.6 versions. Secondly you can build your packages with one default setting, and then do an incremental bulk using the other default setting, which should result in you ending up with both flavours in your repository. Something like: # echo 'DEFAULT_VERSIONS+=3D python=3D3.6' > /usr/local/etc/poudriere.d/python36-make.conf # poudriere bulk -c -f /usr/local/etc/poudriere.d/my-ports # poudriere bulk -z python36 -f /usr/local/etc/poudriere.d/my-ports It is, quite feasible to have simultaneous parallel installs of python-2.7 and python-3.6 -- the DEFAULT_VERSIONS make.conf setting will affect which version you get by typing plain 'python' by controlling how various symbolic links are created. Note that the version of any flavoured dependencies will be baked into unflavoured packages, and it's the last built that will appear in your repository. However, your example of trying to treat the mail/mailman port in this way is unfortunately doomed to failure, as mailman is specifically restricted to python-2.7 only. Cheers, Matthew --yL6RTuiDiEZjcMh0aFZSq6dzGOwr32Rhq-- --HfW71jXeQ8D8bjpHDJHsULUo76BEW1sSb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAluWCyVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5 RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp 5OfUXBAAgvPfgtbPYXUHilyuK0ngzWA8fhJwW+ELvzmwXAU6vrRybMgpnhV5Lv3l cLs1W4DTxnAWZ3HBviNgr/xNcfREWG0ZQ6WZbvbJO5vhUGrBFlYORcurjaKNphMC g7vGacTG+ZeiXYhStT8BaaHn19a8UAqwxvaiwFhekO2E+Om5Yoz0/iS1ge1vuHhf zcOOz8az6pI1jFUREPSuzZVj19D4rJNh0kuoX94NJpK30aNb0PH9aFEkqacW0tb2 fgK2pWPllBewLvZdKsO43L5Do1UDgfltWjIio9zxme9ZJMjZJCuW7BYkEXeR6EGR jQCElxjQuu/+l+uCCIvcueUiO8iIovGypoeHGsEZs+Vi2Pxi5JOQSTbWQ4rYAzMt eiPHieoYIR3mhu90uWCsiBuVOCM64F5yQS8epwyUCVbjB38voD8t0Ws5FO6ReYYj hOkXDhnDWjkx5hP5woRqPr5ax8Y8cwOGbUoi3jNGxCPCnXAkyeVjDwMajGD8OO6z qwjSrLx0GdugrYVNj9hLfluEmJ+dmt/EUwujyq9515U9GG5sLjEGYt8/YrVDN8uU LE62hlgtWG6ugCCbUYrImVsJ4r23bai9go8jkFTZrTeg++5MAZWBVCe+tvvCp87d HLXYVy0vBxxlwlui2311Kk6RW0anA5JHsS0nOeSUx6yQf0tQ3k8= =bsHJ -----END PGP SIGNATURE----- --HfW71jXeQ8D8bjpHDJHsULUo76BEW1sSb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d98555c-14bb-ddf2-09fd-045fff1d4a45>