Subject: make show-depends not quite right?
To: None <tech-pkg@netbsd.org>
From: Greg Troxel <gdt@ir.bbn.com>
List: tech-pkg
Date: 12/11/2006 16:38:22
I recently updated proj not to use a zipped distfile, and now it
doesn't need unzip. But 'make show-depends' appears to show only
run depends, not build depends.
fnord gdt 2 /usr/pkgsrc/misc/proj > make show-depends
fnord gdt 3 /usr/pkgsrc/misc/proj > make clean-depends
===> Cleaning for gmake-3.81
===> Cleaning for libtool-base-1.5.22nb3
===> Cleaning for digest-20060826
But the pkgsrc.se site shows the build depends:
http://pkgsrc.se/misc/proj
Is this reasonable to add:
--- depends.mk.~1.16.~ 2006-11-27 08:58:54.000000000 -0500
+++ depends.mk 2006-12-11 16:35:33.000000000 -0500
@@ -22,6 +22,11 @@
DEPENDS|*) ${_REDUCE_DEPENDS_CMD} ${DEPENDS:Q} ;; \
esac
+.PHONY: show-build-depends
+show-build-depends:
+ @${_REDUCE_DEPENDS_CMD} ${BUILD_DEPENDS:Q}
+ @${_REDUCE_DEPENDS_CMD} ${DEPENDS:Q}
+
######################################################################
### depends-cookie (PRIVATE, pkgsrc/mk/depends/bsd.depends.mk)
######################################################################
Probably pkg_rolling-replace should then use this. Perhaps
show-depends should be renamed to show-run-depends, with show-depends
showing the full list. But that's a scarier cha
nge.