[Build-common-hackers] Bug#627863: Does not properly clean up if dh-autoreconf is used

Michael Biebl biebl at debian.org
Wed May 25 00:58:12 UTC 2011


Package: cdbs
Version: 0.4.94
Severity: important

Hi,

if /usr/share/cdbs/1/rules/autoreconf.mk is used, debclean does no
longer properly clean up the debian/

The problem is, that dh_autoreconf_clean is run *after* dh_clean.
As a result, there are debian/*.debhelper.log files.
See the attached log for libunique3, which uses the following includes:

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk


If this is a bug in dh-autoreconf, please reassign.

Cheers,
Michael


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-1-486
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cdbs depends on:
ii  debhelper                     8.1.6      helper programs for debian/rules

Versions of packages cdbs recommends:
ii  autotools-dev                 20110511.1 Update infrastructure for config.{

Versions of packages cdbs suggests:
ii  devscripts                    2.10.73    scripts to make the life of a Debi

-- no debconf information
-------------- next part --------------
[michael at pluto libunique3-2.91.4]$ debclean
Cleaning in directory .
test -x debian/rules
dh_testroot
rm -f debian/stamp-makefile-build debian/stamp-makefile-install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 /usr/bin/make  -C .  -k distclean
make[1]: Entering directory `/tmp/libunique3-2.91.4'
Making distclean in po
make[2]: Entering directory `/tmp/libunique3-2.91.4/po'
rm -f core core.* *.pox unique.po *.old.po cat-id-tbl.tmp
rm -fr *.o
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
make[2]: Leaving directory `/tmp/libunique3-2.91.4/po'
Making distclean in doc
make[2]: Entering directory `/tmp/libunique3-2.91.4/doc'
Making distclean in reference
make[3]: Entering directory `/tmp/libunique3-2.91.4/doc/reference'
test -z "unique.args unique.hierarchy unique.interfaces unique.prerequisites unique.signals unique-undocumented.txt unique-undeclared.txt unique-unused.txt scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp pdf-build.stamp ./tmpl.stamp ./sgml.stamp ./html.stamp ./pdf.stamp" || rm -f unique.args unique.hierarchy unique.interfaces unique.prerequisites unique.signals unique-undocumented.txt unique-undeclared.txt unique-unused.txt scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp pdf-build.stamp ./tmpl.stamp ./sgml.stamp ./html.stamp ./pdf.stamp
rm -rf .libs _libs
rm -f *~ *.bak
rm -rf .libs
rm -f *.lo
test -z "version.xml" || rm -f version.xml
test . = "." || test -z "" || rm -f 
cd . && \
	  rm -rf xml unique-undocumented.txt unique-undeclared.txt unique-unused.txt unique.pdf \
	         unique-decl-list.txt unique-decl.txt
rm -f Makefile
make[3]: Leaving directory `/tmp/libunique3-2.91.4/doc/reference'
Making distclean in .
make[3]: Entering directory `/tmp/libunique3-2.91.4/doc'
rm -rf .libs _libs
rm -f *.lo
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[3]: Leaving directory `/tmp/libunique3-2.91.4/doc'
rm -f Makefile
make[2]: Leaving directory `/tmp/libunique3-2.91.4/doc'
Making distclean in tests
make[2]: Entering directory `/tmp/libunique3-2.91.4/tests'
rm -rf .libs _libs
 rm -f test-unique
rm -f *.o
rm -f *.lo
rm -f *.tab.c
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -rf ./.deps
rm -f Makefile
make[2]: Leaving directory `/tmp/libunique3-2.91.4/tests'
Making distclean in unique
make[2]: Entering directory `/tmp/libunique3-2.91.4/unique'
Making distclean in gdbus
make[3]: Entering directory `/tmp/libunique3-2.91.4/unique/gdbus'
rm -rf .libs _libs
test -z "libunique-gdbus.la" || rm -f libunique-gdbus.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
rm -f *.tab.c
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -rf ./.deps
rm -f Makefile
make[3]: Leaving directory `/tmp/libunique3-2.91.4/unique/gdbus'
Making distclean in dbus
make[3]: Entering directory `/tmp/libunique3-2.91.4/unique/dbus'
rm -rf .libs _libs
test -z "libunique-dbus.la" || rm -f libunique-dbus.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
rm -f *.tab.c
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -rf ./.deps
rm -f Makefile
make[3]: Leaving directory `/tmp/libunique3-2.91.4/unique/dbus'
Making distclean in bacon
make[3]: Entering directory `/tmp/libunique3-2.91.4/unique/bacon'
rm -rf .libs _libs
test -z "libunique-bacon.la" || rm -f libunique-bacon.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
rm -f *.tab.c
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
rm -rf ./.deps
rm -f Makefile
make[3]: Leaving directory `/tmp/libunique3-2.91.4/unique/bacon'
Making distclean in .
make[3]: Entering directory `/tmp/libunique3-2.91.4/unique'
test -z "stamp-enum-types stamp-marshal Unique-3.0.gir Unique-3.0.typelib" || rm -f stamp-enum-types stamp-marshal Unique-3.0.gir Unique-3.0.typelib
test -z "libunique-3.0.la" || rm -f libunique-3.0.la
rm -f "./so_locations"
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
rm -f *.tab.c
test -z "uniqueversion.h" || rm -f uniqueversion.h
test . = "." || test -z "" || rm -f 
test -z "uniqueenumtypes.h uniqueenumtypes.c uniquemarshal.h uniquemarshal.c uniqueversion.h" || rm -f uniqueenumtypes.h uniqueenumtypes.c uniquemarshal.h uniquemarshal.c uniqueversion.h
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[3]: Leaving directory `/tmp/libunique3-2.91.4/unique'
rm -rf ./.deps
rm -f Makefile
make[2]: Leaving directory `/tmp/libunique3-2.91.4/unique'
Making distclean in build
make[2]: Entering directory `/tmp/libunique3-2.91.4/build'
Making distclean in autotools
make[3]: Entering directory `/tmp/libunique3-2.91.4/build/autotools'
rm -rf .libs _libs
rm -f *.lo
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
test -z "shave-libtool shave" || rm -f shave-libtool shave
rm -f Makefile
make[3]: Leaving directory `/tmp/libunique3-2.91.4/build/autotools'
Making distclean in .
make[3]: Entering directory `/tmp/libunique3-2.91.4/build'
rm -rf .libs _libs
rm -f *.lo
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[3]: Leaving directory `/tmp/libunique3-2.91.4/build'
rm -f Makefile
make[2]: Leaving directory `/tmp/libunique3-2.91.4/build'
Making distclean in .
make[2]: Entering directory `/tmp/libunique3-2.91.4'
rm -rf .libs _libs
rm -f *.lo
test -z "unique.pc" || rm -f unique.pc
test . = "." || test -z "" || rm -f 
test -z "unique-3.0.pc" || rm -f unique-3.0.pc
rm -f config.h stamp-h1
rm -f libtool config.lt
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[2]: Leaving directory `/tmp/libunique3-2.91.4'
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -f Makefile
make[1]: Leaving directory `/tmp/libunique3-2.91.4'
rm -f debian/stamp-autotools
rmdir --ignore-fail-on-non-empty .
rmdir: konnte ?.? nicht entfernen: Das Argument ist ung?ltig
make: [makefile-clean] Fehler 1 (ignoriert)
for i in ./config.guess ./config.sub  ; do \
		if test -e $i.cdbs-orig ; then \
			mv $i.cdbs-orig $i ; \
		fi ; \
	done
rm -f debian/stamp-autotools-files
dh_clean 
rm -f debian/cdbs-install-list debian/cdbs-package-list debian/stamp-copyright-check
cd . && \
	  rm -f intltool-extract intltool-merge intltool-update po/.intltool-merge-cache; \
	  if test -d doc; then find doc -name '*.omf.out' -exec rm -f \{\} \; ; fi; \
	  if test -d help; then find help -name '*.omf.out' -exec rm -f \{\} \; ; fi
dh_autoreconf_clean 
{ cat /usr/share/gnome-pkg-tools/control.header ; \
	  sed "s/@GNOME_TEAM@/Emilio Pozuelo Monfort <pochu at debian.org>, Josselin Mouette <joss at debian.org>, Sebastian Dr?ge <slomo at debian.org>/" debian/control.in ; } \
	> debian/control

[michael at pluto libunique3-2.91.4]$ ls debian/
changelog   copyright                        libunique-3.0-0.install          libunique-3.0-doc.debhelper.log  source
compat      gir1.2-unique-3.0.debhelper.log  libunique-3.0-0.symbols          libunique-3.0-doc.install        watch
control     gir1.2-unique-3.0.install        libunique-3.0-dev.debhelper.log  patches
control.in  libunique-3.0-0.debhelper.log    libunique-3.0-dev.install        rules

[michael at pluto libunique3-2.91.4]$ cat debian/libunique-3.0-dev.debhelper.log 
dh_autoreconf_clean



More information about the Build-common-hackers mailing list