Package: dpkg-dev
Version: 1.14.18
Severity: normal
File: /usr/bin/dpkg-source

I tried using the git format to proove a point and stumbled about
this. The dpkg-source manpage says that "-i" should ignore changes in
the working directory. But it doesn't:

dpkg-source -i -ICVS -b reprepro-3.3.2
dpkg-source: info: using source format `3.0 (git)'
dpkg-source: error: uncommitted, not-ignored changes in working directory: 
debian/changelog main.c
dpkg-buildpackage: failure: dpkg-source -i -ICVS -b reprepro-3.3.2 gave error 
exit status 255
debuild: fatal error at line 1319:
dpkg-buildpackage -rfakeroot -D -us -uc -ICVS -i failed

Further I think the dpkg-buildpackage manpage or the error message
should include that info (-i to ignore changes) more prominently. Like
"debuild" saying to use -d to override build-depends checking.


Last but not least I would suggest that changes are not
ignored. Instead when building source a temporary commit should be
made, packaged and removed from the working directory again.
dpkg-source -x of the packaged files should also remove the temporary
commit. That way there could be no mixups when people accidentally
upload a source with ignored files or delete the working directory in
the knowledge that they still have the git.tar.gz+dsc. But that is
just me. (alternatively something using --amend)

MfG
        Goswin

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.2-mrvn
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg-dev depends on:
ii  binutils            2.18.1~cvs20080103-1 The GNU assembler, linker and bina
ii  bzip2               1.0.5-0.1            high-quality block-sorting file co
ii  cpio                2.9-12               GNU cpio -- a program to manage ar
ii  dpkg                1.14.18              package maintenance system for Deb
ii  libtimedate-perl    1.1600-9             Time and date functions for Perl
ii  lzma                4.43-12              Compression method of 7z format in
ii  make                3.81-3.1             The GNU version of the "make" util
ii  patch               2.5.9-4              Apply a diff file to an original
ii  perl [perl5]        5.8.8-12             Larry Wall's Practical Extraction 
ii  perl-modules        5.8.8-12             Core Perl modules

Versions of packages dpkg-dev recommends:
ii  build-essential               11.3       informational list of build-essent
ii  gcc [c-compiler]              4:4.2.2-2  The GNU C compiler
ii  gcc-3.4 [c-compiler]          3.4.6-6    The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.2-19   The GNU C compiler
ii  gcc-4.2 [c-compiler]          4.2.3-3    The GNU C compiler

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to