Blog of Julian Andres Klode

Debian, Ubuntu, Linux in general, and other free software

dh-autoreconf v4 released, patching for as-needed support

Yesterday I released version 4 of dh-autoreconf, fixing two bugs, and introducing a new feature: Patching to make -Wl,–as-needed work.

For this new feature, run dh_autoreconf with the –as-needed option. dh_autoreconf will then patch all equal to the system one (which should be all files if libtoolize ran before or via dh_autoreconf). On clean, dh_autoreconf_clean reverses the patch again.

So, if your package runs autoreconf, and patches via a patch you can now do this automatically via dh-autoreconf and be future-proof.

The only problem is that this might break once the patch no longer applies to libtool, at which point I need to update the package to include an updated patch. A solution for this problem would be to include the patch in libtool itself, as I proposed in Bug#347650.

In case this works well, the option could also become the default which would make things even easier.

Written by Julian Andres Klode

June 15, 2011 at 20:28

Posted in Debian

One Response

Subscribe to comments with RSS.

  1. How about getting the libtool patch included upstream?


    June 16, 2011 at 03:49

Comments are closed.


Get every new post delivered to your Inbox.

%d bloggers like this: