[Buildroot] Bug in pkg-stats?

Peter Korsgaard jacmet at uclibc.org
Wed Oct 5 19:08:07 UTC 2011

>>>>> "H" == H Hartley Sweeten <hartleys at visionengravers.com> writes:


 >> version=$(awk -F'=| ' '/_VERSION/ { print $NF } END { print "unknown" } ' \
 >> $i | head -n 1)

 H> I thought there was some way of doing it with awk... I really need to figure
 H> out how that utility works... ;-)

;) It takes a bit of getting used to, but is quite powerful once you get it.

 >> But it naturally still doesn't work for packages with multiple versions
 >> (like busybox) or where version is major.minor (like glib2).

 H> With your awk line above, the only packages that show up strange are:

 H> xenomai		qstrip,$(BR2_PACKAGE_XENOMAI_VERSION))
 H> imagemagick		$(IMAGEMAGICK_MAJOR)-6
 H> binutils		qstrip,$(BR2_BINUTILS_VERSION))
 H> microperl		$(MICROPERL_MAJ).8.8
 H> haserl		qstrip,$(BR2_PACKAGE_HASERL_VERSION))

 H> And, of course, the ones with version major.minor only show the major version.

 H> Regardless, do you think this patch is worth submitting?

Well, I think the info in useful, but as buildroot already knows the
version (except for unconfigured packages), wouldn't it make more sense
to add a <pkg>-version target to GENTARGETS and use that instead?

Bye, Peter Korsgaard

More information about the buildroot mailing list