* [PATCH 1/5] mercurial-native: Add 1.9 version
2011-07-15 22:03 [PATCH 0/5] Optionally trade required_utils for -native builds Tom Rini
@ 2011-07-15 22:03 ` Tom Rini
2011-07-15 22:14 ` Khem Raj
2011-07-15 22:03 ` [PATCH 2/5] bitbake.conf, sanity.bbclass: Make mercurial-native optional Tom Rini
` (3 subsequent siblings)
4 siblings, 1 reply; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:03 UTC (permalink / raw)
To: openembedded-core
This is based on 91c14caa8819b08def8ea99e02949e49604c2e86 from oe.dev
with an update to 1.9.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
.../mercurial/mercurial-native_1.9.bb | 24 ++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
diff --git a/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb b/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
new file mode 100644
index 0000000..b4438a3
--- /dev/null
+++ b/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "The Mercurial distributed SCM"
+HOMEPAGE = "http://mercurial.selenic.com/"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+DEPENDS = "python-native"
+PR = "r1"
+
+SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz"
+SRC_URI[md5sum] = "d4842129fa2732eb6ed1180467bc32e2"
+SRC_URI[sha256sum] = "711e4b1cd2924a7a88499d6c431a9122390183bf554d4e153edbb3b2f30123e0"
+
+S = "${WORKDIR}/mercurial-${PV}"
+
+inherit native
+
+EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
+ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${prefix}"
+
+do_install () {
+ oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix}
+}
+
+NATIVE_INSTALL_WORKS = "1"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH 1/5] mercurial-native: Add 1.9 version
2011-07-15 22:03 ` [PATCH 1/5] mercurial-native: Add 1.9 version Tom Rini
@ 2011-07-15 22:14 ` Khem Raj
2011-07-15 22:22 ` Tom Rini
0 siblings, 1 reply; 17+ messages in thread
From: Khem Raj @ 2011-07-15 22:14 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, Jul 15, 2011 at 3:03 PM, Tom Rini <tom_rini@mentor.com> wrote:
> This is based on 91c14caa8819b08def8ea99e02949e49604c2e86 from oe.dev
> with an update to 1.9.
>
> Signed-off-by: Tom Rini <tom_rini@mentor.com>
> ---
> .../mercurial/mercurial-native_1.9.bb | 24 ++++++++++++++++++++
> 1 files changed, 24 insertions(+), 0 deletions(-)
> create mode 100644 meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
>
> diff --git a/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb b/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
> new file mode 100644
> index 0000000..b4438a3
> --- /dev/null
> +++ b/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
> @@ -0,0 +1,24 @@
> +DESCRIPTION = "The Mercurial distributed SCM"
> +HOMEPAGE = "http://mercurial.selenic.com/"
> +SECTION = "console/utils"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +DEPENDS = "python-native"
> +PR = "r1"
> +
> +SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz"
> +SRC_URI[md5sum] = "d4842129fa2732eb6ed1180467bc32e2"
> +SRC_URI[sha256sum] = "711e4b1cd2924a7a88499d6c431a9122390183bf554d4e153edbb3b2f30123e0"
> +
> +S = "${WORKDIR}/mercurial-${PV}"
> +
> +inherit native
why not use BBCLASSEXTEND although I dont know why someone would want
target package of hg
> +
> +EXTRA_OEMAKE = "STAGING_LIBDIR=${STAGING_LIBDIR} STAGING_INCDIR=${STAGING_INCDIR} \
> + BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} PREFIX=${prefix}"
> +
> +do_install () {
> + oe_runmake -e install-bin DESTDIR=${D} PREFIX=${prefix}
> +}
> +
> +NATIVE_INSTALL_WORKS = "1"
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 1/5] mercurial-native: Add 1.9 version
2011-07-15 22:14 ` Khem Raj
@ 2011-07-15 22:22 ` Tom Rini
0 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:22 UTC (permalink / raw)
To: openembedded-core
On 07/15/2011 03:14 PM, Khem Raj wrote:
> On Fri, Jul 15, 2011 at 3:03 PM, Tom Rini <tom_rini@mentor.com> wrote:
>> This is based on 91c14caa8819b08def8ea99e02949e49604c2e86 from oe.dev
>> with an update to 1.9.
>>
>> Signed-off-by: Tom Rini <tom_rini@mentor.com>
>> ---
>> .../mercurial/mercurial-native_1.9.bb | 24 ++++++++++++++++++++
>> 1 files changed, 24 insertions(+), 0 deletions(-)
>> create mode 100644 meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
>>
>> diff --git a/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb b/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
>> new file mode 100644
>> index 0000000..b4438a3
>> --- /dev/null
>> +++ b/meta/recipes-devtools/mercurial/mercurial-native_1.9.bb
>> @@ -0,0 +1,24 @@
>> +DESCRIPTION = "The Mercurial distributed SCM"
>> +HOMEPAGE = "http://mercurial.selenic.com/"
>> +SECTION = "console/utils"
>> +LICENSE = "GPLv2"
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
>> +DEPENDS = "python-native"
>> +PR = "r1"
>> +
>> +SRC_URI = "http://mercurial.selenic.com/release/mercurial-${PV}.tar.gz"
>> +SRC_URI[md5sum] = "d4842129fa2732eb6ed1180467bc32e2"
>> +SRC_URI[sha256sum] = "711e4b1cd2924a7a88499d6c431a9122390183bf554d4e153edbb3b2f30123e0"
>> +
>> +S = "${WORKDIR}/mercurial-${PV}"
>> +
>> +inherit native
>
> why not use BBCLASSEXTEND although I dont know why someone would want
> target package of hg
To avoid the "ok, now how do we split this up for the target" before
someone says they want it. oe.dev is also just a native atm.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 2/5] bitbake.conf, sanity.bbclass: Make mercurial-native optional
2011-07-15 22:03 [PATCH 0/5] Optionally trade required_utils for -native builds Tom Rini
2011-07-15 22:03 ` [PATCH 1/5] mercurial-native: Add 1.9 version Tom Rini
@ 2011-07-15 22:03 ` Tom Rini
2011-07-15 22:03 ` [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3) Tom Rini
` (2 subsequent siblings)
4 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:03 UTC (permalink / raw)
To: openembedded-core
Drop mercurial-native from the initial ASSUME_PROVIDED list and
instead only add it if we find 'hg' is installed.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
meta/classes/sanity.bbclass | 6 +++++-
meta/conf/bitbake.conf | 1 -
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index c9d37c9..2bc3fca 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -209,7 +209,7 @@ def check_sanity(e):
if not check_app_exists('${BUILD_PREFIX}g++', e.data):
missing = missing + "C++ Compiler (%sg++)," % data.getVar("BUILD_PREFIX", e.data, True)
- required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk hg chrpath wget cpio"
+ required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk chrpath wget cpio"
# qemu-native needs gcc 3.x
if "qemu-native" not in assume_provided and "gcc3-native" in assume_provided:
@@ -243,6 +243,10 @@ def check_sanity(e):
if not check_app_exists( util, e.data ):
missing = missing + "%s," % util
+ # If we've found 'hg', add mercurial-native to ASSUME_PROVIDED.
+ if check_app_exists( "hg", e.data ):
+ bb.data.setVar('ASSUME_PROVIDED', data.getVar('ASSUME_PROVIDED', e.data , True) + "mercurial-native", e.data)
+
if missing != "":
missing = missing.rstrip(',')
messages = messages + "Please install following missing utilities: %s\n" % missing
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 463991d..15fd97e 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -132,7 +132,6 @@ ASSUME_PROVIDED = "\
cvs-native \
grep-native \
diffstat-native \
- mercurial-native \
patch-native \
perl-native-runtime \
python-native-runtime \
--
1.7.0.4
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:03 [PATCH 0/5] Optionally trade required_utils for -native builds Tom Rini
2011-07-15 22:03 ` [PATCH 1/5] mercurial-native: Add 1.9 version Tom Rini
2011-07-15 22:03 ` [PATCH 2/5] bitbake.conf, sanity.bbclass: Make mercurial-native optional Tom Rini
@ 2011-07-15 22:03 ` Tom Rini
2011-07-15 22:24 ` Saul Wold
2011-07-15 22:48 ` Richard Purdie
2011-07-15 22:03 ` [PATCH 4/5] sanity.bbclass: Add help2man-native to ASSUME_PROVIDED if found Tom Rini
2011-07-15 22:03 ` [PATCH 5/5] autotools.bbclass: Add help2man-native to the main DEPENDS tree Tom Rini
4 siblings, 2 replies; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:03 UTC (permalink / raw)
To: openembedded-core
These are 'side ports' of current oe.dev versions. PR is kept in sync
but we drop out the target recipes in order to punt on potential perl
problems.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
.../help2man/help2man-native_1.36.4.bb | 26 ++++++++++++++++++++
.../help2man/help2man-native_1.38.2.bb | 24 ++++++++++++++++++
2 files changed, 50 insertions(+), 0 deletions(-)
create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
diff --git a/meta/recipes-devtools/help2man/help2man-native_1.36.4.bb b/meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
new file mode 100644
index 0000000..b2c6608
--- /dev/null
+++ b/meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "GNU utility to convert program --help output to a man page"
+HOMEPAGE = "http://www.gnu.org/software/help2man"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+DEPENDS = "autoconf-native automake-native"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
+SRC_URI[md5sum] = "d31a0a38c2ec71faa06723f6b8bd3076"
+SRC_URI[sha256sum] = "a4adadf76b496a6bc50795702253ecfcb6f0d159b68038f31a5362009340bca2"
+
+inherit autotools native
+
+PR = "r5"
+
+# We don't want to reconfigure things
+do_configure() {
+ oe_runconf
+}
+
+do_install_append () {
+ # Make sure we use /usr/bin/env perl
+ sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${D}${bindir}/help2man
+}
diff --git a/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
new file mode 100644
index 0000000..5612eda
--- /dev/null
+++ b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "Program to create simple man pages"
+SECTION = "devel"
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
+DEPENDS = "autoconf-native automake-native"
+PR = "r2"
+
+SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
+SRC_URI[md5sum] = "426671c6fe79e5ef2233303367eab5a6"
+SRC_URI[sha256sum] = "952c29561bce8b233aa10af7f0e0c79c8243712810bf8ddf01e6efd82ce250d1"
+
+inherit autotools native
+
+EXTRA_OECONF = "--disable-nls"
+
+# We don't want to reconfigure things
+do_configure() {
+ oe_runconf
+}
+
+do_install_append () {
+ # Make sure we use /usr/bin/env perl
+ sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${D}${bindir}/help2man
+}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 17+ messages in thread* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:03 ` [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3) Tom Rini
@ 2011-07-15 22:24 ` Saul Wold
2011-07-15 22:29 ` Tom Rini
2011-07-15 22:48 ` Richard Purdie
1 sibling, 1 reply; 17+ messages in thread
From: Saul Wold @ 2011-07-15 22:24 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 07/15/2011 03:03 PM, Tom Rini wrote:
> These are 'side ports' of current oe.dev versions. PR is kept in sync
> but we drop out the target recipes in order to punt on potential perl
> problems.
>
> Signed-off-by: Tom Rini<tom_rini@mentor.com>
> ---
> .../help2man/help2man-native_1.36.4.bb | 26 ++++++++++++++++++++
> .../help2man/help2man-native_1.38.2.bb | 24 ++++++++++++++++++
> 2 files changed, 50 insertions(+), 0 deletions(-)
> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>
Why do we need both versions? Can't we just use the most current?
Sau!
> diff --git a/meta/recipes-devtools/help2man/help2man-native_1.36.4.bb b/meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
> new file mode 100644
> index 0000000..b2c6608
> --- /dev/null
> +++ b/meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
> @@ -0,0 +1,26 @@
> +DESCRIPTION = "GNU utility to convert program --help output to a man page"
> +HOMEPAGE = "http://www.gnu.org/software/help2man"
> +SECTION = "console/utils"
> +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> +DEPENDS = "autoconf-native automake-native"
> +
> +TARGET_CC_ARCH += "${LDFLAGS}"
> +
> +SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
> +SRC_URI[md5sum] = "d31a0a38c2ec71faa06723f6b8bd3076"
> +SRC_URI[sha256sum] = "a4adadf76b496a6bc50795702253ecfcb6f0d159b68038f31a5362009340bca2"
> +
> +inherit autotools native
> +
> +PR = "r5"
> +
> +# We don't want to reconfigure things
> +do_configure() {
> + oe_runconf
> +}
> +
> +do_install_append () {
> + # Make sure we use /usr/bin/env perl
> + sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${D}${bindir}/help2man
> +}
> diff --git a/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
> new file mode 100644
> index 0000000..5612eda
> --- /dev/null
> +++ b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
> @@ -0,0 +1,24 @@
> +DESCRIPTION = "Program to create simple man pages"
> +SECTION = "devel"
> +LICENSE = "GPLv3"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> +DEPENDS = "autoconf-native automake-native"
> +PR = "r2"
> +
> +SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
> +SRC_URI[md5sum] = "426671c6fe79e5ef2233303367eab5a6"
> +SRC_URI[sha256sum] = "952c29561bce8b233aa10af7f0e0c79c8243712810bf8ddf01e6efd82ce250d1"
> +
> +inherit autotools native
> +
> +EXTRA_OECONF = "--disable-nls"
> +
> +# We don't want to reconfigure things
> +do_configure() {
> + oe_runconf
> +}
> +
> +do_install_append () {
> + # Make sure we use /usr/bin/env perl
> + sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${D}${bindir}/help2man
> +}
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:24 ` Saul Wold
@ 2011-07-15 22:29 ` Tom Rini
2011-07-15 22:41 ` Saul Wold
2011-07-15 22:47 ` Richard Purdie
0 siblings, 2 replies; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:29 UTC (permalink / raw)
To: Saul Wold; +Cc: Patches and discussions about the oe-core layer
On 07/15/2011 03:24 PM, Saul Wold wrote:
> On 07/15/2011 03:03 PM, Tom Rini wrote:
>> These are 'side ports' of current oe.dev versions. PR is kept in sync
>> but we drop out the target recipes in order to punt on potential perl
>> problems.
>>
>> Signed-off-by: Tom Rini<tom_rini@mentor.com>
>> ---
>> .../help2man/help2man-native_1.36.4.bb | 26
>> ++++++++++++++++++++
>> .../help2man/help2man-native_1.38.2.bb | 24
>> ++++++++++++++++++
>> 2 files changed, 50 insertions(+), 0 deletions(-)
>> create mode 100644
>> meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
>> create mode 100644
>> meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>>
>
> Why do we need both versions? Can't we just use the most current?
For the "I want no GPLv3" crowd. This is a little more clear in oe.dev
where we also build for the target but yes, different legal departments
have different GPLv3 concerns so I think it makes sense in this case still.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:29 ` Tom Rini
@ 2011-07-15 22:41 ` Saul Wold
2011-07-15 22:47 ` Richard Purdie
1 sibling, 0 replies; 17+ messages in thread
From: Saul Wold @ 2011-07-15 22:41 UTC (permalink / raw)
To: Tom Rini; +Cc: Patches and discussions about the oe-core layer
On 07/15/2011 03:29 PM, Tom Rini wrote:
> On 07/15/2011 03:24 PM, Saul Wold wrote:
>> On 07/15/2011 03:03 PM, Tom Rini wrote:
>>> These are 'side ports' of current oe.dev versions. PR is kept in sync
>>> but we drop out the target recipes in order to punt on potential perl
>>> problems.
>>>
>>> Signed-off-by: Tom Rini<tom_rini@mentor.com>
>>> ---
>>> .../help2man/help2man-native_1.36.4.bb | 26
>>> ++++++++++++++++++++
>>> .../help2man/help2man-native_1.38.2.bb | 24
>>> ++++++++++++++++++
>>> 2 files changed, 50 insertions(+), 0 deletions(-)
>>> create mode 100644
>>> meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
>>> create mode 100644
>>> meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>>>
>>
>> Why do we need both versions? Can't we just use the most current?
>
> For the "I want no GPLv3" crowd. This is a little more clear in oe.dev
> where we also build for the target but yes, different legal departments
> have different GPLv3 concerns so I think it makes sense in this case still.
>
Right, I scanned this too quickly and did not see the v2 vs v3 difference.
Thanks for clarifying.
Sau!
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:29 ` Tom Rini
2011-07-15 22:41 ` Saul Wold
@ 2011-07-15 22:47 ` Richard Purdie
1 sibling, 0 replies; 17+ messages in thread
From: Richard Purdie @ 2011-07-15 22:47 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, 2011-07-15 at 15:29 -0700, Tom Rini wrote:
> On 07/15/2011 03:24 PM, Saul Wold wrote:
> > On 07/15/2011 03:03 PM, Tom Rini wrote:
> >> These are 'side ports' of current oe.dev versions. PR is kept in sync
> >> but we drop out the target recipes in order to punt on potential perl
> >> problems.
> >>
> >> Signed-off-by: Tom Rini<tom_rini@mentor.com>
> >> ---
> >> .../help2man/help2man-native_1.36.4.bb | 26
> >> ++++++++++++++++++++
> >> .../help2man/help2man-native_1.38.2.bb | 24
> >> ++++++++++++++++++
> >> 2 files changed, 50 insertions(+), 0 deletions(-)
> >> create mode 100644
> >> meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
> >> create mode 100644
> >> meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
> >>
> >
> > Why do we need both versions? Can't we just use the most current?
>
> For the "I want no GPLv3" crowd. This is a little more clear in oe.dev
> where we also build for the target but yes, different legal departments
> have different GPLv3 concerns so I think it makes sense in this case still.
We support limited GPLv2 functionality for the target. We don't do this
for the build tools since the compiler is GPLv3 for a start. We also
don't cover target development tools.
So I don't think we need the old version...
Cheers,
Richard
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:03 ` [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3) Tom Rini
2011-07-15 22:24 ` Saul Wold
@ 2011-07-15 22:48 ` Richard Purdie
2011-07-15 22:53 ` Tom Rini
1 sibling, 1 reply; 17+ messages in thread
From: Richard Purdie @ 2011-07-15 22:48 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, 2011-07-15 at 15:03 -0700, Tom Rini wrote:
> These are 'side ports' of current oe.dev versions. PR is kept in sync
> but we drop out the target recipes in order to punt on potential perl
> problems.
>
> Signed-off-by: Tom Rini <tom_rini@mentor.com>
> ---
> .../help2man/help2man-native_1.36.4.bb | 26 ++++++++++++++++++++
> .../help2man/help2man-native_1.38.2.bb | 24 ++++++++++++++++++
> 2 files changed, 50 insertions(+), 0 deletions(-)
> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>
[...]
> diff --git a/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
> new file mode 100644
> index 0000000..5612eda
> --- /dev/null
> +++ b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
> @@ -0,0 +1,24 @@
> +DESCRIPTION = "Program to create simple man pages"
> +SECTION = "devel"
> +LICENSE = "GPLv3"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
> +DEPENDS = "autoconf-native automake-native"
> +PR = "r2"
> +
> +SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
> +SRC_URI[md5sum] = "426671c6fe79e5ef2233303367eab5a6"
> +SRC_URI[sha256sum] = "952c29561bce8b233aa10af7f0e0c79c8243712810bf8ddf01e6efd82ce250d1"
> +
> +inherit autotools native
> +
> +EXTRA_OECONF = "--disable-nls"
> +
> +# We don't want to reconfigure things
> +do_configure() {
> + oe_runconf
> +}
At the very least I'd like to know why we can't do this. Its a great way
to hide bugs (such as libtool rpath injection issues, admittedly in the
target case).
Cheers,
Richard
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:48 ` Richard Purdie
@ 2011-07-15 22:53 ` Tom Rini
2011-07-18 22:13 ` Tom Rini
0 siblings, 1 reply; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:53 UTC (permalink / raw)
To: openembedded-core
On 07/15/2011 03:48 PM, Richard Purdie wrote:
> On Fri, 2011-07-15 at 15:03 -0700, Tom Rini wrote:
>> These are 'side ports' of current oe.dev versions. PR is kept in sync
>> but we drop out the target recipes in order to punt on potential perl
>> problems.
>>
>> Signed-off-by: Tom Rini <tom_rini@mentor.com>
>> ---
>> .../help2man/help2man-native_1.36.4.bb | 26 ++++++++++++++++++++
>> .../help2man/help2man-native_1.38.2.bb | 24 ++++++++++++++++++
>> 2 files changed, 50 insertions(+), 0 deletions(-)
>> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
>> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>>
> [...]
>> diff --git a/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>> new file mode 100644
>> index 0000000..5612eda
>> --- /dev/null
>> +++ b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>> @@ -0,0 +1,24 @@
>> +DESCRIPTION = "Program to create simple man pages"
>> +SECTION = "devel"
>> +LICENSE = "GPLv3"
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
>> +DEPENDS = "autoconf-native automake-native"
>> +PR = "r2"
>> +
>> +SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
>> +SRC_URI[md5sum] = "426671c6fe79e5ef2233303367eab5a6"
>> +SRC_URI[sha256sum] = "952c29561bce8b233aa10af7f0e0c79c8243712810bf8ddf01e6efd82ce250d1"
>> +
>> +inherit autotools native
>> +
>> +EXTRA_OECONF = "--disable-nls"
>> +
>> +# We don't want to reconfigure things
>> +do_configure() {
>> + oe_runconf
>> +}
>
> At the very least I'd like to know why we can't do this. Its a great way
> to hide bugs (such as libtool rpath injection issues, admittedly in the
> target case).
In oe.dev, chicken and egg problem wrt perl. Here, I'll see if we can
drop this part too, as part of a v2 with the older help2man dropped and
per IRC, mercurial-native moved over to a meta-oe patch (but keeping the
sanity.bbclass/bitbake.conf change).
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-15 22:53 ` Tom Rini
@ 2011-07-18 22:13 ` Tom Rini
2011-07-19 12:17 ` Phil Blundell
0 siblings, 1 reply; 17+ messages in thread
From: Tom Rini @ 2011-07-18 22:13 UTC (permalink / raw)
To: openembedded-core
On 07/15/2011 03:53 PM, Tom Rini wrote:
> On 07/15/2011 03:48 PM, Richard Purdie wrote:
>> On Fri, 2011-07-15 at 15:03 -0700, Tom Rini wrote:
>>> These are 'side ports' of current oe.dev versions. PR is kept in sync
>>> but we drop out the target recipes in order to punt on potential perl
>>> problems.
>>>
>>> Signed-off-by: Tom Rini <tom_rini@mentor.com>
>>> ---
>>> .../help2man/help2man-native_1.36.4.bb | 26 ++++++++++++++++++++
>>> .../help2man/help2man-native_1.38.2.bb | 24 ++++++++++++++++++
>>> 2 files changed, 50 insertions(+), 0 deletions(-)
>>> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.36.4.bb
>>> create mode 100644 meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>>>
>> [...]
>>> diff --git a/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>>> new file mode 100644
>>> index 0000000..5612eda
>>> --- /dev/null
>>> +++ b/meta/recipes-devtools/help2man/help2man-native_1.38.2.bb
>>> @@ -0,0 +1,24 @@
>>> +DESCRIPTION = "Program to create simple man pages"
>>> +SECTION = "devel"
>>> +LICENSE = "GPLv3"
>>> +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
>>> +DEPENDS = "autoconf-native automake-native"
>>> +PR = "r2"
>>> +
>>> +SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
>>> +SRC_URI[md5sum] = "426671c6fe79e5ef2233303367eab5a6"
>>> +SRC_URI[sha256sum] = "952c29561bce8b233aa10af7f0e0c79c8243712810bf8ddf01e6efd82ce250d1"
>>> +
>>> +inherit autotools native
>>> +
>>> +EXTRA_OECONF = "--disable-nls"
>>> +
>>> +# We don't want to reconfigure things
>>> +do_configure() {
>>> + oe_runconf
>>> +}
>>
>> At the very least I'd like to know why we can't do this. Its a great way
>> to hide bugs (such as libtool rpath injection issues, admittedly in the
>> target case).
>
> In oe.dev, chicken and egg problem wrt perl. Here, I'll see if we can
> drop this part too, as part of a v2 with the older help2man dropped and
> per IRC, mercurial-native moved over to a meta-oe patch (but keeping the
> sanity.bbclass/bitbake.conf change).
OK, here's a "why" on not changing:
| configure.in:4: error: possibly undefined macro: AC_PROG_PERL
| If this token and others are legitimate, please use
m4_pattern_allow.
| See the Autoconf documentation.
| configure.in:7: error: possibly undefined macro: AC_PERL_MODULE
Which if we fix by building vs perlnative we then need autotools.bbclass
to inherit perlnative to make life reliable which isn't what you want
wrt perl-native in the build chain :)
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-18 22:13 ` Tom Rini
@ 2011-07-19 12:17 ` Phil Blundell
2011-07-19 14:18 ` Tom Rini
0 siblings, 1 reply; 17+ messages in thread
From: Phil Blundell @ 2011-07-19 12:17 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2011-07-18 at 15:13 -0700, Tom Rini wrote:
> OK, here's a "why" on not changing:
> | configure.in:4: error: possibly undefined macro: AC_PROG_PERL
> | If this token and others are legitimate, please use
> m4_pattern_allow.
> | See the Autoconf documentation.
> | configure.in:7: error: possibly undefined macro: AC_PERL_MODULE
>
> Which if we fix by building vs perlnative we then need autotools.bbclass
> to inherit perlnative to make life reliable which isn't what you want
> wrt perl-native in the build chain :)
How about fixing it by installing those two macros into ${S} before
running aclocal? You could do that just as a patch, I guess.
p.
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3)
2011-07-19 12:17 ` Phil Blundell
@ 2011-07-19 14:18 ` Tom Rini
0 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2011-07-19 14:18 UTC (permalink / raw)
To: openembedded-core
On 07/19/2011 05:17 AM, Phil Blundell wrote:
> On Mon, 2011-07-18 at 15:13 -0700, Tom Rini wrote:
>> OK, here's a "why" on not changing:
>> | configure.in:4: error: possibly undefined macro: AC_PROG_PERL
>> | If this token and others are legitimate, please use
>> m4_pattern_allow.
>> | See the Autoconf documentation.
>> | configure.in:7: error: possibly undefined macro: AC_PERL_MODULE
>>
>> Which if we fix by building vs perlnative we then need autotools.bbclass
>> to inherit perlnative to make life reliable which isn't what you want
>> wrt perl-native in the build chain :)
>
> How about fixing it by installing those two macros into ${S} before
> running aclocal? You could do that just as a patch, I guess.
It feels like overkill just to make a perl program. Assuming
sstate-help2man-native-x86_64-linux-1.38.2-r2-x86_64-2-<signature>_populate-sysroot.tgz
is the right file to peek at, it's just help2man and a man page.
--
Tom Rini
Mentor Graphics Corporation
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 4/5] sanity.bbclass: Add help2man-native to ASSUME_PROVIDED if found
2011-07-15 22:03 [PATCH 0/5] Optionally trade required_utils for -native builds Tom Rini
` (2 preceding siblings ...)
2011-07-15 22:03 ` [PATCH 3/5] help2man-native: Add 1.36.4 (GPLv2) and 1.38.2 (GPLv3) Tom Rini
@ 2011-07-15 22:03 ` Tom Rini
2011-07-15 22:03 ` [PATCH 5/5] autotools.bbclass: Add help2man-native to the main DEPENDS tree Tom Rini
4 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:03 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
meta/classes/sanity.bbclass | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 2bc3fca..365af6c 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -209,7 +209,7 @@ def check_sanity(e):
if not check_app_exists('${BUILD_PREFIX}g++', e.data):
missing = missing + "C++ Compiler (%sg++)," % data.getVar("BUILD_PREFIX", e.data, True)
- required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk chrpath wget cpio"
+ required_utilities = "patch diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk chrpath wget cpio"
# qemu-native needs gcc 3.x
if "qemu-native" not in assume_provided and "gcc3-native" in assume_provided:
@@ -247,6 +247,10 @@ def check_sanity(e):
if check_app_exists( "hg", e.data ):
bb.data.setVar('ASSUME_PROVIDED', data.getVar('ASSUME_PROVIDED', e.data , True) + "mercurial-native", e.data)
+ # If we've found 'help2man', add help2man-native to ASSUME_PROVIDED.
+ if check_app_exists( "help2man", e.data ):
+ bb.data.setVar('ASSUME_PROVIDED', data.getVar('ASSUME_PROVIDED', e.data , True) + "help2man-native", e.data)
+
if missing != "":
missing = missing.rstrip(',')
messages = messages + "Please install following missing utilities: %s\n" % missing
--
1.7.0.4
^ permalink raw reply related [flat|nested] 17+ messages in thread* [PATCH 5/5] autotools.bbclass: Add help2man-native to the main DEPENDS tree
2011-07-15 22:03 [PATCH 0/5] Optionally trade required_utils for -native builds Tom Rini
` (3 preceding siblings ...)
2011-07-15 22:03 ` [PATCH 4/5] sanity.bbclass: Add help2man-native to ASSUME_PROVIDED if found Tom Rini
@ 2011-07-15 22:03 ` Tom Rini
4 siblings, 0 replies; 17+ messages in thread
From: Tom Rini @ 2011-07-15 22:03 UTC (permalink / raw)
To: openembedded-core
With help2man no longer being required by sanity.bbclass we need to
make sure that if we are going to build autotools stuff that help2man
will be there as it's a frequent implicit dependency.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
---
meta/classes/autotools.bbclass | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 98c871a..ed5637e 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -5,9 +5,9 @@ def autotools_dep_prepend(d):
pn = bb.data.getVar('PN', d, 1)
deps = ''
- if pn in ['autoconf-native', 'automake-native']:
+ if pn in ['autoconf-native', 'automake-native', 'help2man-native']:
return deps
- deps += 'autoconf-native automake-native '
+ deps += 'autoconf-native automake-native help2man-native '
if not pn in ['libtool', 'libtool-native', 'libtool-cross']:
deps += 'libtool-native '
--
1.7.0.4
^ permalink raw reply related [flat|nested] 17+ messages in thread