Subject: Re: choosing between dependencies
To: NetBSD Packages Technical Discussion List <tech-pkg@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 08/11/2006 13:22:32
--pgp-sign-Multipart_Fri_Aug_11_13:22:30_2006-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

At Tue, 08 Aug 2006 15:16:44 -0400,
Johnny Lam wrote:
>=20
> Klaus Heinz wrote:
> > OBATA Akio wrote:
> >=20
> >> USE_TOOLS+=3D gs:run
> >=20
> > How can this work without support for gs as a TOOL in mk/tools/* ?
>=20
> It's there in mk/tools/replace.mk if you grep for _TOOLS.ghostscript.
> That lists all of the ghostscript-provided tools understood by the tools
>   framework.

(that ugly gs vs. ghostscript naming confusion shows up yet again :-))

Please excuse my ignorance of more recent pkgsrc developments (I'm still
in the progress of migrating my users from 2004Q4 to 2005Q4 :-)), but
does this mechanism now also deal with build-time dependencies for the
likes of games/pysol which wants py22-Tk but py23-Tk is installed (at
least in 2005Q4).  If I'm not mistaken it was impossible to have
multiple versions of py-Tk installed at the same time, even if one does
some fancy footwork to try to end up that way.

Here are my comments and minor change revealing the problem:

Index: Makefile
=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=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=3D=3D=3D=3D=3D
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/games/pysol/Makefile,v
retrieving revision 1.22
diff -u -c -r1.22 Makefile
cvs diff: conflicting specifications of output style
*** Makefile	16 Jun 2005 06:57:55 -0000	1.22
--- Makefile	30 Jun 2006 18:57:30 -0000
***************
*** 15,20 ****
--- 15,41 ----
  NO_BUILD=3D	yes
  PLIST_SRC=3D	${WRKDIR}/PLIST.src
 =20
+ # XXX GRRR!!!!  this thing needs py22-Tk or earlier, but because py-Tk
+ # isn't properly versioned it's impossible to get the dependencies
+ # right!  See how it chooses to build py23-TK again (even though that
+ # version is already installed!) when it wants py22-Tk:
+ #
+ # =3D=3D=3D> Checking for vulnerabilities in pysol-4.81nb1
+ # =3D> Checksum SHA1 OK for pysol-4.81.tar.bz2.
+ # =3D> Checksum RMD160 OK for pysol-4.81.tar.bz2.
+ # =3D> Checksum SHA1 OK for pysol-cardsets-4.40.tar.bz2.
+ # =3D> Checksum RMD160 OK for pysol-cardsets-4.40.tar.bz2.
+ # =3D=3D=3D> Extracting for pysol-4.81nb1
+ # =3D=3D=3D> Required build-only package x11-links-0.26 installed OK (nee=
d x11-links>=3D0.25)
+ # =3D=3D=3D> Required build-only package python22-2.2.3nb7 installed OK (=
need python22>=3D2.2)
+ # =3D=3D=3D> Required build-only package NOT found: py22-Tk-[0-9]*
+ # =3D=3D=3D> Attempting 'update' for py22-Tk-[0-9]* in ../../x11/py-Tk
+ # =3D=3D=3D> WARNING!!!  Starting with unclean work directory for update
+ # work -> /var/package-obj/x11/py-Tk/work
+ # =3D=3D=3D> Checking for vulnerabilities in py23-Tk-0nb3
+ =20
+ PYTHON_VERSIONS_ACCEPTED=3D	22 21 20 16 15
+=20
  CARDSETS=3D	pysol-cardsets-4.40
 =20
  INSTALLATION_DIRS=3D	bin man/man6


--=20
						Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>       Secrets of the Weird <woods@weird.com>

--pgp-sign-Multipart_Fri_Aug_11_13:22:30_2006-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: hRQHDxhhS3RjCcokCeO762Kw1n8s9B90

iQA/AwUBRNy82GJ7XxTCWceFEQINzQCg/Z7uRHZAS9SspGjltOsJMsQbifIAniDY
mfqia4A0xuGECcK7wE1wfkIf
=p2GU
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Fri_Aug_11_13:22:30_2006-1--