Subject: Duplicate entries when showing dependance
To: None <tech-pkg@netbsd.org>
From: Arnaud Lacombe <lacombar@gmail.com>
List: tech-pkg
Date: 10/15/2007 15:19:20
Hi,
I played this afternoon with pkgsrc and found that the result of a
'make show-depends' would returns duplicate entries. Here is an example
for 'meta-pkgs/modular-xorg':
meta-pkgs/modular-xorg-fonts/% make show-depends
font-adobe-100dpi-[0-9]*:../../fonts/font-adobe-100dpi
font-adobe-100dpi-[0-9]*:../../fonts/font-adobe-100dpi
font-adobe-75dpi-[0-9]*:../../fonts/font-adobe-75dpi
font-adobe-75dpi-[0-9]*:../../fonts/font-adobe-75dpi
font-adobe-utopia-100dpi-[0-9]*:../../fonts/font-adobe-utopia-100dpi
font-adobe-utopia-100dpi-[0-9]*:../../fonts/font-adobe-utopia-100dpi
[...]
However, the ${DEPENDS} variable contains each one only once:
meta-pkgs/modular-xorg-fonts/% make show-var VARNAME=DEPENDS
font-adobe-100dpi-[0-9]*:../../fonts/font-adobe-100dpi
font-adobe-75dpi-[0-9]*:../../fonts/font-adobe-75dpi
font-adobe-utopia-100dpi-[0-9]*:../../fonts/font-adobe-utopia-100dpi
It doesn't seem to happen if the version of a package's dependances is
specified, cf 'meta-pkgs/pkg_developer'
meta-pkgs/pkg_developer/% make show-depends
checkperms>=1.0:../../sysutils/checkperms
createbuildlink>=3.13:../../pkgtools/createbuildlink
digest>=20060302:../../pkgtools/digest
pkg_chk>=1.77:../../pkgtools/pkg_chk
pkg_tarup>=1.6.5:../../pkgtools/pkg_tarup
pkgdiff>=0.119:../../pkgtools/pkgdiff
[...]
As it also happens with -current make(1) from march, I don't think it
has anything to do with recent change in it.
Should I PR this ?
Thanks in advance,
- Arnaud
ps: could you CC: me on reply, I'm not on this list (yet), thanks