Patchwork [5/9] bzip2: Remove call to "bash ./autogen.sh" in do_configure, use autoreconf with custom reconf

login
register
mail settings
Submitter Morten Svendsen
Date Oct. 17, 2012, 2:39 p.m.
Message ID <88f2bdab1e42163c7e96d01fe683567127c129de.1350484529.git.morten.thunbergsvendsen@prevas.dk>
Download mbox | patch
Permalink /patch/192067/
State Rejected
Delegated to: Esben Haabendal
Headers show

Comments

Morten Svendsen - Oct. 17, 2012, 2:39 p.m.
---
 recipes/bzip2/bzip2.inc |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

Patch

diff --git a/recipes/bzip2/bzip2.inc b/recipes/bzip2/bzip2.inc
index e11ab73..dad6b46 100644
--- a/recipes/bzip2/bzip2.inc
+++ b/recipes/bzip2/bzip2.inc
@@ -2,7 +2,17 @@  DESCRIPTION = "Very high-quality data compression program"
 
 RECIPE_TYPES = "machine native sdk"
 
-inherit autotools pkgconfig
+inherit autotools-autoreconf pkgconfig
+AUTORECONF_CMD = " \
+   mv LICENSE COPYING; \
+   mv CHANGES NEWS; \
+   touch AUTHORS \
+&& touch ChangeLog \
+&& ${LIBTOOLIZE} --force --copy \
+&& aclocal -I . $acpaths --force \
+&& automake -a --copy --force --gnu \
+&& autoconf -I . $acpaths --force \
+"
 
 SRC_URI = "http://www.bzip.org/${PV}/bzip2-${PV}.tar.gz"
 
@@ -34,8 +44,3 @@  RDEPENDS_${PN}-bzdiff = "${PN}-libbz2"
 RDEPENDS_${PN}-bzgrep = "${PN}-libbz2"
 RDEPENDS_${PN}-bzip2recover = "${PN}-libbz2"
 RDEPENDS_${PN}-bzmore = "${PN}-libbz2"
-
-do_configure () {
-    bash ./autogen.sh
-    do_configure_autotools
-}