diff options
| author | Khem Raj <raj.khem@gmail.com> | 2020-11-08 20:10:23 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-11-09 13:40:57 -0800 |
| commit | 294e945309e5cabfbb60c80f95063e3be9b46bc2 (patch) | |
| tree | 412cbff0c6e04349701ceaf50dba369557d61d8e | |
| parent | 608a92b4e6eab4bdbf855dadf3e2f3453247bcb0 (diff) | |
| download | meta-openembedded-294e945309e5cabfbb60c80f95063e3be9b46bc2.tar.gz | |
traceroute: Fix build with LTO
Drop patch needed to build when S = B, we do not use this setting
anymore
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch | 47 | ||||
| -rw-r--r-- | meta-networking/recipes-support/traceroute/traceroute_2.1.0.bb | 5 |
2 files changed, 1 insertions, 51 deletions
diff --git a/meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch b/meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch deleted file mode 100644 index 2c030b55dd..0000000000 --- a/meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From e273e0ebc753645555909bcc4874c72458b17891 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Fri, 17 Jan 2014 03:17:44 -0500 | ||
| 4 | Subject: [PATCH] Make.rules: filter-out the patches from subdirs | ||
| 5 | |||
| 6 | The $(subdirs) contains all the dirs under the ${B}, and this one: | ||
| 7 | |||
| 8 | do_unpack[cleandirs] = "${S}/patches" | ||
| 9 | |||
| 10 | will create a "patches" dir, then there will be compile errors, filter | ||
| 11 | out the patches will fix the problem. | ||
| 12 | |||
| 13 | Note: poky doesn't have this problem since it separates the ${S} and | ||
| 14 | ${B} | ||
| 15 | |||
| 16 | Upstream-Status: Inappropriate [OE specific] | ||
| 17 | |||
| 18 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 19 | --- | ||
| 20 | Make.rules | 4 ++-- | ||
| 21 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/Make.rules b/Make.rules | ||
| 24 | index b077cd5..0bfce2d 100644 | ||
| 25 | --- a/Make.rules | ||
| 26 | +++ b/Make.rules | ||
| 27 | @@ -97,7 +97,7 @@ endif | ||
| 28 | subdirs := $(filter-out $(SKIPDIRS), $(subdirs)) | ||
| 29 | endif | ||
| 30 | |||
| 31 | -install install-%: subdirs := $(filter-out $(SKIPINSTALL), $(subdirs)) | ||
| 32 | +install install-%: subdirs := $(filter-out $(SKIPINSTALL) patches, $(subdirs)) | ||
| 33 | |||
| 34 | |||
| 35 | override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared) | ||
| 36 | @@ -106,7 +106,7 @@ override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared) | ||
| 37 | INCLUDEDIRS := $(filter $(INCLUDEDIRS), $(subdirs)) | ||
| 38 | LIBDIRS := $(filter $(LIBDIRS), $(subdirs)) | ||
| 39 | MODDIRS := $(filter $(MODDIRS), $(subdirs)) | ||
| 40 | -EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS), $(subdirs)) | ||
| 41 | +EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS) patches, $(subdirs)) | ||
| 42 | MODUSERS := $(filter $(MODUSERS), $(subdirs)) | ||
| 43 | SBINUSERS := $(filter $(SBINUSERS), $(subdirs)) | ||
| 44 | |||
| 45 | -- | ||
| 46 | 1.7.10.4 | ||
| 47 | |||
diff --git a/meta-networking/recipes-support/traceroute/traceroute_2.1.0.bb b/meta-networking/recipes-support/traceroute/traceroute_2.1.0.bb index 19bbf03f1d..18930b14aa 100644 --- a/meta-networking/recipes-support/traceroute/traceroute_2.1.0.bb +++ b/meta-networking/recipes-support/traceroute/traceroute_2.1.0.bb | |||
| @@ -16,16 +16,13 @@ inherit update-alternatives | |||
| 16 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/traceroute/files/traceroute/" | 16 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/traceroute/files/traceroute/" |
| 17 | 17 | ||
| 18 | SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/${BP}/${BP}.tar.gz \ | 18 | SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/${BP}/${BP}.tar.gz \ |
| 19 | file://filter-out-the-patches-from-subdirs.patch \ | ||
| 20 | " | 19 | " |
| 21 | |||
| 22 | SRC_URI[md5sum] = "84d329d67abc3fb83fc8cb12aeaddaba" | 20 | SRC_URI[md5sum] = "84d329d67abc3fb83fc8cb12aeaddaba" |
| 23 | SRC_URI[sha256sum] = "3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6" | 21 | SRC_URI[sha256sum] = "3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6" |
| 24 | 22 | ||
| 25 | EXTRA_OEMAKE = "VPATH=${STAGING_LIBDIR}" | 23 | LTOEXTRA += "-flto-partition=none" |
| 26 | 24 | ||
| 27 | do_compile() { | 25 | do_compile() { |
| 28 | export LDFLAGS="${TARGET_LDFLAGS} -L${S}/libsupp" | ||
| 29 | oe_runmake "env=yes" | 26 | oe_runmake "env=yes" |
| 30 | } | 27 | } |
| 31 | 28 | ||
