package/trace-cmd: update download url
PATCH 1/2 package/trace-cmd: update download url
The git repository has been moved to http://www.kernel.org/pub/ which allows to use $(BR2_KERNEL_MIRROR)
--- package/trace-cmd/trace-cmd.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/trace-cmd/trace-cmd.mk +1 -1
@@ -5,7 +5,7 @@ ################################################################################ TRACE_CMD_VERSION = trace-cmd-v2.2.1 -TRACE_CMD_SITE = http://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git +TRACE_CMD_SITE = $(BR2_KERNEL_MIRROR)/scm/linux/kernel/git/rostedt/trace-cmd.git TRACE_CMD_SITE_METHOD = git TRACE_CMD_INSTALL_STAGING = YES TRACE_CMD_LICENSE = GPLv2 LGPLv2.1
Signature · 1 line
1.9.3
PATCH 2/2 package/trace-cmd: bump to version 2.3.2
The first patch "use-pkg-config-instead-of-python-config" has been applied upstream.
The flag _GNU_SOURCE is now always defined in Makefile, so it can be removed from trace-cmd.mk
CPPFLAGS are appended to CFLAGS and are used to add extra flags, but the flag _LARGEFILE64_SOURCE in TARGET_CPPFLAGS is already defined in source files, which causes a build error. CPPFLAGS are cleared before passing them to the trace-cmd Makefile.
--- .../trace-cmd-0001-Fix-ptrace-detection.patch | 36 ++++++++++++++++++ ...e-use-pkg-config-instead-of-python-config.patch | 43 ---------------------- .../trace-cmd-0002-Fix-ptrace-detection.patch | 36 ------------------ package/trace-cmd/trace-cmd.mk | 10 ++++- 4 files changed, 44 insertions(+), 81 deletions(-) create mode 100644 package/trace-cmd/trace-cmd-0001-Fix-ptrace-detection.patch delete mode 100644 package/trace-cmd/trace-cmd-0001-Makefile-use-pkg-config-instead-of-python-config.patch delete mode 100644 package/trace-cmd/trace-cmd-0002-Fix-ptrace-detection.patch
package/trace-cmd/trace-cmd-0001-Fix-ptrace-detection.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 0070081ffe65a4fbe442044ddfcc818593c98e33 Mon Sep 17 00:00:00 2001 +From: Romain Naour <[email protected]> +Date: Wed, 30 Oct 2013 22:35:34 +0100 +Subject: [PATCH] Fix ptrace detection + +Ptrace support detection is ignored when CFLAGS is set in command +arguments. Use override in Makefile to add -DWARN_NO_PTRACE and +-DNO_PTRACE in CFLAGS if ptrace is not available. + +Signed-off-by: Romain Naour <[email protected]> +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 83329ca..01b4f45 100644 +--- a/Makefile ++++ b/Makefile +@@ -223,12 +223,12 @@ LDFLAGS ?= + ifndef NO_PTRACE + ifneq ($(call try-cc,$(SOURCE_PTRACE),),y) + NO_PTRACE = 1 +- CFLAGS += -DWARN_NO_PTRACE ++ override CFLAGS += -DWARN_NO_PTRACE + endif + endif + + ifdef NO_PTRACE +-CFLAGS += -DNO_PTRACE ++override CFLAGS += -DNO_PTRACE + endif + + # Append required CFLAGS +-- +1.8.1.2 +
package/trace-cmd/trace-cmd-0001-Makefile-use-pkg-config-instead-of-python-config.patch deleted +0 -43
43 lines not on this page · raw message
package/trace-cmd/trace-cmd-0002-Fix-ptrace-detection.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From 0070081ffe65a4fbe442044ddfcc818593c98e33 Mon Sep 17 00:00:00 2001 -From: Romain Naour <[email protected]> -Date: Wed, 30 Oct 2013 22:35:34 +0100 -Subject: [PATCH] Fix ptrace detection - -Ptrace support detection is ignored when CFLAGS is set in command -arguments. Use override in Makefile to add -DWARN_NO_PTRACE and --DNO_PTRACE in CFLAGS if ptrace is not available. - -Signed-off-by: Romain Naour <[email protected]> ---- - Makefile | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Makefile b/Makefile -index 83329ca..01b4f45 100644 ---- a/Makefile -+++ b/Makefile -@@ -223,12 +223,12 @@ LDFLAGS ?= - ifndef NO_PTRACE - ifneq ($(call try-cc,$(SOURCE_PTRACE),),y) - NO_PTRACE = 1 -- CFLAGS += -DWARN_NO_PTRACE -+ override CFLAGS += -DWARN_NO_PTRACE - endif - endif - - ifdef NO_PTRACE --CFLAGS += -DNO_PTRACE -+override CFLAGS += -DNO_PTRACE - endif - - # Append required CFLAGS --- -1.8.1.2 -
package/trace-cmd/trace-cmd.mk +8 -2
@@ -4,7 +4,7 @@ # ################################################################################ -TRACE_CMD_VERSION = trace-cmd-v2.2.1 +TRACE_CMD_VERSION = trace-cmd-v2.3.2 TRACE_CMD_SITE = $(BR2_KERNEL_MIRROR)/scm/linux/kernel/git/rostedt/trace-cmd.git TRACE_CMD_SITE_METHOD = git TRACE_CMD_INSTALL_STAGING = YES
@@ -25,11 +25,17 @@ endif # trace-cmd already defines _LARGEFILE64_SOURCE when necessary, # redefining it on the command line causes build problems. -TRACE_CMD_CFLAGS = $(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS)) -D_GNU_SOURCE +TRACE_CMD_CFLAGS = $(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS)) + +# trace-cmd use CPPFLAGS to add some extra flags. +# But like for CFLAGS, $(TARGET_CPPFLAGS) contains _LARGEFILE64_SOURCE +# that causes build problems. +TRACE_CMD_CPPFLAGS = "" define TRACE_CMD_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TRACE_CMD_CFLAGS)" \ + CPPFLAGS="$(TRACE_CMD_CPPFLAGS)" \ $(TRACE_CMD_MAKE_OPTS) \ -C $(@D) all endef
Signature · 1 line
1.9.3
PATCH 2/2 package/trace-cmd: bump to version 2.3.2
Dear Romain Naour,
Quoted 7 lines · Romain Naour
The first patch "use-pkg-config-instead-of-python-config" has been applied upstream.
The flag
_GNU_SOURCEis now always defined inMakefile, so it can be removed from trace-cmd.mkCPPFLAGS are appended to CFLAGS and are used to add extra flags, but the flag
_LARGEFILE64_SOURCEinTARGET_CPPFLAGSis already defined in source files, which causes a build error. CPPFLAGS are cleared before passing them to the trace-cmdMakefile.
Please wrap your commit message properly.
package/trace-cmd/trace-cmd.mk endif · line 33
Quoted 9 lines
# trace-cmd already defines _LARGEFILE64_SOURCE when necessary, # redefining it on the command line causes build problems.package/trace-cmd/trace-cmd.mk +6
-1-TRACE_CMD_CFLAGS = $(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS)) -D_GNU_SOURCE +TRACE_CMD_CFLAGS = $(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS)) + +# trace-cmd use CPPFLAGS to add some extra flags. +# But like for CFLAGS, $(TARGET_CPPFLAGS) contains _LARGEFILE64_SOURCE +# that causes build problems. +TRACE_CMD_CPPFLAGS = ""
And therefore why don't you use the same strategy as the one used for CFLAGS, by filtering out the -D_LARGEFILE64_SOURCE ?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 package/trace-cmd: bump to version 2.3.2
Hi Thomas,
Le 08/06/2014 15:22, Thomas Petazzoni a ?crit :
Quoted 5 lines
Dear Romain Naour,
Quoted 2 lines · Romain Naour
The first patch "use-pkg-config-instead-of-python-config" has been applied upstream.
Quoted 7 lines
Quoted 5 lines
The flag
_GNU_SOURCEis now always defined inMakefile, so it can be removed from trace-cmd.mkCPPFLAGS are appended to CFLAGS and are used to add extra flags, but the flag
_LARGEFILE64_SOURCEinTARGET_CPPFLAGSis already defined in source files, which causes a build error. CPPFLAGS are cleared before passing them to the trace-cmdMakefile.Please wrap your commit message properly.
Sure, sorry for that :-/
Quoted 13 lines
package/trace-cmd/trace-cmd.mk endif · line 33
Quoted 10 lines
# trace-cmd already defines _LARGEFILE64_SOURCE when necessary, # redefining it on the command line causes build problems.package/trace-cmd/trace-cmd.mk +6
-1-TRACE_CMD_CFLAGS = $(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS)) -D_GNU_SOURCE +TRACE_CMD_CFLAGS = $(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS)) + +# trace-cmd use CPPFLAGS to add some extra flags. +# But like for CFLAGS, $(TARGET_CPPFLAGS) contains _LARGEFILE64_SOURCE +# that causes build problems. +TRACE_CMD_CPPFLAGS = ""And therefore why don't you use the same strategy as the one used for CFLAGS, by filtering out the -D_LARGEFILE64_SOURCE ?
That's what I did at first, but I wasn't sure since CPPFLAGS and CFLAGS add the same set of flags.
Ok, I will send a v2 with that fixed.
Best regards,
Romain
PATCH 1/2 package/trace-cmd: update download url
In reply to Romain NaourDear Romain Naour,
Quoted 1 line · Romain Naour
The git repository has been moved to http://www.kernel.org/pub/ which allows to use $(BR2_KERNEL_MIRROR)
Next time, please wrap your commit messages properly.
Patch applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com