Package: dpkg-dev Version: 1.10.28 Severity: minor
dpkg-source -b fails with message "cannot write package-version.diff.gz: Permission denined" in the situation where package source was installed using apt-get source package from locally mounted repository, which is not writable for current user. Even worse, if repository is writable for current user, it would silently overwrite diff.gz and dsc files in the repository. Problem is that apt-get source creates symbolic links for orig.tar.gz, diff.gz and dsc files in current directory when installing source package from local repository. So, if one uses apt-get source package cd package-version debuild to rebuild this package, dpkg-source would either fail with permission denied, or silently overwrite files in the repository. Problem can be avoided by incrementing Debian version number for package, but it can be not desirable, for instance, when one want to backport package from testing or unstable into stable distribution. In this case incrementing Debian package version can break future upgrade to next distribution. Problem can be easily fixed if dpkg-source -b would first unlink old diff.gz and dsc files, if they existm, and then write to them. Thus symlinks in user-writable directory would be removed and original files in repository left intact. -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.4.27-p3 Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R) Versions of packages dpkg-dev depends on: ii binutils 2.15-6 The GNU assembler, linker and bina ii cpio 2.5-1.3 GNU cpio -- a program to manage ar ii make 3.80-9 The GNU version of the "make" util ii patch 2.5.9-2 Apply a diff file to an original ii perl [perl5] 5.8.4-8 Larry Wall's Practical Extraction ii perl-modules 5.8.4-8 Core Perl modules -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]