[Pkg-clamav-devel] redo debian/rules with less dh for clamav

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Wed Mar 19 00:08:48 UTC 2014


Hi Sebastian,

On 18.03.2014 21:44, Sebastian Andrzej Siewior wrote:
> I just pushed to
>    alioth.debian.org/git/pkg-clamav/clamav.git bigeasy_debhelper
>
> my debhelper rework. --stat says

Thanks for working on this.

> It is not done yet. It builds however. I need to add back the fix for
> #621206, consider pkgdatadir and I think that was all.

I added the command to remove the dependency_libs to override_dh_strip, 
but I'm wondering, if we could just not include the .la file. Is it 
still needed, e.g. for reverse dependencies?

Some more comments:

I don't know, what you intend with pkgdatadir.
And why is '.PHONY: override_dh_strip' necessary?

Since you rewrote the debian/rules, I think the copyright for 'Sample 
debian/rules' could/should be removed.

I enhanced the rules file a bit:
  * Add some comments.
  * Introduce the $CONFIG variable containing the configure flags
    (improves readability).
  * There are three configure options that I didn't find in the
    configure script. What do these do?
     - --disable-clamuko
     - --with-system-tommath
     - --without-included-ltdl
  * Change '$(MAKE) check' to dh_auto_test.
  * dh_auto_test automatically disables the test when cross-compiling and
    handles nocheck, so the extra check is not needed.
  * override_dh_auto_clean: run debconf-updatepo
  * Split dh_auto_build in arch-dependent (-a) and -independent (-i).
  * override_dh_installinit: clamav-freshclam needs --noscripts
  * override_dh_installchangelogs: Install the upstream changelog
  * override_dh_compress: Don't compress the example configuration file.
  * Update the doc-base file, because PDFs get compressed now.
  * Create static debian/clean instead of creating it in every build
    (because it doesn't get removed by debian/clean).
  * Make the bug script executable.

I think the result is now quite equivalent to the old rules file.

Best regards,
Andreas



More information about the Pkg-clamav-devel mailing list