pkg-autotools: only apply libtool patch at the right moment
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 12 Nov 2014 00:25:53 +0000 (01:25 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 22 Nov 2014 19:37:52 +0000 (20:37 +0100)
commit452c8da326a29bfbeacce7a360aa0fba3abc3108
tree6581705b453ef81b78e176a4daac469cd253bd78
parentb3b2222fa71d7ae45066257983b643542c70b636
pkg-autotools: only apply libtool patch at the right moment

Currently, we apply the libtool patch at post-patch time, always. If we
need to autoreconf, we also apply it after autoreconf is done.

Obviously, in that second case, we do not need to apply it at
post-patch time. This has no impact on the result, as autoreconf will
overwrite the just patched files, and they will be patched yet again.
But it is not nice to the user that will see a double "Patching libtool"
message.

So, we apply the libtool patch at post-patch time only if we are not
autoreconfiguring the package.

[Thomas: fix minor typo s/casse/case/ in the commit log.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Johan Oudinet <johan.oudinet@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-autotools.mk