Subject: Re: empty +SIZE_* files and dc: stack empty
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/21/2003 17:49:20
Maybe problem found ... see below.
On Tue, 21 Oct 2003, Jeremy C. Reed wrote:
> Maybe better examples:
>
> rainier:/usr/pkgsrc/fonts/fontconfig$ /usr/sbin/pkg_admin -K /var/db/pkg -b -d /var/db/pkg -s "" lsbest fontconfig
This does work. I forgot that it also needs a version range.
> And no dc problem and now it works.
But when I do it from a package that depends on it, it doesn't work.
For example, I removed fontconfig. I did a "make buildlink" in XFree86-lib
which built and installed fontconfig.
+ size_this=
++ bmake -D FORCE_PKG_REGISTER -D FORCE_PKG_REGISTER -D FORCE_PKG_REGISTER
-D FORCE_PKG_REGISTER -D FORCE_PKG_REGISTER -D FORCE_PKG_REGISTER -D
FORCE_PKG_REGISTER -D FORCE_PKG_REGISTER BUILDLINK_PREFIX.expat=/usr
BUILDLINK_PREFIX.freetype2=/usr BUILDLINK_PREFIX.zlib=/usr DEPENDS_TARGET=reinstall
DIGEST=/usr/bin/digest
DIGEST_VERSION=20021220 FORCE_PKG_REGISTER=1 LOWER_OPSYS=linux
OBJHOSTNAME=yes OPSYS=Linux OS_VERSION=2.4.20 'PKGNAME_REQD=fontconfig\'
PKGTOOLS_VERSION=20030923 PKG_DEBUG_LEVEL=4 _HOSTNAME=k3.reedmedia.net '_PKGSRC_DEPS=,
XFree86-libs-4.3.0' OPSYS=Linux OS_VERSION=2.4.20 LOWER_OPSYS=linux OBJHOSTNAME=yes
print-pkg-size-depends
+ size_depends=
+ /bin/echo
+ /bin/echo + p
+ /usr/bin/dc
dc: stack empty
dc: stack empty
When doing in in same directory (so not a dependency):
++ bmake -D FORCE_PKG_REGISTER -D FORCE_PKG_REGISTER
BUILDLINK_PREFIX.expat=/usr
BUILDLINK_PREFIX.freetype2=/usr BUILDLINK_PREFIX.zlib=/usr
DIGEST=/usr/bin/digest DIGEST_VERSION=20021220 FORCE_PKG_REGISTER=1 LOWER_OPSYS=linux
OBJHOSTNAME=yes OPSYS=Linux OS_VERSION=2.4.20 PKGTOOLS_VERSION=20030923
PKG_DEBUG_LEVEL=4 _HOSTNAME=k3.reedmedia.net OPSYS=Linux OS_VERSION=2.4.20 LOWER_OPSYS=linux
OBJHOSTNAME=yes print-pkg-size-this
+ size_this=1039787
++ bmake -D FORCE_PKG_REGISTER -D FORCE_PKG_REGISTER
BUILDLINK_PREFIX.expat=/usr
BUILDLINK_PREFIX.freetype2=/usr BUILDLINK_PREFIX.zlib=/usr
DIGEST=/usr/bin/digest DIGEST_VERSION=20021220 FORCE_PKG_REGISTER=1 LOWER_OPSYS=linux
OBJHOSTNAME=yes OPSYS=Linux OS_VERSION=2.4.20 PKGTOOLS_VERSION=20030923
PKG_DEBUG_LEVEL=4 _HOSTNAME=k3.reedmedia.net OPSYS=Linux OS_VERSION=2.4.20 LOWER_OPSYS=linux
OBJHOSTNAME=yes print-pkg-size-depends
+ size_depends=167857
+ /bin/echo 1039787
+ /bin/echo 1039787 167857 + p
+ /usr/bin/dc
My pkgsrc/fonts/fontconfig directory had:
-rw-r--r-- 1 reed reed 0 Oct 21 16:55 =1.1.4nb1
... That is zlib's version.
-rw-r--r-- 1 root root 46 Oct 21 16:54 =2.1nb1
... That is the required version of fotnconfig needed.
-rw-r--r-- 1 root root 46 Oct 21 16:11 =4.3.0
... That is imake's version.
I removed them and then it had:
-rw-r--r-- 1 root root 46 Oct 21 17:05 =2.1nb1
reed@k3:/usr/pkgsrc/fonts/fontconfig$ cat =2.1nb1
zlib>=1.1.4nb1
freetype2>=2.1.3
expat>=1.95.4
And the expat directory also had:
-rw-r--r-- 1 root root 0 Oct 21 16:09 =2.1nb1
And the graphics/freetype2 contained:
-rw-r--r-- 1 root root 15 Oct 21 16:07 =2.1nb1
reed@k3:/usr/pkgsrc/wip/XFree86-libs$ bmake run-depends-list
PACKAGE_DEPENDS_QUICK=true | xargs -n 1 /usr/sbin/pkg_admin -K /var/db/pkg
-b -d /var/db/pkg -S lsbest | sort -u | xargs -n 256 pkg_info -qs
... outputed a few blank lines because +SIZE files were blank ...
Anyways, I think that some escaping is done wrong (for PKGNAME_REQD) so it
creates files.
Jeremy C. Reed
http://bsd.reedmedia.net/