[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: poblem with dh-autoreconf ?



On 2024-04-19, at 14:27:40 +0200, PICCA Frederic-Emmanuel wrote:
> Hello,
> 
> In this build, I do not see a call to dh_autoreconf_clean
> 
> https://buildd.debian.org/status/fetch.php?pkg=hkl&arch=amd64&ver=5.0.0.3434-1&stamp=1713518550&raw=0
> 
> this package override_dh_clean like this
> 
> override_dh_clean:
>         rm -f Documentation/api/hkl-docs.sgml
>         dh_clean
> 
> so my question is: is it normal or a bug in dh-autoreconf ?

This is normal.  du_autoreconf_clean exits without doing anything unless
debian/autoreconf.before and debian/autoreconf.after exist.

To use a different package that I happen to have to hand as an example:

  $ git status
  On branch master
  Your branch is up to date with 'debian/master'.

  nothing to commit, working tree clean
  $ schroot -r -c sid-conntrack-tools -- dpkg-source --before-build .
  $ schroot -r -c sid-conntrack-tools -- fakeroot debian/rules clean binary
  dh clean
     dh_clean
          rm -f debian/debhelper-build-stamp
          rm -rf debian/.debhelper/
          rm -f -- debian/conntrack.substvars debian/conntrackd.substvars debian/nfct.substvars debian/files
          rm -fr -- debian/conntrack/ debian/tmp/ debian/conntrackd/ debian/nfct/
          find .  \( \( \
                  \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
                  \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
                   -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
                   -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
                   -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
                  \) -exec rm -f {} + \) -o \
                  \( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
  dh binary
     dh_update_autotools_config
  [...]
  $ schroot -r -c sid-conntrack-tools -- fakeroot debian/rules clean
  dh clean
     dh_auto_clean
          make -j1 distclean
  [...]
  make[1]: Leaving directory '/space/azazel/work/git/repos/salsa/pkg-netfilter-team/pkg-conntrack-tools'
   dh_autoreconf_clean
        rm -f -- ./Makefile.in ./configure ./autom4te.cache/output.2 ./autom4te.cache/requests ./autom4te.cache/output.0 ./autom4te.cache/traces.1 ./autom4te.cache/traces.2 ./autom4te.cache/output.1 ./autom4te.cache/traces.0 ./extensions/Makefile.in ./m4/lt\~obsolete.m4 ./m4/ltsugar.m4 ./m4/libtool.m4 ./m4/ltversion.m4 ./m4/ltoptions.m4 ./src/Makefile.in ./src/helpers/Makefile.in ./configure\~ ./build-aux/ar-lib ./build-aux/compile ./build-aux/missing ./build-aux/ltmain.sh ./build-aux/ylwrap ./build-aux/depcomp ./aclocal.m4 ./include/Makefile.in ./include/helpers/Makefile.in ./include/linux/Makefile.in ./include/linux/netfilter/Makefile.in
        rm -f debian/autoreconf.before debian/autoreconf.after
   dh_clean
   [...]

The first time `debian/rules clean` runs, dh_autoreconf has not run, so
dh_autoreconf_clean has nothing to do and is silent.  The second time,
after dh_autoreconf has run, you can see it doing stuff.

J.

Attachment: signature.asc
Description: PGP signature


Reply to: