Skip to contentSkip to conversation

Fix ctorrent build failure by using --disable-maintainer-mode option

PATCH In review philby john 2 participants 3 messages Jan 5, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix ctorrent build failure by using --disable-maintainer-mode option

From: Philby John <[email protected]>
Date: Thu, 5 Jan 2012 18:08:00 +0530
Subject: [PATCH] Fix ctorrent build failure by using --disable-maintainer-mode option

ctorrent package fails with error "aclocal.m4:14: error: this file was generated for autoconf dnh3.3.1" as reported here lists.linuxtogo.org/pipermail/openembedded-devel/2008-October/006598.html Fix this by including --disable-maintainer-mode.

Also since ctcs inherits ctorrent.inc add do_configure() there doing nothing.

---
 recipes/ctorrent/ctcs_1.4.1.bb     |    6 +++++-
 recipes/ctorrent/ctorrent.inc      |    6 ++++++
 recipes/ctorrent/ctorrent_3.3.1.bb |    2 +-
 3 files changed, 12 insertions(+), 2 deletions(-)
recipes/ctorrent/ctcs_1.4.1.bb +5 -1
index 8680b0c..d1e084e 100644
@@ -5,7 +5,11 @@ RDEPENDS_${PN} = "perl perl-module-strict perl-module-socket perl-module-fcntl \
             perl-module-errno perl-module-sys-hostname"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/dtorrent/ctcs-${PV}.tar.gz"
-PR="r1"
+PR="r2"
+
+do_configure () {
+        :
+}
 
 do_install () {
   install -d ${D}/usr/bin
recipes/ctorrent/ctorrent.inc +6 -0
index 8005fa9..e04c5d3 100644
@@ -8,3 +8,9 @@ DEPENDS = "openssl"
 SRC_URI = "${SOURCEFORGE_MIRROR}/ctorrent/ctorrent-${PV}.tar.bz2"
 
 inherit autotools
+
+EXTRA_OECONF = "--disable-maintainer-mode"
+
+do_configure() {
+                oe_runconf
+}
recipes/ctorrent/ctorrent_3.3.1.bb +1 -1
index efc2eca..2c6e4f9 100644
@@ -6,7 +6,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/dtorrent/ctorrent-dnh${PV}.tar.gz \
            file://CVE-2009-1759.patch;striplevel=0 "
 
 S = "${WORKDIR}/${PN}-dnh${PV}"
-PR="r1"
+PR="r2"
 
 SRC_URI[md5sum] = "9bfe42c2dd6a6aabd545fe332bc23e87"
 SRC_URI[sha256sum] = "e65d9c7a4da499314126d979a0a79ce5123e0f969c786bfddcee261f14cb648b"
Signature · 1 line
1.6.3.3.338.ge89ce
#1 lore raw
Quoted 44 lines · philby john

From: Philby John <[email protected]>
Date: Thu, 5 Jan 2012 18:08:00 +0530
Subject: [PATCH] Fix ctorrent build failure by using --disable-maintainer-mode option

ctorrent package fails with error "aclocal.m4:14: error: this file was generated for autoconf dnh3.3.1" as reported here lists.linuxtogo.org/pipermail/openembedded-devel/2008-October/006598.html Fix this by including --disable-maintainer-mode.

Also since ctcs inherits ctorrent.inc add do_configure() there doing nothing.

---
 recipes/ctorrent/ctcs_1.4.1.bb     |    6 +++++-
 recipes/ctorrent/ctorrent.inc      |    6 ++++++
 recipes/ctorrent/ctorrent_3.3.1.bb |    2 +-

 3 files changed, 12 insertions(+), 2 deletions(-)
recipes/ctorrent/ctcs_1.4.1.bb +0 -0
index 8680b0c..d1e084e 100644
@@ -5,7 +5,11 @@ RDEPENDS_${PN} = "perl perl-module-strict perl-module-socket perl-module-fcntl \

            perl-module-errno perl-module-sys-hostname"

 SRC_URI = "${SOURCEFORGE_MIRROR}/dtorrent/ctcs-${PV}.tar.gz"

recipes/ctorrent/ctcs_1.4.1.bb +5 -1
-PR="r1"
+PR="r2"
+
+do_configure () {
+        :
+}

 do_install () {
  install -d ${D}/usr/bin

recipes/ctorrent/ctorrent.inc +0 -0
index 8005fa9..e04c5d3 100644
@@ -8,3 +8,9 @@ DEPENDS = "openssl"

 SRC_URI = "${SOURCEFORGE_MIRROR}/ctorrent/ctorrent-${PV}.tar.bz2"

 inherit autotools

recipes/ctorrent/ctorrent.inc DEPENDS = "openssl" · line 16

Quoted 6 lines
recipes/ctorrent/ctorrent.inc +6 -0
+
+EXTRA_OECONF = "--disable-maintainer-mode"
+
+do_configure() {
+                oe_runconf
+}

why do you override do_configure ?
is it not able to reconfigure ?

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 31 lines · Philby John
Quoted 19 lines · Khem Raj
Quoted 18 lines · philby john

 SRC_URI = "${SOURCEFORGE_MIRROR}/dtorrent/ctcs-${PV}.tar.gz"

recipes/ctorrent/ctcs_1.4.1.bb +5 -1
-PR="r1"
+PR="r2"
+
+do_configure () {
+        :
+}

 do_install () {
  install -d ${D}/usr/bin

recipes/ctorrent/ctorrent.inc +0 -0
index 8005fa9..e04c5d3 100644
@@ -8,3 +8,9 @@ DEPENDS = "openssl"

 SRC_URI = "${SOURCEFORGE_MIRROR}/ctorrent/ctorrent-${PV}.tar.bz2"

Quoted 10 lines

recipes/ctorrent/ctorrent.inc DEPENDS = "openssl" · line 16

Quoted 7 lines

 inherit autotools

recipes/ctorrent/ctorrent.inc +6 -0
+
+EXTRA_OECONF = "--disable-maintainer-mode"
+
+do_configure() {
+                oe_runconf
+}

why do you override do_configure ?
is it not able to reconfigure ?

Quoted 3 lines

Yes, ctcs has nothing to configure with, its just one perl script. So do_configure() fails for ctcs.

clearly then ctorrent.inc is not that common to be used as such in all recipes there.
you should move inheriting autotools out of ctorrent.inc and into the needing .bb

Quoted 3 lines

~Philby