Subject: pkg_info broken for meta-pkgs
To: None <>
From: Gavan Fantom <>
List: tech-pkg
Date: 08/05/2004 11:41:58

Witness the following:

bash-2.05b# pkg_info /usr/pkgsrc/packages/All/kde-3.2.3.tgz
tar: WARNING! These patterns were not matched:
pkg_info: extract of /usr/pkgsrc/packages/All/kde-3.2.3.tgz failed
pkg_info: error during unpacking, no info for
'/usr/pkgsrc/packages/All/kde-3.2.3.tgz' available

kde-3.2.3.tgz is the KDE meta-pkg. It doesn't have a +MTREE_DIRS file.
pkg_create will rightly not include a +MTREE_DIRS file if one is not
built, yet pkg_info insists on all files being present in order to inspect
a binary package, regardless of what you actually want to inspect in it.

Is pkg_info being too harsh in treating a warning from tar as an error?

The best solution to this would seem to be to teach pkg_info to choose the
files it wishes to extract more carefully, based on the flags given.
Alternatively, should it just extract all files starting with a + sign?

Would somebody more familiar with the pkg_info code care to comment and/or
fix this problem?

Gillette - the best a man can forget