How to remove extra files created when building a package?
Hello,
I am trying to build the thunderbird package with some modifications. I
made the modifications and commited the changes to a local patch, but
then during the build (using `debuild -uc -us`) I ran out of space. I
ran `debuild clean` and then deleted different things on my computer and
then tried to run the build again, but this time it no longer even
starts. It immediately complains about files that were changed.
It prints out the files that are changed and provides a patch file
`/tmp/icedove_45.8.0-3~deb8u1.diff.fG4ELW` and asks if I want to commit
the changes with `dpkg-source --commit`. I don't, however, see any way
to throw away these changes. How do I do this? If I used git, I would do
something like `git stash; git stash drop`. Another approach would be to
apply this patch file in reverse, but I'm not sure how to do that.
How do I revert these changes? Is there no option for this in
`dpkg-source`? I'm posting the entirety of the error printout below.
Thanks for any help.
Also on another note, would this be considered a bug in the debian
packaging? It seems to me really odd that I wouldn't be able to run
`debuild clean; debuild` and have it work again.
Cheers,
Thomas
Here is the error printout:
$ time debuild -uc -us
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package icedove
dpkg-buildpackage: source version 1:45.8.0-3~deb8u1
dpkg-buildpackage: source distribution jessie-security
dpkg-buildpackage: source changed by Guido Günther <agx@sigxcpu.org>
dpkg-source --before-build icedove-45.8.0
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/twn/thunderbird/icedove-45.8.0'
dh_auto_clean --builddirectory=obj-thunderbird
# needed for thunderbird-l10n
rm -rf debian/thunderbird-l10n-build
# needed for lightning-l10n
rm -rf debian/lightning-l10n-build
make[1]: Leaving directory '/home/twn/thunderbird/icedove-45.8.0'
dh_clean
dpkg-source -b icedove-45.8.0
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building icedove using existing
./icedove_45.8.0.orig-icedove-l10n.tar.xz
./icedove_45.8.0.orig-iceowl-l10n.tar.xz ./icedove_45.8.0.orig.tar.xz
dpkg-source: warning: executable mode 0755 of
'build/autoconf/config.guess.dh-orig' will not be represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/build/autoconf/config.guess.dh-orig' will not be represented in
diff
dpkg-source: warning: executable mode 0755 of
'mozilla/build/autoconf/config.sub.dh-orig' will not be represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/ipc/chromium/src/third_party/libevent/config.guess.dh-orig'
will not be represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/ipc/chromium/src/third_party/libevent/config.sub.dh-orig' will
not be represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/js/src/ctypes/libffi/config.guess.dh-orig' will not be
represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/js/src/ctypes/libffi/config.sub.dh-orig' will not be
represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/memory/jemalloc/src/config.guess.dh-orig' will not be
represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/memory/jemalloc/src/config.sub.dh-orig' will not be represented
in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/modules/freetype2/builds/unix/config.guess.dh-orig' will not be
represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/modules/freetype2/builds/unix/config.sub.dh-orig' will not be
represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/nsprpub/build/autoconf/config.guess.dh-orig' will not be
represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/nsprpub/build/autoconf/config.sub.dh-orig' will not be
represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/toolkit/crashreporter/google-breakpad/autotools/config.guess.dh-orig'
will not be represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/toolkit/crashreporter/google-breakpad/autotools/config.sub.dh-orig'
will not be represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/toolkit/crashreporter/google-breakpad/src/third_party/glog/config.guess.dh-orig'
will not be represented in diff
dpkg-source: warning: executable mode 0755 of
'mozilla/toolkit/crashreporter/google-breakpad/src/third_party/glog/config.sub.dh-orig'
will not be represented in diff
dpkg-source: info: local changes detected, the modified files are:
icedove-45.8.0/build/autoconf/config.guess
icedove-45.8.0/build/autoconf/config.guess.dh-orig
icedove-45.8.0/mozconfig.default
icedove-45.8.0/mozconfig.thunderbird
icedove-45.8.0/mozilla/build/autoconf/config.guess
icedove-45.8.0/mozilla/build/autoconf/config.guess.dh-orig
icedove-45.8.0/mozilla/build/autoconf/config.sub
icedove-45.8.0/mozilla/build/autoconf/config.sub.dh-orig
icedove-45.8.0/mozilla/configure
icedove-45.8.0/mozilla/intl/icu/source/config.guess
icedove-45.8.0/mozilla/intl/icu/source/config.guess.dh-orig
icedove-45.8.0/mozilla/intl/icu/source/config.sub
icedove-45.8.0/mozilla/intl/icu/source/config.sub.dh-orig
icedove-45.8.0/mozilla/ipc/chromium/src/third_party/libevent/config.guess
icedove-45.8.0/mozilla/ipc/chromium/src/third_party/libevent/config.guess.dh-orig
icedove-45.8.0/mozilla/ipc/chromium/src/third_party/libevent/config.sub
icedove-45.8.0/mozilla/ipc/chromium/src/third_party/libevent/config.sub.dh-orig
icedove-45.8.0/mozilla/js/src/configure
icedove-45.8.0/mozilla/js/src/ctypes/libffi/config.guess
icedove-45.8.0/mozilla/js/src/ctypes/libffi/config.guess.dh-orig
icedove-45.8.0/mozilla/js/src/ctypes/libffi/config.sub
icedove-45.8.0/mozilla/js/src/ctypes/libffi/config.sub.dh-orig
icedove-45.8.0/mozilla/memory/jemalloc/src/config.guess.dh-orig
icedove-45.8.0/mozilla/memory/jemalloc/src/config.sub
icedove-45.8.0/mozilla/memory/jemalloc/src/config.sub.dh-orig
icedove-45.8.0/mozilla/modules/freetype2/builds/unix/config.guess
icedove-45.8.0/mozilla/modules/freetype2/builds/unix/config.guess.dh-orig
icedove-45.8.0/mozilla/modules/freetype2/builds/unix/config.sub
icedove-45.8.0/mozilla/modules/freetype2/builds/unix/config.sub.dh-orig
icedove-45.8.0/mozilla/mozconfig.default
icedove-45.8.0/mozilla/nsprpub/build/autoconf/config.guess
icedove-45.8.0/mozilla/nsprpub/build/autoconf/config.guess.dh-orig
icedove-45.8.0/mozilla/nsprpub/build/autoconf/config.sub
icedove-45.8.0/mozilla/nsprpub/build/autoconf/config.sub.dh-orig
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/autotools/config.guess
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/autotools/config.guess.dh-orig
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/autotools/config.sub
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/autotools/config.sub.dh-orig
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/glog/config.guess
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/glog/config.guess.dh-orig
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/glog/config.sub
icedove-45.8.0/mozilla/toolkit/crashreporter/google-breakpad/src/third_party/glog/config.sub.dh-orig
dpkg-source: error: aborting due to unexpected upstream changes, see
/tmp/icedove_45.8.0-3~deb8u1.diff.fG4ELW
dpkg-source: info: you can integrate the local changes with dpkg-source
--commit
dpkg-buildpackage: error: dpkg-source -b icedove-45.8.0 gave error exit
status 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc failed
real 1m8.803s
user 0m38.008s
sys 0m8.836s
Reply to: