All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] autotools: don't special-case help2man-native for dependencies
@ 2020-07-16 11:55 Ross Burton
  2020-07-16 11:55 ` [PATCH 2/4] help2man: rewrite recipe Ross Burton
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ross Burton @ 2020-07-16 11:55 UTC (permalink / raw)
  To: openembedded-core

From: Ross Burton <ross.burton@arm.com>

help2man-native doesn't need to be handled specially, we can build it
normally or use INHIBIT_AUTOTOOLS_DEPS like everyone else.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes/autotools.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 6c2a33ac72..1f3c771c69 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -5,7 +5,7 @@ def autotools_dep_prepend(d):
     pn = d.getVar('PN')
     deps = ''
 
-    if pn in ['autoconf-native', 'automake-native', 'help2man-native']:
+    if pn in ['autoconf-native', 'automake-native']:
         return deps
     deps += 'autoconf-native automake-native '
 
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] help2man: rewrite recipe
  2020-07-16 11:55 [PATCH 1/4] autotools: don't special-case help2man-native for dependencies Ross Burton
@ 2020-07-16 11:55 ` Ross Burton
  2020-07-17  6:14   ` [OE-core] " Richard Purdie
       [not found]   ` <1622758F3BA9F568.2727@lists.openembedded.org>
  2020-07-16 11:55 ` [PATCH 3/4] flex: fix build with autoconf 2.70 Ross Burton
  2020-07-16 11:55 ` [PATCH 4/4] nasm: " Ross Burton
  2 siblings, 2 replies; 6+ messages in thread
From: Ross Burton @ 2020-07-16 11:55 UTC (permalink / raw)
  To: openembedded-core

From: Ross Burton <ross.burton@arm.com>

Instead of being explicitly native, use BBCLASSEXTEND.

No need to explicitly depend on autoconf-native automake-native, because
the autotools class does that.

Don't explicitly disable NLS, but use the gettext class.

As this recipe isn't needed in early build anymore there's no need to
avoid reconfiguring.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ...2man-native_1.47.15.bb => help2man_1.47.15.bb} | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
 rename meta/recipes-devtools/help2man/{help2man-native_1.47.15.bb => help2man_1.47.15.bb} (66%)

diff --git a/meta/recipes-devtools/help2man/help2man-native_1.47.15.bb b/meta/recipes-devtools/help2man/help2man_1.47.15.bb
similarity index 66%
rename from meta/recipes-devtools/help2man/help2man-native_1.47.15.bb
rename to meta/recipes-devtools/help2man/help2man_1.47.15.bb
index 4f80a2bdb1..7a913507a3 100644
--- a/meta/recipes-devtools/help2man/help2man-native_1.47.15.bb
+++ b/meta/recipes-devtools/help2man/help2man_1.47.15.bb
@@ -2,22 +2,19 @@ SUMMARY = "Program for creating simple man pages"
 SECTION = "devel"
 LICENSE = "GPLv3"
 LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
-DEPENDS = "autoconf-native automake-native"
 
 SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz"
 SRC_URI[sha256sum] = "c25a35b30eceb315361484b0ff1f81c924e8ee5c8881576f1ee762f001dbcd1c"
 
-inherit autotools native
+inherit autotools gettext
 
-EXTRA_OECONF = "--disable-nls"
-
-# We don't want to reconfigure things as it would require 'perlnative' to be
-# used.
-do_configure() {
-	oe_runconf
-}
+# This is a hand-maintained aclocal.m4 but our autotools class currently deletes
+# aclocal.m4.
+EXTRA_AUTORECONF += "--exclude=aclocal"
 
 do_install_append () {
 	# Make sure we use /usr/bin/env perl
 	sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${D}${bindir}/help2man
 }
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] flex: fix build with autoconf 2.70
  2020-07-16 11:55 [PATCH 1/4] autotools: don't special-case help2man-native for dependencies Ross Burton
  2020-07-16 11:55 ` [PATCH 2/4] help2man: rewrite recipe Ross Burton
@ 2020-07-16 11:55 ` Ross Burton
  2020-07-16 11:55 ` [PATCH 4/4] nasm: " Ross Burton
  2 siblings, 0 replies; 6+ messages in thread
From: Ross Burton @ 2020-07-16 11:55 UTC (permalink / raw)
  To: openembedded-core

From: Ross Burton <ross.burton@intel.com>

autoconf 2.70 is coming soon which has some small behavioural fixes, so
backport a patch from upstream to fix the build with that release.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../flex/flex/check-funcs.patch               | 79 +++++++++++++++++++
 meta/recipes-devtools/flex/flex_2.6.4.bb      |  1 +
 2 files changed, 80 insertions(+)
 create mode 100644 meta/recipes-devtools/flex/flex/check-funcs.patch

diff --git a/meta/recipes-devtools/flex/flex/check-funcs.patch b/meta/recipes-devtools/flex/flex/check-funcs.patch
new file mode 100644
index 0000000000..037ca81fdc
--- /dev/null
+++ b/meta/recipes-devtools/flex/flex/check-funcs.patch
@@ -0,0 +1,79 @@
+Upstream-Status: Backport
+Signed-off-by: Ross Burton <ross.burton@arm.com>
+
+From c42de062bbdc7c31d7181c10a74202d493280ada Mon Sep 17 00:00:00 2001
+From: Explorer09 <explorer09@gmail.com>
+Date: Tue, 27 Feb 2018 09:10:12 +0800
+Subject: [PATCH] build: Move dnl comments out of AC_CHECK_FUNCS
+
+Due to a bug, autoheader (2.69) will treat M4 dnl comments in a quoted
+argument of AC_CHECK_FUNCS as function tokens and generate a lot of
+redundant and useless HAVE_* macros in config.h.in.
+(Examples: HAVE_DNL, HAVE_AVAILABLE_, HAVE_BY)
+
+It seems to be this commit dbb4e94dc7bacbcfd4acef4f085ef752fe1aa03f of
+mine that revealed this autoheader bug, and the affected config.h.in
+had been shipped within flex-2.6.4 release tarball.
+
+I have reported the autoheader bug here:
+<https://lists.gnu.org/archive/html/bug-autoconf/2018-02/msg00005.html>
+
+As a workaround, let's move comments out of AC_CHECK_FUNCS.
+
+Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
+---
+ configure.ac | 29 +++++++++++++----------------
+ 1 file changed, 13 insertions(+), 16 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 55e774b0..d0f3b7da 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -166,6 +166,7 @@ strtol dnl
+ AC_CHECK_FUNCS([dnl
+ pow dnl           Used only by "examples/manual/expr"
+ setlocale dnl     Needed only if NLS is enabled
++reallocarr dnl    NetBSD function. Use reallocarray if not available.
+ reallocarray dnl  OpenBSD function. We have replacement if not available.
+ ])
+ 
+diff --git a/configure.ac b/configure.ac
+index 3c977a4e..9c53590f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -158,22 +158,19 @@ AC_FUNC_REALLOC
+ AS_IF([test "$cross_compiling" = yes],
+    AC_MSG_WARN([result $ac_cv_func_realloc_0_nonnull guessed because of cross compilation]))
+ 
+-AC_CHECK_FUNCS([dup2 dnl
+-memset dnl
+-regcomp dnl
+-strcasecmp dnl
+-strchr dnl
+-strdup dnl
+-strtol dnl
+-], [], [AC_MSG_ERROR(required library function not found on your system)])
+-
+-# Optional library functions
+-AC_CHECK_FUNCS([dnl
+-pow dnl           Used only by "examples/manual/expr"
+-setlocale dnl     Needed only if NLS is enabled
+-reallocarr dnl    NetBSD function. Use reallocarray if not available.
+-reallocarray dnl  OpenBSD function. We have replacement if not available.
+-])
++dnl Autoheader (<= 2.69) bug: "dnl" comments in a quoted argument of
++dnl AC_CHECK_FUNCS will expand wierdly in config.h.in.
++dnl (https://lists.gnu.org/archive/html/bug-autoconf/2018-02/msg00005.html)
++
++AC_CHECK_FUNCS([dup2 memset regcomp strcasecmp strchr strdup strtol], [],
++  [AC_MSG_ERROR(required library function not found on your system)])
++
++# Optional library functions:
++# pow - Used only by "examples/manual/expr".
++# setlocale - Needed only if NLS is enabled.
++# reallocarr - NetBSD function. Use reallocarray if not available.
++# reallocarray - OpenBSD function. We have replacement if not available.
++AC_CHECK_FUNCS([pow setlocale reallocarr reallocarray])
+ 
+ AC_CONFIG_FILES(
+ Makefile
diff --git a/meta/recipes-devtools/flex/flex_2.6.4.bb b/meta/recipes-devtools/flex/flex_2.6.4.bb
index 43b2547fc6..3d57572865 100644
--- a/meta/recipes-devtools/flex/flex_2.6.4.bb
+++ b/meta/recipes-devtools/flex/flex_2.6.4.bb
@@ -15,6 +15,7 @@ SRC_URI = "https://github.com/westes/flex/releases/download/v${PV}/flex-${PV}.ta
            file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \
            ${@bb.utils.contains('PTEST_ENABLED', '1', '', 'file://disable-tests.patch', d)} \
            file://0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch \
+           file://check-funcs.patch \
            "
 
 SRC_URI[md5sum] = "2882e3179748cc9f9c23ec593d6adc8d"
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] nasm: fix build with autoconf 2.70
  2020-07-16 11:55 [PATCH 1/4] autotools: don't special-case help2man-native for dependencies Ross Burton
  2020-07-16 11:55 ` [PATCH 2/4] help2man: rewrite recipe Ross Burton
  2020-07-16 11:55 ` [PATCH 3/4] flex: fix build with autoconf 2.70 Ross Burton
@ 2020-07-16 11:55 ` Ross Burton
  2 siblings, 0 replies; 6+ messages in thread
From: Ross Burton @ 2020-07-16 11:55 UTC (permalink / raw)
  To: openembedded-core

From: Ross Burton <ross.burton@intel.com>

autoconf 2.70 is coming soon which has some small behavioural fixes, so
backport a patch from upstream to fix the build with that release.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 ...rs.m4-for-development-versions-of-au.patch | 28 +++++++++++++++++++
 meta/recipes-devtools/nasm/nasm_2.14.02.bb    |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 meta/recipes-devtools/nasm/nasm/0001-fix-pa_add_headers.m4-for-development-versions-of-au.patch

diff --git a/meta/recipes-devtools/nasm/nasm/0001-fix-pa_add_headers.m4-for-development-versions-of-au.patch b/meta/recipes-devtools/nasm/nasm/0001-fix-pa_add_headers.m4-for-development-versions-of-au.patch
new file mode 100644
index 0000000000..b52dc5ba7b
--- /dev/null
+++ b/meta/recipes-devtools/nasm/nasm/0001-fix-pa_add_headers.m4-for-development-versions-of-au.patch
@@ -0,0 +1,28 @@
+Upstream-Status: Backport
+Signed-off-by: Ross Burton <ross.burton@arm.com>
+
+From 287964d54b64bed833adba307e1d920f8fcf0cbc Mon Sep 17 00:00:00 2001
+From: Ozkan Sezer <sezero@users.sourceforge.net>
+Date: Wed, 7 Aug 2019 15:50:50 +0300
+Subject: [PATCH] fix pa_add_headers.m4 for development versions of autoconf
+ (bug 3392471)
+
+Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
+---
+ autoconf/m4/pa_add_headers.m4 | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index 1af2dd5d..6ce3e6c1 100644
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -169,7 +169,8 @@ dnl --------------------------------------------------------------------------
+ AC_DEFUN(_PA_ADD_HEADER,
+ [AC_CHECK_HEADERS([$1],[ac_includes_default="$ac_includes_default
+ #include <$1>"
+-])])
++])
++])
+ 
+ AC_DEFUN(PA_ADD_HEADERS,
+ [m4_map_args_w([$1],[_PA_ADD_HEADER(],[)])])
diff --git a/meta/recipes-devtools/nasm/nasm_2.14.02.bb b/meta/recipes-devtools/nasm/nasm_2.14.02.bb
index f8a8d76e99..c40be8fbbf 100644
--- a/meta/recipes-devtools/nasm/nasm_2.14.02.bb
+++ b/meta/recipes-devtools/nasm/nasm_2.14.02.bb
@@ -8,6 +8,7 @@ SRC_URI = "http://www.nasm.us/pub/nasm/releasebuilds/${PV}/nasm-${PV}.tar.bz2 \
            file://CVE-2019-14248.patch \
            file://0001-stdlib-Add-strlcat.patch \
            file://0002-Add-debug-prefix-map-option.patch \
+           file://0001-fix-pa_add_headers.m4-for-development-versions-of-au.patch \
            "
 
 SRC_URI[md5sum] = "3f489aa48ad2aa1f967dc5e293bbd06f"
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH 2/4] help2man: rewrite recipe
  2020-07-16 11:55 ` [PATCH 2/4] help2man: rewrite recipe Ross Burton
@ 2020-07-17  6:14   ` Richard Purdie
       [not found]   ` <1622758F3BA9F568.2727@lists.openembedded.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2020-07-17  6:14 UTC (permalink / raw)
  To: Ross Burton, openembedded-core

On Thu, 2020-07-16 at 12:55 +0100, Ross Burton wrote:
> From: Ross Burton <ross.burton@arm.com>
> 
> Instead of being explicitly native, use BBCLASSEXTEND.
> 
> No need to explicitly depend on autoconf-native automake-native,
> because
> the autotools class does that.
> 
> Don't explicitly disable NLS, but use the gettext class.
> 
> As this recipe isn't needed in early build anymore there's no need to
> avoid reconfiguring.
> 
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  ...2man-native_1.47.15.bb => help2man_1.47.15.bb} | 15 ++++++-------
> --
>  1 file changed, 6 insertions(+), 9 deletions(-)
>  rename meta/recipes-devtools/help2man/{help2man-native_1.47.15.bb =>
> help2man_1.47.15.bb} (66%)

https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2185

configure: error: perl module Locale::gettext required

(from no-x11 world build)

Cheers,

Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [PATCH 2/4] help2man: rewrite recipe
       [not found]   ` <1622758F3BA9F568.2727@lists.openembedded.org>
@ 2020-07-17  6:15     ` Richard Purdie
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2020-07-17  6:15 UTC (permalink / raw)
  To: Ross Burton, openembedded-core

On Fri, 2020-07-17 at 07:14 +0100, Richard Purdie via
lists.openembedded.org wrote:
> On Thu, 2020-07-16 at 12:55 +0100, Ross Burton wrote:
> > From: Ross Burton <ross.burton@arm.com>
> > 
> > Instead of being explicitly native, use BBCLASSEXTEND.
> > 
> > No need to explicitly depend on autoconf-native automake-native,
> > because
> > the autotools class does that.
> > 
> > Don't explicitly disable NLS, but use the gettext class.
> > 
> > As this recipe isn't needed in early build anymore there's no need
> > to
> > avoid reconfiguring.
> > 
> > Signed-off-by: Ross Burton <ross.burton@arm.com>
> > ---
> >  ...2man-native_1.47.15.bb => help2man_1.47.15.bb} | 15 ++++++-----
> > --
> > --
> >  1 file changed, 6 insertions(+), 9 deletions(-)
> >  rename meta/recipes-devtools/help2man/{help2man-native_1.47.15.bb
> > =>
> > help2man_1.47.15.bb} (66%)
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/40/builds/2185
> 
> configure: error: perl module Locale::gettext required
> 
> (from no-x11 world build)

Also, maintainer entry is missing:

https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1165/steps/8/logs/step2d

Cheers,

Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-17  6:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 11:55 [PATCH 1/4] autotools: don't special-case help2man-native for dependencies Ross Burton
2020-07-16 11:55 ` [PATCH 2/4] help2man: rewrite recipe Ross Burton
2020-07-17  6:14   ` [OE-core] " Richard Purdie
     [not found]   ` <1622758F3BA9F568.2727@lists.openembedded.org>
2020-07-17  6:15     ` Richard Purdie
2020-07-16 11:55 ` [PATCH 3/4] flex: fix build with autoconf 2.70 Ross Burton
2020-07-16 11:55 ` [PATCH 4/4] nasm: " Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.