diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2025-02-27 21:19:50 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-02-27 13:10:01 -0800 |
commit | caa27aaef626067d1d5905d95e38f4bbce22bc8a (patch) | |
tree | 1e32d3c8822b56b776894b39c256db24495f6764 /meta-networking | |
parent | 1365e7bcb4c02ced8472c6b33e077b88ad5f885f (diff) | |
download | meta-openembedded-caa27aaef626067d1d5905d95e38f4bbce22bc8a.tar.gz |
netperf: fix build failure due to autotools.bbclass change
Recent change to autotools.bbclass broke netperf as it can not now find
proper macros. Remove old workaround and add a proper patch to utilize
ACLOCAL_AMFLAGS option.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch | 41 | ||||
-rw-r--r-- | meta-networking/recipes-support/netperf/netperf_git.bb | 7 |
2 files changed, 42 insertions, 6 deletions
diff --git a/meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch b/meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch new file mode 100644 index 0000000000..6aba8a4f79 --- /dev/null +++ b/meta-networking/recipes-support/netperf/files/0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 333e92a2d804420748447e043c6a04affc600e20 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
3 | Date: Thu, 27 Feb 2025 21:09:04 +0200 | ||
4 | Subject: [PATCH] Makefile.am: add ACLOCAL_AMFLAGS | ||
5 | |||
6 | Add ACLOCAL_AMFLAGS, a standard way to tell aclocal where to find | ||
7 | necessary macros. | ||
8 | |||
9 | Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | ||
10 | Upstream-Status: Submitted [https://github.com/HewlettPackard/netperf/pull/84] | ||
11 | --- | ||
12 | Makefile.am | 1 + | ||
13 | autogen.sh | 2 +- | ||
14 | 2 files changed, 2 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/Makefile.am b/Makefile.am | ||
17 | index 2cb9c24f2eec..dc266e34c997 100644 | ||
18 | --- a/Makefile.am | ||
19 | +++ b/Makefile.am | ||
20 | @@ -19,6 +19,7 @@ | ||
21 | # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | ||
22 | # USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
23 | |||
24 | +ACLOCAL_AMFLAGS = -I src/missing/m4 | ||
25 | AUTOMAKE_OPTIONS = dist-bzip2 dist-zip | ||
26 | SUBDIRS = src doc | ||
27 | EXTRA_DIST = README.* Release_Notes inet_ntop.c autogen.sh m4 | ||
28 | diff --git a/autogen.sh b/autogen.sh | ||
29 | index bc8389c24171..1156f42edae6 100755 | ||
30 | --- a/autogen.sh | ||
31 | +++ b/autogen.sh | ||
32 | @@ -1,5 +1,5 @@ | ||
33 | #! /bin/sh | ||
34 | |||
35 | -aclocal -I src/missing/m4 \ | ||
36 | +aclocal \ | ||
37 | && automake --add-missing \ | ||
38 | && autoconf && autoheader | ||
39 | -- | ||
40 | 2.39.5 | ||
41 | |||
diff --git a/meta-networking/recipes-support/netperf/netperf_git.bb b/meta-networking/recipes-support/netperf/netperf_git.bb index 579a04b86f..fa73548d83 100644 --- a/meta-networking/recipes-support/netperf/netperf_git.bb +++ b/meta-networking/recipes-support/netperf/netperf_git.bb | |||
@@ -15,6 +15,7 @@ SRC_URI = "git://github.com/HewlettPackard/netperf.git;branch=master;protocol=ht | |||
15 | file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \ | 15 | file://0001-netlib.c-Move-including-sched.h-out-og-function.patch \ |
16 | file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \ | 16 | file://0001-nettest_omni-Remove-duplicate-variable-definitions.patch \ |
17 | file://netserver_permissions.patch \ | 17 | file://netserver_permissions.patch \ |
18 | file://0001-Makefile.am-add-ACLOCAL_AMFLAGS.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" | 21 | SRCREV = "3bc455b23f901dae377ca0a558e1e32aa56b31c4" |
@@ -35,12 +36,6 @@ PACKAGECONFIG[sctp] = "--enable-sctp,--disable-sctp,lksctp-tools," | |||
35 | PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,," | 36 | PACKAGECONFIG[intervals] = "--enable-intervals,--disable-intervals,," |
36 | PACKAGECONFIG[histogram] = "--enable-histogram,--disable-histogram,," | 37 | PACKAGECONFIG[histogram] = "--enable-histogram,--disable-histogram,," |
37 | 38 | ||
38 | # autotools.bbclass attends to include m4 files with path depth <= 2 by | ||
39 | # "find ${S} -maxdepth 2 -name \*.m4", so move m4 files from m4/m4. | ||
40 | do_configure:prepend() { | ||
41 | test -d ${S}/m4/m4 && mv -f ${S}/m4/m4 ${S}/m4-files | ||
42 | } | ||
43 | |||
44 | do_install() { | 39 | do_install() { |
45 | sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${UNPACKDIR}/init | 40 | sed -e 's#/usr/sbin/#${sbindir}/#g' -i ${UNPACKDIR}/init |
46 | install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d ${D}${systemd_system_unitdir} | 41 | install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d ${D}${systemd_system_unitdir} |