reassign 297855 cdbs tags 297855 patch thanks I've looked into the bug, and it turns out to be a problem in cdbs.
On Thu, Mar 03, 2005 at 01:31:29AM -0800, Daniel Schepler wrote: [...] > tar -C build-tree -xzf drip-0.9.0rc3.tar.gz > touch debian/stamp-drip-0.9.0rc3.tar.gz > if test -e /usr/share/misc/config.guess ; then \ > for i in drip-0.9.0rc3/config.guess ; do \ > cp -f /usr/share/misc/config.guess \ > build-tree/$i ; \ > done ; \ > fi > cp: `/usr/share/misc/config.guess' and > `build-tree/drip-0.9.0rc3/config.guess' are the same file > make: *** [pre-build] Error 1 This happens because drip-0.9.0rc3/config.guess is already a symlink to /usr/share/misc/config.guess (over several stations). So cp fails on it. The problematic code is in cdbs, in tarball.mk(.in). There are several possibilites to fix this problem, eg an if statement using readlink around the cp. I've gone another way and replaced cp -f with cp --remove-destination. Patch is attatched. Cheers, Greek0
diff -Nur cdbs-0.4.27.orig/1/rules/tarball.mk.in cdbs-0.4.27/1/rules/tarball.mk.in --- cdbs-0.4.27.orig/1/rules/tarball.mk.in 2005-03-03 18:49:19.000000000 +0100 +++ cdbs-0.4.27/1/rules/tarball.mk.in 2005-03-03 18:49:42.000000000 +0100 @@ -71,7 +71,7 @@ ifneq (, $(config_guess_tar)) if test -e /usr/share/misc/config.guess ; then \ for i in $(config_guess_tar) ; do \ - cp -f /usr/share/misc/config.guess \ + cp --remove-destination /usr/share/misc/config.guess \ $(_cdbs_tarball_dir)/$$i ; \ done ; \ fi @@ -79,7 +79,7 @@ ifneq (, $(config_sub_tar)) if test -e /usr/share/misc/config.sub ; then \ for i in $(config_sub_tar) ; do \ - cp -f /usr/share/misc/config.sub \ + cp --remove-destination /usr/share/misc/config.sub \ $(_cdbs_tarball_dir)/$$i ; \ done ; \ fi @@ -87,7 +87,7 @@ ifneq (, $(config_rpath_tar)) if test -e /usr/share/gnulib/config/config.rpath ; then \ for i in $(config_rpath_tar) ; do \ - cp -f /usr/share/gnulib/config/config.rpath \ + cp --remove-destination /usr/share/gnulib/config/config.rpath \ $(_cdbs_tarball_dir)/$$i ; \ done ; \ fi Binary files cdbs-0.4.27.orig/1/rules/.tarball.mk.in.swp and cdbs-0.4.27/1/rules/.tarball.mk.in.swp differ