I just took a pdebuil/pbuilder example configuration from Ubuntu that caters to
most of the distributions. I am attaching the config also.
The config, when used with cowbuilder, resolves the variable names correctly but when
used with pdebuild fails. I am not very sure if it is a bug or not.
I have done all the check I could think of but can not find a reason why this error is
happening.
In pdebuild:
dpkg-buildpackage: source only, diff-only upload (original source NOT included)
-> Copying COW directory
forking: rm -rf "/tmp/cowbuilder/build/"/cow.20641
forking: cp -al "/var/cache/pbuilder/$NAME-base.cow/" "/tmp/cowbuilder/build/"/cow.20641
cp: cannot stat `"/var/cache/pbuilder/$NAME-base.cow/"': No such file or directory
Failed cowcopy.
Where as in cowbuilder:
-> Copying COW directory
forking: rm -rf /tmp/cowbuilder/build//cow.16346
forking: cp -al /var/cache/pbuilder/lenny-amd64-base.cow/ /tmp/cowbuilder/build//cow.16346
I: removed stale ilistfile /tmp/cowbuilder/build//cow.16346/.ilist
-> Invoking pbuilder
forking: pbuilder login --buildplace /tmp/cowbuilder/build//cow.16346 --no-targz --internal-chrootexec chroot /tmp/cowbuilder/build//cow.16346 cow-shell
All I can make out is that when dpkg-buildpackage calls it, it is not able to resolve $NAME where as when cowbuilder calls it, it is able to resolve $NAME properly. Thus I think that it might be a pbuilder/dpkg-buildpackage bug. maybe.
I am attaching the full logs and the pbuilderrc file
Regards,
Ritesh