Date: Mon, 27 Jun 2016 14:21:48 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Jan Beich <jbeich@FreeBSD.org> Cc: FreeBSD Ports mailing list <ports@FreeBSD.org> Subject: Re: USE_PACKAGE_DEPENDS_ONLY set - not building missing dependency from source Message-ID: <71d0a76b-8492-c51f-fc55-609afc97c497@FreeBSD.org> In-Reply-To: <lh1q-uzmt-wny@vfemail.net> References: <201606250232.u5P2Wndq091282@beefy5.nyi.freebsd.org> <7fdc-gny4-wny@vfemail.net> <65756e68-af20-5594-e719-4b5a4795b36f@FreeBSD.org> <lh1q-uzmt-wny@vfemail.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6RcTwU9bnpopRdQCLfq3smU51CHoxP2aR Content-Type: multipart/mixed; boundary="6Bpcu1FB6bSskLFcW06lrIwjnbhoXeL75" From: Bryan Drewery <bdrewery@FreeBSD.org> To: Jan Beich <jbeich@FreeBSD.org> Cc: FreeBSD Ports mailing list <ports@FreeBSD.org> Message-ID: <71d0a76b-8492-c51f-fc55-609afc97c497@FreeBSD.org> Subject: Re: USE_PACKAGE_DEPENDS_ONLY set - not building missing dependency from source References: <201606250232.u5P2Wndq091282@beefy5.nyi.freebsd.org> <7fdc-gny4-wny@vfemail.net> <65756e68-af20-5594-e719-4b5a4795b36f@FreeBSD.org> <lh1q-uzmt-wny@vfemail.net> In-Reply-To: <lh1q-uzmt-wny@vfemail.net> --6Bpcu1FB6bSskLFcW06lrIwjnbhoXeL75 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 6/27/2016 1:48 PM, Jan Beich wrote: > Bryan Drewery <bdrewery@FreeBSD.org> writes: >=20 >> On 6/26/16 5:00 AM, Jan Beich wrote: >> >>> pkg-fallout@FreeBSD.org writes: >>> >>>> Ident: $FreeBSD: head/multimedia/vapoursynth/Makefile 415615 >>>> 2016-05-22 01:10:34Z jbeich $ >>>> Log URL: >>>> http://beefy5.nyi.freebsd.org/data/101i386-default/417455/logs/vapou= rsynth-r32.log >>>> Build URL: http://beefy5.nyi.freebsd.org/build.html?mastername=3D= 101i386-default&build=3D417455 >>>> Log: >>>> >>>> build started at Sat Jun 25 02:32:41 UTC 2016 >>> [...] >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= <phase: build-depends >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>> =3D=3D=3D> vapoursynth-r32 depends on executable: sphinx-build - n= ot found >>>> =3D=3D=3D> vapoursynth-r32 depends on package: /packages/All/py34-= sphinx-1.4.4.txz - not found >>>> =3D=3D=3D> USE_PACKAGE_DEPENDS_ONLY set - not building missing dep= endency from source >>>> *** Error code 1 >>> >>> I'm starting to get failures for a port that hasn't changed for a mon= th. >>> Anyone got a clue? The regression appears to be from r417413 which la= nded >>> without an exp-run suggesting any fallout is due to badly written por= ts. >>> >> >> r417413 was the right fix either way as the old code before the >> do-depends.sh conversion was also passing DEPENDS_ARGS: >> >> subpkgfile=3D`(cd $$dir; ${MAKE} $$depends_args -V PKGFILE)`; \ >> >> The problem here is a bug in Poudriere not handling DEPENDS_ARGS >> properly. The port is forcing python3 as the default even though >> packages are built with default 2. Dependencies are only built for >> python2 and this port wants a python3 dependency. >=20 > sphinx-build is called by gmake, not python, so any python version woul= d > work fine. Notice, the dependency line doesn't specify PYTHON_PKGNAMEPR= IFX. >=20 ~/svn/ports/multimedia/vapoursynth # make -V DEPENDS_ARGS PYTHON_VERSION=3Dpython3.4 This means it will force any dependencies of python to build for 3.4. This happens in any direct usage of ports, including portmaster and portupgrade. Poudriere is wrong here to not build a py34-sphynx. If it really doesn't matter what version it is then the dependency could be changed to the specific package name of the default python, but ... PYTHON_USES=3D python:3.3- This line forces vapoursynth to be built for 3.4. Removing the :3.3- fixes the problem: ~/svn/ports/multimedia/vapoursynth # make -V DEPENDS_ARGS PYTHON_VERSION=3Dpython2.7 >> It's covered in >> https://github.com/freebsd/poudriere/issues/259. I've been working on= a >> fix lately and am close to having it complete, which is why I did >> r417413, because the framework was doing the wrong thing. >=20 > I don't see how that issue would help here. It helps because you need to understand the DEPENDS_ARGS feature to understand what's going on here. It's quite an old feature that poudriere has failed to support, which causes these USE_PACKAGE_DEPENDS_ONLY failures. Note again that the fix I made in r417413 was fixing a regression from when the dependency handling in Mk/bsd.port.mk was moved to Mk/Scripts/do-depends.sh. >=20 > py27-sphinx, py34-sphinx, etc. cannot be installed at the same time due= > to a conflict in bin/sphinx-*. If something else installed the port Right, nothing I'm working on allows installing multiple versions of the same package at the same time. I am fixing Poudriere to build multiple versions of dependencies in its queue, rather then only building the python2.7 version of dependencies and thus hitting the problem you mailed about. > using different python version vapoursynth would fail to build due to > unsatisfied dependencies. >=20 --=20 Regards, Bryan Drewery --6Bpcu1FB6bSskLFcW06lrIwjnbhoXeL75-- --6RcTwU9bnpopRdQCLfq3smU51CHoxP2aR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXcZkTAAoJEDXXcbtuRpfPUOAIAM/0lf7eA2Ourk+0FJoeFI1Z gQVGBKhaBmo2oqyhC0sFi1D1jTgmiXMIleeKzMVgwe9RVypokMPDjb/voI0h2xY/ sqGWZdGZU7KEDsjTIXWkrgvBuz1SnbXLr22SiLjzbavGUTmv5fZvYAlbWv5w2R0X 93UNFLk7DMgNUkOT/8bFep93MDeqr7h0OSkyaZ6sHlENC6w4O7RVdRMuAV5fLC++ tIUhKouhb1oMWoRdsD0CYRUzU0p0UdcWQ27wxEw2UrIN8tT9Em7Qp5epLaQD5P4w wyiTD3ijLEbBt3krXtVOvZtg/nSMAvFGGIXtd379UK9ZtEg8Jt18ZVkaGTSPSqY= =bzkt -----END PGP SIGNATURE----- --6RcTwU9bnpopRdQCLfq3smU51CHoxP2aR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71d0a76b-8492-c51f-fc55-609afc97c497>