* [PATCH] libtasn: fixed cross build issue
@ 2012-05-30 15:17 Enrico Scholz
2012-05-30 15:44 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Enrico Scholz @ 2012-05-30 15:17 UTC (permalink / raw)
To: openembedded-core; +Cc: Enrico Scholz
Fixes
| /bin/sh ../libtasn1-2.12-r1/libtasn1-2.12/build-aux/missing --run help2man --info-page libtasn1 \
| --name="ASN.1 DER encoder" \
| --output=asn1Coding.1 ../src/asn1Coding
| help2man: can't get `--help' info from ../src/asn1Coding
| Try `--no-discard-stderr' if option outputs to stderr
| make[3]: *** [asn1Coding.1] Error 1
which was caused by touching configure.ac which is a dependency of the
generated man pages.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
meta/recipes-support/gnutls/libtasn1_2.12.bb | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-support/gnutls/libtasn1_2.12.bb b/meta/recipes-support/gnutls/libtasn1_2.12.bb
index d0b4191..dcc58a2 100644
--- a/meta/recipes-support/gnutls/libtasn1_2.12.bb
+++ b/meta/recipes-support/gnutls/libtasn1_2.12.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
file://README;endline=8;md5=c3803a3e8ca5ab5eb1e5912faa405351"
-PR = "r1"
+PR = "r2"
SRC_URI = "${GNU_MIRROR}/libtasn1/libtasn1-${PV}.tar.gz \
file://libtasn1_fix_for_automake_1.12.patch \
@@ -20,3 +20,11 @@ SRC_URI[sha256sum] = "0e257a8a01c80e464f73262e13c226e04a15165c2ad087a340f5390228
inherit autotools binconfig lib_package
BBCLASSEXTEND = "native"
+
+do_configure_prepend() {
+ # these autogenerated man pages depend on configure.ac which was
+ # modified by SRC_URI patches. Regenerating them fails because
+ # 'help2man' tries to execute the corresponding, cross-compiled
+ # binary with the '--help' option
+ touch doc/asn1Parser.1 doc/asn1Coding.1 doc/asn1Decoding.1
+}
--
1.7.7.6
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] libtasn: fixed cross build issue
2012-05-30 15:17 [PATCH] libtasn: fixed cross build issue Enrico Scholz
@ 2012-05-30 15:44 ` Richard Purdie
2012-05-30 16:07 ` Enrico Scholz
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2012-05-30 15:44 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Enrico Scholz
On Wed, 2012-05-30 at 17:17 +0200, Enrico Scholz wrote:
> Fixes
>
> | /bin/sh ../libtasn1-2.12-r1/libtasn1-2.12/build-aux/missing --run help2man --info-page libtasn1 \
> | --name="ASN.1 DER encoder" \
> | --output=asn1Coding.1 ../src/asn1Coding
> | help2man: can't get `--help' info from ../src/asn1Coding
> | Try `--no-discard-stderr' if option outputs to stderr
> | make[3]: *** [asn1Coding.1] Error 1
>
> which was caused by touching configure.ac which is a dependency of the
> generated man pages.
>
> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
> ---
> meta/recipes-support/gnutls/libtasn1_2.12.bb | 10 +++++++++-
> 1 files changed, 9 insertions(+), 1 deletions(-)
This is just a workaround, I thought we'd found a better way to handle
this.
I think a reproducer for the above is:
"bitbake help2man-native; bitbake libtasn1 -c cleansstate; bitbake libtasn1"
and the real fix will be to reorder PATH so the scripts directory comes
before the native sysroot...
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] libtasn: fixed cross build issue
2012-05-30 15:44 ` Richard Purdie
@ 2012-05-30 16:07 ` Enrico Scholz
2012-05-30 16:47 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Enrico Scholz @ 2012-05-30 16:07 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
Richard Purdie <richard.purdie@linuxfoundation.org> writes:
>> | /bin/sh ../libtasn1-2.12-r1/libtasn1-2.12/build-aux/missing --run help2man --info-page libtasn1 \
>> | --name="ASN.1 DER encoder" \
>> | --output=asn1Coding.1 ../src/asn1Coding
>> | help2man: can't get `--help' info from ../src/asn1Coding
>> | Try `--no-discard-stderr' if option outputs to stderr
>> | make[3]: *** [asn1Coding.1] Error 1
>>
>> which was caused by touching configure.ac which is a dependency of the
>> generated man pages.
>>
>> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
>> ---
>> meta/recipes-support/gnutls/libtasn1_2.12.bb | 10 +++++++++-
>> 1 files changed, 9 insertions(+), 1 deletions(-)
>
> This is just a workaround, I thought we'd found a better way to handle
> this.
setting HELP2MAN environment to 'true' for cross-builds might be a
general solution.... But this does not seem to be implemented...
Enrico
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] libtasn: fixed cross build issue
2012-05-30 16:07 ` Enrico Scholz
@ 2012-05-30 16:47 ` Richard Purdie
2012-05-30 16:54 ` Enrico Scholz
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2012-05-30 16:47 UTC (permalink / raw)
To: Enrico Scholz; +Cc: Patches and discussions about the oe-core layer
On Wed, 2012-05-30 at 18:07 +0200, Enrico Scholz wrote:
> Richard Purdie <richard.purdie@linuxfoundation.org> writes:
>
> >> | /bin/sh ../libtasn1-2.12-r1/libtasn1-2.12/build-aux/missing --run help2man --info-page libtasn1 \
> >> | --name="ASN.1 DER encoder" \
> >> | --output=asn1Coding.1 ../src/asn1Coding
> >> | help2man: can't get `--help' info from ../src/asn1Coding
> >> | Try `--no-discard-stderr' if option outputs to stderr
> >> | make[3]: *** [asn1Coding.1] Error 1
> >>
> >> which was caused by touching configure.ac which is a dependency of the
> >> generated man pages.
> >>
> >> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
> >> ---
> >> meta/recipes-support/gnutls/libtasn1_2.12.bb | 10 +++++++++-
> >> 1 files changed, 9 insertions(+), 1 deletions(-)
> >
> > This is just a workaround, I thought we'd found a better way to handle
> > this.
>
> setting HELP2MAN environment to 'true' for cross-builds might be a
> general solution.... But this does not seem to be implemented...
Right, I remember looking into this and its hard to disable. I've pushed
a PATH change to address this problem...
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] libtasn: fixed cross build issue
2012-05-30 16:47 ` Richard Purdie
@ 2012-05-30 16:54 ` Enrico Scholz
2012-05-30 17:07 ` Richard Purdie
2012-05-30 17:09 ` Khem Raj
0 siblings, 2 replies; 7+ messages in thread
From: Enrico Scholz @ 2012-05-30 16:54 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
Richard Purdie <richard.purdie@linuxfoundation.org> writes:
>> setting HELP2MAN environment to 'true' for cross-builds might be a
>> general solution.... But this does not seem to be implemented...
>
> Right, I remember looking into this and its hard to disable. I've pushed
> a PATH change to address this problem...
But this makes 'help2man' completely unavailable which might break
man-page generation for -native (where 'help2man' works) or for every
package which requires a working 'help2man' tool.
Enrico
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] libtasn: fixed cross build issue
2012-05-30 16:54 ` Enrico Scholz
@ 2012-05-30 17:07 ` Richard Purdie
2012-05-30 17:09 ` Khem Raj
1 sibling, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2012-05-30 17:07 UTC (permalink / raw)
To: Enrico Scholz; +Cc: Patches and discussions about the oe-core layer
On Wed, 2012-05-30 at 18:54 +0200, Enrico Scholz wrote:
> Richard Purdie <richard.purdie@linuxfoundation.org> writes:
>
> >> setting HELP2MAN environment to 'true' for cross-builds might be a
> >> general solution.... But this does not seem to be implemented...
> >
> > Right, I remember looking into this and its hard to disable. I've pushed
> > a PATH change to address this problem...
>
> But this makes 'help2man' completely unavailable which might break
> man-page generation for -native (where 'help2man' works) or for every
> package which requires a working 'help2man' tool.
help2man is *totally* useless in any cross situation. We also don't
need/want man-pages for native tools so I can't see a case where this is
a problem...
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] libtasn: fixed cross build issue
2012-05-30 16:54 ` Enrico Scholz
2012-05-30 17:07 ` Richard Purdie
@ 2012-05-30 17:09 ` Khem Raj
1 sibling, 0 replies; 7+ messages in thread
From: Khem Raj @ 2012-05-30 17:09 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
On Wednesday, May 30, 2012, Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
wrote:
> Richard Purdie <richard.purdie@linuxfoundation.org> writes:
>
>>> setting HELP2MAN environment to 'true' for cross-builds might be a
>>> general solution.... But this does not seem to be implemented...
>>
>> Right, I remember looking into this and its hard to disable. I've pushed
>> a PATH change to address this problem...
>
> But this makes 'help2man' completely unavailable which might break
> man-page generation for -native (where 'help2man' works) or for every
> package which requires a working 'help2man' tool.
Can you use class overrides to control that
>
>
> Enrico
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 1339 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-05-30 17:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-30 15:17 [PATCH] libtasn: fixed cross build issue Enrico Scholz
2012-05-30 15:44 ` Richard Purdie
2012-05-30 16:07 ` Enrico Scholz
2012-05-30 16:47 ` Richard Purdie
2012-05-30 16:54 ` Enrico Scholz
2012-05-30 17:07 ` Richard Purdie
2012-05-30 17:09 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox