pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

weird error around work/.PLIST* while building in a chroot



Hi,

take:
- a chroot with NetBSD in it
- pkgsrc-2016Q1

try to build any package -> fails at packaging:
--- snip ---
=> Generating post-install file lists
pkg_create: can't stat `/work/pkgtools/digest/work/.destdir/usr/pkg/find:
/work/pkgtools/digest/work/.destdir/usr/pkg/.: No such file or directory'
=> Checking file-check results for digest-20160304
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in
/work/pkgtools/digest/work/.destdir/usr/pkg:
ERROR:         /work/pkgtools/digest/work/.destdir/usr/pkg/find:
/work/pkgtools/digest/work/.destdir/usr/pkg/.: No such file or directory
*** Error code 1
--- snip ---

This is due to all .../work/.PLIST* starting with the
find: /work/pkgtools/digest/work/.destdir/usr/pkg/.: No such file or
directory
line, so it thinks that was an entry that ought to be present.
I'd expect that if PLIST_TYPE was erroneously dynamic, but I do see
the cat /dev/null PLIST in make debug.

do:
make plist-clean
make package
-> success.

The problem is very likely due to the chroot being less than perfect,
but I'm not seeing at present what is causing this, anyone have an idea?

Specifically, make -dx -dl package says:
+ /bin/mkdir -p /work/pkgtools/digest/work
set -e; { /bin/cat /dev/null /tree/pkgsrc/pkgtools/digest/PLIST; true; } > /work/pkgtools/digest/work/.PLIST-1src
+ '[' -f /etc/shrc ']'
+ '.' /etc/shrc
+ export TMPDIR=/tmp
+ set -e
+ /bin/cat /dev/null /tree/pkgsrc/pkgtools/digest/PLIST
+ true

yet /work/pkgtools/digest/work/.PLIST-1src manages to read
--- snip ---
find: /work/pkgtools/digest/work/.destdir/usr/pkg/.: No such file or
directory
@comment $NetBSD: PLIST,v 1.3 2002/12/21 04:06:10 schmonz Exp $
bin/digest
man/man1/digest.1
--- snip ---

I Don't Get It.

regards,
	spz
-- 
spz%serpens.de@localhost (S.P.Zeidler)


Home | Main Index | Thread Index | Old Index