Skip to contentSkip to conversation

traceroute: filter-out patches dir

PATCH Applied Robert Yang 3 participants 9 messages Jan 20, 2014 – Mar 27, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 traceroute: filter-out patches dir

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Note: poky doesn't have this problem since it separates the ${S} and ${B}

---
 .../filter-out-the-patches-from-subdirs.patch      | 47 ++++++++++++++++++++++
 .../traceroute/traceroute_2.0.18.bb                |  1 +
 2 files changed, 48 insertions(+)
 create mode 100644 meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch
meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch new file +47 -0
new file mode 100644
index 0000000..2c030b5
@@ -0,0 +1,47 @@
+From e273e0ebc753645555909bcc4874c72458b17891 Mon Sep 17 00:00:00 2001
+From: Robert Yang <[email protected]>
+Date: Fri, 17 Jan 2014 03:17:44 -0500
+Subject: [PATCH] Make.rules: filter-out the patches from subdirs
+
+The $(subdirs) contains all the dirs under the ${B}, and this one:
+
+do_unpack[cleandirs] = "${S}/patches"
+
+will create a "patches" dir, then there will be compile errors, filter
+out the patches will fix the problem.
+
+Note: poky doesn't have this problem since it separates the ${S} and
+${B}
+
+Upstream-Status: Inappropriate [OE specific]
+
+Signed-off-by: Robert Yang <[email protected]>
+---
+ Make.rules |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Make.rules b/Make.rules
+index b077cd5..0bfce2d 100644
+--- a/Make.rules
++++ b/Make.rules
+@@ -97,7 +97,7 @@ endif
+ subdirs := $(filter-out $(SKIPDIRS), $(subdirs))
+ endif
+ 
+-install install-%: subdirs := $(filter-out $(SKIPINSTALL), $(subdirs))
++install install-%: subdirs := $(filter-out $(SKIPINSTALL) patches, $(subdirs))
+ 
+ 
+ override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared)
+@@ -106,7 +106,7 @@ override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared)
+ INCLUDEDIRS := $(filter $(INCLUDEDIRS), $(subdirs))
+ LIBDIRS := $(filter $(LIBDIRS), $(subdirs))
+ MODDIRS := $(filter $(MODDIRS), $(subdirs))
+-EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS), $(subdirs))
++EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS) patches, $(subdirs))
+ MODUSERS := $(filter $(MODUSERS), $(subdirs))
+ SBINUSERS := $(filter $(SBINUSERS), $(subdirs))
+ 
+-- 
+1.7.10.4
+
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +1 -0
index e6718db..31c16aa 100644
@@ -16,6 +16,7 @@ PR = "r1"
 inherit update-alternatives
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/traceroute-2.0.18/traceroute-2.0.18.tar.gz \
+           file://filter-out-the-patches-from-subdirs.patch \
 "
 
 SRC_URI[md5sum] = "b7254149b7f081cce07f4b9e065ba5ef"
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 11 lines · Robert Yang

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Note: poky doesn't have this problem since it separates the ${S} and ${B}

Couldn't we change it for OE-Core as well? So we avoid having to patch the build system.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw
Quoted 8 lines · [Re: [oe] [meta-networking] [PATCH] traceroute: filter-out patches dir] On…
Quoted 7 lines · Robert Yang

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Quoted 7 lines
Quoted 4 lines

Note: poky doesn't have this problem since it separates the ${S} and ${B}

Couldn't we change it for OE-Core as well? So we avoid having to patch the build system.

That seems sensible. I've not seen any follow-up on this, so I'm going to drop this patch and assume this is a change being done in OE-Core (if it hasn't already been done there).

Signature · 2 lines
-Joe MacDonald.
:wq
#3 lore raw
In reply to Otavio Salvador
Quoted 8 lines · Otavio Salvador
Quoted 7 lines · Robert Yang

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Quoted 8 lines
Quoted 4 lines

Note: poky doesn't have this problem since it separates the ${S} and ${B}

Couldn't we change it for OE-Core as well? So we avoid having to patch the build system.

Hi Otavio,

I'm sorry, I don't quite understand what do you mean, this patch didn't change the build system, it changed the Make.rules.

// Robert

#4 lore raw
Quoted 20 lines · Robert Yang
Quoted 17 lines · Otavio Salvador
Quoted 12 lines · Robert Yang

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Note: poky doesn't have this problem since it separates the ${S} and ${B}

Quoted 6 lines
Quoted 3 lines

Couldn't we change it for OE-Core as well? So we avoid having to patch the build system.

I'm sorry, I don't quite understand what do you mean, this patch didn't change the build system, it changed the Make.rules.

To be sincere I didn't understand my comment as well ... don't recall what I thought... I'd say to ignore it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#5 lore raw
Quoted 25 lines · [Re: [oe] [meta-networking] [PATCH] traceroute: filter-out patches dir] On…
Quoted 24 lines · Robert Yang
Quoted 20 lines · Otavio Salvador
Quoted 5 lines · Robert Yang

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

Quoted 7 lines

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Note: poky doesn't have this problem since it separates the ${S} and ${B}

Couldn't we change it for OE-Core as well? So we avoid having to patch the build system.

Quoted 6 lines
Quoted 2 lines

I'm sorry, I don't quite understand what do you mean, this patch didn't change the build system, it changed the Make.rules.

To be sincere I didn't understand my comment as well ... don't recall what I thought... I'd say to ignore it.

Oh. Heh. I thought you were proposing a change to oe-core's build approach that would mean we didn't need to have a patch here to traceroute to separate $(B) and $(S). At least that's what I got from it based on the commit log. I'm still a bit confused about what's so different about traceroute's build system that it needs special handling
...

Signature · 2 lines
-Joe MacDonald.
:wq
#6 lore raw
Quoted 31 lines · Joe MacDonald
Quoted 29 lines · [Re: [oe] [meta-networking] [PATCH] traceroute: filter-out patches dir] On…
Quoted 26 lines · Robert Yang
Quoted 11 lines · Otavio Salvador
Quoted 8 lines · Robert Yang

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Quoted 9 lines
Quoted 4 lines

Note: poky doesn't have this problem since it separates the ${S} and ${B}

Couldn't we change it for OE-Core as well? So we avoid having to patch the build system.

I'm sorry, I don't quite understand what do you mean, this patch didn't change the build system, it changed the Make.rules.

Quoted 8 lines
Quoted 2 lines

To be sincere I didn't understand my comment as well ... don't recall what I thought... I'd say to ignore it.

Oh. Heh. I thought you were proposing a change to oe-core's build approach that would mean we didn't need to have a patch here to traceroute to separate $(B) and $(S). At least that's what I got from it based on the commit log. I'm still a bit confused about what's so different about traceroute's build system that it needs special handling

traceroute uses this:

EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS), $(subdirs))

the "patches" dir will be included in EXEDIRS which will cause errors, so we need filter out it.

// Robert

Quoted 9 lines

...

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#7 lore raw

ping.

// Robert

Quoted 69 lines · Robert Yang
Quoted 32 lines · Joe MacDonald

[Re: [oe] [meta-networking] [PATCH] traceroute: filter-out patches dir] On

Quoted 29 lines · 14.02.13 (Thu 08:40) Otavio Salvador wrote:
Quoted 26 lines · Robert Yang
Quoted 11 lines · Otavio Salvador
Quoted 8 lines · Robert Yang

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Quoted 9 lines
Quoted 4 lines

Note: poky doesn't have this problem since it separates the ${S} and ${B}

Couldn't we change it for OE-Core as well? So we avoid having to patch the build system.

I'm sorry, I don't quite understand what do you mean, this patch didn't change the build system, it changed the Make.rules.

Quoted 8 lines
Quoted 2 lines

To be sincere I didn't understand my comment as well ... don't recall what I thought... I'd say to ignore it.

Oh. Heh. I thought you were proposing a change to oe-core's build approach that would mean we didn't need to have a patch here to traceroute to separate $(B) and $(S). At least that's what I got from it based on the commit log. I'm still a bit confused about what's so different about traceroute's build system that it needs special handling

traceroute uses this:

EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS), $(subdirs))

the "patches" dir will be included in EXEDIRS which will cause errors, so we need filter out it.

// Robert

Quoted 9 lines

...

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw
In reply to Robert Yang

Merged, thanks.
-J.

Quoted 82 lines · [[oe] [meta-networking] [PATCH] traceroute: filter-out patches dir] On…

The $(subdirs) contains all the dirs under the ${B}, and this one:

do_unpack[cleandirs] = "${S}/patches"

will create a "patches" dir, then there will be compile errors, filter out the patches will fix the problem.

Note: poky doesn't have this problem since it separates the ${S} and ${B}

---
 .../filter-out-the-patches-from-subdirs.patch      | 47 ++++++++++++++++++++++
 .../traceroute/traceroute_2.0.18.bb                |  1 +
 2 files changed, 48 insertions(+)
 create mode 100644 meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch
meta-networking/recipes-support/traceroute/traceroute/filter-out-the-patches-from-subdirs.patch new file +47 -0
new file mode 100644
index 0000000..2c030b5
@@ -0,0 +1,47 @@
+From e273e0ebc753645555909bcc4874c72458b17891 Mon Sep 17 00:00:00 2001
+From: Robert Yang <[email protected]>
+Date: Fri, 17 Jan 2014 03:17:44 -0500
+Subject: [PATCH] Make.rules: filter-out the patches from subdirs
+
+The $(subdirs) contains all the dirs under the ${B}, and this one:
+
+do_unpack[cleandirs] = "${S}/patches"
+
+will create a "patches" dir, then there will be compile errors, filter
+out the patches will fix the problem.
+
+Note: poky doesn't have this problem since it separates the ${S} and
+${B}
+
+Upstream-Status: Inappropriate [OE specific]
+
+Signed-off-by: Robert Yang <[email protected]>
+---
+ Make.rules |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Make.rules b/Make.rules
+index b077cd5..0bfce2d 100644
+--- a/Make.rules
++++ b/Make.rules
+@@ -97,7 +97,7 @@ endif
+ subdirs := $(filter-out $(SKIPDIRS), $(subdirs))
+ endif
+ 
+-install install-%: subdirs := $(filter-out $(SKIPINSTALL), $(subdirs))
++install install-%: subdirs := $(filter-out $(SKIPINSTALL) patches, $(subdirs))
+ 
+ 
+ override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared)
+@@ -106,7 +106,7 @@ override MAKE += srcdir=$(srcdir) subdirs="$(subdirs)" shared=$(shared)
+ INCLUDEDIRS := $(filter $(INCLUDEDIRS), $(subdirs))
+ LIBDIRS := $(filter $(LIBDIRS), $(subdirs))
+ MODDIRS := $(filter $(MODDIRS), $(subdirs))
+-EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS), $(subdirs))
++EXEDIRS := $(filter-out $(INCLUDEDIRS) $(LIBDIRS) $(MODDIRS) patches, $(subdirs))
+ MODUSERS := $(filter $(MODUSERS), $(subdirs))
+ SBINUSERS := $(filter $(SBINUSERS), $(subdirs))
+ 
+-- 
+1.7.10.4
+
meta-networking/recipes-support/traceroute/traceroute_2.0.18.bb +1 -0
index e6718db..31c16aa 100644
@@ -16,6 +16,7 @@ PR = "r1"
 inherit update-alternatives
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/traceroute/traceroute/traceroute-2.0.18/traceroute-2.0.18.tar.gz \
+           file://filter-out-the-patches-from-subdirs.patch \
 "
 
 SRC_URI[md5sum] = "b7254149b7f081cce07f4b9e065ba5ef"
Signature · 2 lines
-Joe MacDonald.
:wq