Skip to contentSkip to conversation

ltp-ddt: remove scheduler trace patch no longer required

PATCH In review Carlos Hernandez 2 participants 8 messages Mar 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ltp-ddt: remove scheduler trace patch no longer required

Latest version of ltp fixes the problem and the patch 0029-trace_shed-Fix-build-with-musl.patch no longer applies.

---
 .../0029-trace_shed-Fix-build-with-musl.patch      | 32 ----------------------
 .../recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb   |  3 +-
 2 files changed, 1 insertion(+), 34 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch deleted +0 -32
deleted file mode 100644
index f7ece9e18ef0..000000000000
@@ -1,32 +0,0 @@
-From 2f8a57f66a94210d34dd0361659a8297cf3d813f Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 8 Jan 2016 07:29:24 +0000
-Subject: [PATCH 29/32] trace_shed: Fix build with musl
-
-Errors on musl are
-
-trace_sched.c:425:16: error: invalid operands to binary & (have
-'thread_sched_t * {aka struct <anonymous> *}' and 'int')
-      thrd_ndx, WEXITSTATUS(status));
-
-Signed-off-by: Khem Raj <[email protected]>
----
- testcases/kernel/sched/tool/trace_sched.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/testcases/kernel/sched/tool/trace_sched.c b/testcases/kernel/sched/tool/trace_sched.c
-index 7815686..30dca5f 100644
---- a/testcases/kernel/sched/tool/trace_sched.c
-+++ b/testcases/kernel/sched/tool/trace_sched.c
-@@ -422,7 +422,7 @@ int main(int argc,		/* number of input parameters.                        */
- 			if (status == (thread_sched_t *) - 1) {
- 				fprintf(stderr,
- 					"thread [%d] - process exited with errors %d\n",
--					thrd_ndx, WEXITSTATUS(status));
-+					thrd_ndx, WEXITSTATUS((int)status));
- 				exit(-1);
- 			} else {
- 				exp_prio[thrd_ndx] = status->exp_prio;
--- 
-2.7.0
-
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb +1 -2
index 22b962141dba..3bb17c8f8535 100644
@@ -17,8 +17,7 @@ inherit autotools-brokensep
 SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
 BRANCH ?= "master"
 
-SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
-    file://0029-trace_shed-Fix-build-with-musl.patch"
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 ltp-ddt: update to latest version

---
 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb +1 -1
index 3bb17c8f8535..8908092e8e09 100644
@@ -14,7 +14,7 @@ RDEPENDS_${PN} += "pm-qa serialcheck"
 
 inherit autotools-brokensep
 
-SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
+SRCREV = "7b43afae8b931541388b0a7e6f65d7ceb6d01b3e"
 BRANCH ?= "master"
 
 SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 2/2] ltp-ddt: update to latest version

Should probably change the version as well - it's no longer 20160510.

Quoted 25 lines · Carlos Hernandez
---
 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb +1 -1
index 3bb17c8f8535..8908092e8e09 100644
@@ -14,7 +14,7 @@ RDEPENDS_${PN} += "pm-qa serialcheck"
 
 inherit autotools-brokensep
 
-SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
+SRCREV = "7b43afae8b931541388b0a7e6f65d7ceb6d01b3e"
 BRANCH ?= "master"
 
 SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#3 lore raw

PATCH v2 2/2 ltp-ddt: update to latest ltp release 20170116

In reply to Carlos Hernandez
---
 .../recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb   | 66 ----------------------
 .../recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb   | 66 ++++++++++++++++++++++
 2 files changed, 66 insertions(+), 66 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb
 create mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb deleted +0 -66
deleted file mode 100644
index 3bb17c8f8535..000000000000
@@ -1,66 +0,0 @@
-SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
-HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
-SECTION = "console/utils"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-
-PR = "r10"
-PV_append = "+git${SRCPV}"
-
-PROVIDES += "ltp"
-DEPENDS += "zip-native alsa-lib libaio"
-
-RDEPENDS_${PN} += "pm-qa serialcheck"
-
-inherit autotools-brokensep
-
-SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
-BRANCH ?= "master"
-
-SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
-
-S = "${WORKDIR}/git"
-
-LTPROOT = "/opt/ltp"
-
-EXTRA_OEMAKE_append = " \
-    prefix=${LTPROOT} \
-    CROSS_COMPILE=${HOST_PREFIX} \
-    SKIP_IDCHECK=1 \
-    KERNEL_USR_INC=${STAGING_INCDIR} \
-    ALSA_INCPATH=${STAGING_INCDIR} \
-    ALSA_LIBPATH=${STAGING_LIBDIR} \
-    RANLIB=${RANLIB} \
-    DESTDIR=${D} \
-    CC='${CC}' \
-"
-
-TARGET_CC_ARCH += "${LDFLAGS}"
-
-FILES_${PN}-dbg += " \
-    ${LTPROOT}/.debug \
-    ${LTPROOT}/bin/.debug \
-    ${LTPROOT}/runtest/.debug \
-    ${LTPROOT}/testcases/bin/.debug \
-    ${LTPROOT}/testcases/bin/*/bin/.debug \
-    ${LTPROOT}/testcases/bin/*/test/.debug \
-    ${LTPROOT}/testcases/bin/ddt/.debug \
-    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
-    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
-    ${LTPROOT}/testcases/realtime/*/*/.debug \
-"
-
-FILES_${PN}-staticdev += "${LTPROOT}/lib"
-FILES_${PN} += "${LTPROOT}/*"
-
-# The makefiles make excessive use of make -C and several include testcases.mk
-# which triggers a build of the syscall header. To reproduce, build ltp,
-# then delete the header, then "make -j XX" and watch regen.sh run multiple
-# times. Its easier to generate this once here instead.
-do_compile_prepend () {
-    ( make -C ${B}/testcases/kernel include/linux_syscall_numbers.h )
-}
-
-do_install() {
-    oe_runmake install
-}
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb new file +66 -0

66 lines not on this page · raw message

Signature · 1 line
2.7.4
#4 lore raw

Re: [PATCH 2/2 v2] ltp-ddt: update to latest ltp release 20170116

Did you forget -M/-C flag in git format-patch? :)

Quoted 159 lines · Carlos Hernandez
---
 .../recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb   | 66 ----------------------
 .../recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb   | 66 ++++++++++++++++++++++
 2 files changed, 66 insertions(+), 66 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb
 create mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb deleted +0 -66
deleted file mode 100644
index 3bb17c8f8535..000000000000
@@ -1,66 +0,0 @@
-SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
-HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
-SECTION = "console/utils"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-
-PR = "r10"
-PV_append = "+git${SRCPV}"
-
-PROVIDES += "ltp"
-DEPENDS += "zip-native alsa-lib libaio"
-
-RDEPENDS_${PN} += "pm-qa serialcheck"
-
-inherit autotools-brokensep
-
-SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
-BRANCH ?= "master"
-
-SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
-
-S = "${WORKDIR}/git"
-
-LTPROOT = "/opt/ltp"
-
-EXTRA_OEMAKE_append = " \
-    prefix=${LTPROOT} \
-    CROSS_COMPILE=${HOST_PREFIX} \
-    SKIP_IDCHECK=1 \
-    KERNEL_USR_INC=${STAGING_INCDIR} \
-    ALSA_INCPATH=${STAGING_INCDIR} \
-    ALSA_LIBPATH=${STAGING_LIBDIR} \
-    RANLIB=${RANLIB} \
-    DESTDIR=${D} \
-    CC='${CC}' \
-"
-
-TARGET_CC_ARCH += "${LDFLAGS}"
-
-FILES_${PN}-dbg += " \
-    ${LTPROOT}/.debug \
-    ${LTPROOT}/bin/.debug \
-    ${LTPROOT}/runtest/.debug \
-    ${LTPROOT}/testcases/bin/.debug \
-    ${LTPROOT}/testcases/bin/*/bin/.debug \
-    ${LTPROOT}/testcases/bin/*/test/.debug \
-    ${LTPROOT}/testcases/bin/ddt/.debug \
-    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
-    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
-    ${LTPROOT}/testcases/realtime/*/*/.debug \
-"
-
-FILES_${PN}-staticdev += "${LTPROOT}/lib"
-FILES_${PN} += "${LTPROOT}/*"
-
-# The makefiles make excessive use of make -C and several include testcases.mk
-# which triggers a build of the syscall header. To reproduce, build ltp,
-# then delete the header, then "make -j XX" and watch regen.sh run multiple
-# times. Its easier to generate this once here instead.
-do_compile_prepend () {
-    ( make -C ${B}/testcases/kernel include/linux_syscall_numbers.h )
-}
-
-do_install() {
-    oe_runmake install
-}
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb new file +66 -0
new file mode 100644
index 000000000000..2d78fa835c9f
@@ -0,0 +1,66 @@
+SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
+HOMEPAGE = "http://arago-project.org/git/projects/test-automation/ltp-ddt.git"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+PR = "r11"
+PV_append = "+git${SRCPV}"
+
+PROVIDES += "ltp"
+DEPENDS += "zip-native alsa-lib libaio"
+
+RDEPENDS_${PN} += "pm-qa serialcheck"
+
+inherit autotools-brokensep
+
+SRCREV = "7b43afae8b931541388b0a7e6f65d7ceb6d01b3e"
+BRANCH ?= "master"
+
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
+
+S = "${WORKDIR}/git"
+
+LTPROOT = "/opt/ltp"
+
+EXTRA_OEMAKE_append = " \
+    prefix=${LTPROOT} \
+    CROSS_COMPILE=${HOST_PREFIX} \
+    SKIP_IDCHECK=1 \
+    KERNEL_USR_INC=${STAGING_INCDIR} \
+    ALSA_INCPATH=${STAGING_INCDIR} \
+    ALSA_LIBPATH=${STAGING_LIBDIR} \
+    RANLIB=${RANLIB} \
+    DESTDIR=${D} \
+    CC='${CC}' \
+"
+
+TARGET_CC_ARCH += "${LDFLAGS}"
+
+FILES_${PN}-dbg += " \
+    ${LTPROOT}/.debug \
+    ${LTPROOT}/bin/.debug \
+    ${LTPROOT}/runtest/.debug \
+    ${LTPROOT}/testcases/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/*/test/.debug \
+    ${LTPROOT}/testcases/bin/ddt/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/bin/.debug \
+    ${LTPROOT}/testcases/bin/ddt/*/test/.debug \
+    ${LTPROOT}/testcases/realtime/*/*/.debug \
+"
+
+FILES_${PN}-staticdev += "${LTPROOT}/lib"
+FILES_${PN} += "${LTPROOT}/*"
+
+# The makefiles make excessive use of make -C and several include testcases.mk
+# which triggers a build of the syscall header. To reproduce, build ltp,
+# then delete the header, then "make -j XX" and watch regen.sh run multiple
+# times. Its easier to generate this once here instead.
+do_compile_prepend () {
+    ( make -C ${B}/testcases/kernel include/linux_syscall_numbers.h )
+}
+
+do_install() {
+    oe_runmake install
+}
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#5 lore raw

PATCH v3 1/1 ltp-ddt: update to latest ltp release 20170116

In reply to Carlos Hernandez

remove scheduler trace patch no longer required Latest version of ltp fixes the problem and the patch 0029-trace_shed-Fix-build-with-musl.patch no longer applies.

---
 .../0029-trace_shed-Fix-build-with-musl.patch      | 32 ----------------------
 .../{ltp-ddt_20160510.bb => ltp-ddt_20170116.bb}   |  7 ++---
 2 files changed, 3 insertions(+), 36 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch
 rename meta-arago-extras/recipes-devtools/ltp-ddt/{ltp-ddt_20160510.bb => ltp-ddt_20170116.bb} (92%)
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch deleted +0 -32
deleted file mode 100644
index f7ece9e18ef0..000000000000
@@ -1,32 +0,0 @@
-From 2f8a57f66a94210d34dd0361659a8297cf3d813f Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 8 Jan 2016 07:29:24 +0000
-Subject: [PATCH 29/32] trace_shed: Fix build with musl
-
-Errors on musl are
-
-trace_sched.c:425:16: error: invalid operands to binary & (have
-'thread_sched_t * {aka struct <anonymous> *}' and 'int')
-      thrd_ndx, WEXITSTATUS(status));
-
-Signed-off-by: Khem Raj <[email protected]>
----
- testcases/kernel/sched/tool/trace_sched.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/testcases/kernel/sched/tool/trace_sched.c b/testcases/kernel/sched/tool/trace_sched.c
-index 7815686..30dca5f 100644
---- a/testcases/kernel/sched/tool/trace_sched.c
-+++ b/testcases/kernel/sched/tool/trace_sched.c
-@@ -422,7 +422,7 @@ int main(int argc,		/* number of input parameters.                        */
- 			if (status == (thread_sched_t *) - 1) {
- 				fprintf(stderr,
- 					"thread [%d] - process exited with errors %d\n",
--					thrd_ndx, WEXITSTATUS(status));
-+					thrd_ndx, WEXITSTATUS((int)status));
- 				exit(-1);
- 			} else {
- 				exp_prio[thrd_ndx] = status->exp_prio;
--- 
-2.7.0
-
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb renamed from meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb +3 -4
similarity index 92%
rename from meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb
rename to meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb
index 22b962141dba..2d78fa835c9f 100644
@@ -4,7 +4,7 @@ SECTION = "console/utils"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-PR = "r10"
+PR = "r11"
 PV_append = "+git${SRCPV}"
 
 PROVIDES += "ltp"
@@ -14,11 +14,10 @@ RDEPENDS_${PN} += "pm-qa serialcheck"
 
 inherit autotools-brokensep
 
-SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
+SRCREV = "7b43afae8b931541388b0a7e6f65d7ceb6d01b3e"
 BRANCH ?= "master"
 
-SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
-    file://0029-trace_shed-Fix-build-with-musl.patch"
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.7.4
#6 lore raw

Re: [PATCH v3] ltp-ddt: update to latest ltp release 20170116

Ack, thanks.

Quoted 87 lines · Carlos Hernandez

remove scheduler trace patch no longer required Latest version of ltp fixes the problem and the patch 0029-trace_shed-Fix-build-with-musl.patch no longer applies.

---
 .../0029-trace_shed-Fix-build-with-musl.patch      | 32 ----------------------
 .../{ltp-ddt_20160510.bb => ltp-ddt_20170116.bb}   |  7 ++---
 2 files changed, 3 insertions(+), 36 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch
 rename meta-arago-extras/recipes-devtools/ltp-ddt/{ltp-ddt_20160510.bb => ltp-ddt_20170116.bb} (92%)
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch deleted +0 -32
deleted file mode 100644
index f7ece9e18ef0..000000000000
@@ -1,32 +0,0 @@
-From 2f8a57f66a94210d34dd0361659a8297cf3d813f Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 8 Jan 2016 07:29:24 +0000
-Subject: [PATCH 29/32] trace_shed: Fix build with musl
-
-Errors on musl are
-
-trace_sched.c:425:16: error: invalid operands to binary & (have
-'thread_sched_t * {aka struct <anonymous> *}' and 'int')
-      thrd_ndx, WEXITSTATUS(status));
-
-Signed-off-by: Khem Raj <[email protected]>
----
- testcases/kernel/sched/tool/trace_sched.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/testcases/kernel/sched/tool/trace_sched.c b/testcases/kernel/sched/tool/trace_sched.c
-index 7815686..30dca5f 100644
---- a/testcases/kernel/sched/tool/trace_sched.c
-+++ b/testcases/kernel/sched/tool/trace_sched.c
-@@ -422,7 +422,7 @@ int main(int argc,		/* number of input parameters.                        */
- 			if (status == (thread_sched_t *) - 1) {
- 				fprintf(stderr,
- 					"thread [%d] - process exited with errors %d\n",
--					thrd_ndx, WEXITSTATUS(status));
-+					thrd_ndx, WEXITSTATUS((int)status));
- 				exit(-1);
- 			} else {
- 				exp_prio[thrd_ndx] = status->exp_prio;
--- 
-2.7.0
-
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb renamed from meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb +3 -4
similarity index 92%
rename from meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb
rename to meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20170116.bb
index 22b962141dba..2d78fa835c9f 100644
@@ -4,7 +4,7 @@ SECTION = "console/utils"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-PR = "r10"
+PR = "r11"
 PV_append = "+git${SRCPV}"
 
 PROVIDES += "ltp"
@@ -14,11 +14,10 @@ RDEPENDS_${PN} += "pm-qa serialcheck"
 
 inherit autotools-brokensep
 
-SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
+SRCREV = "7b43afae8b931541388b0a7e6f65d7ceb6d01b3e"
 BRANCH ?= "master"
 
-SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
-    file://0029-trace_shed-Fix-build-with-musl.patch"
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
 
 S = "${WORKDIR}/git"
 
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#7 lore raw
In reply to Carlos Hernandez

This will break bisect-ability - since removing the patch either before or after the upgrade can cause breakage, the only way is to do it in the same commit as the upgrade itself. Sure, commits have to be as granular, as possible, but at the same time they should be atomic.

Quoted 69 lines · Carlos Hernandez

Latest version of ltp fixes the problem and the patch 0029-trace_shed-Fix-build-with-musl.patch no longer applies.

---
 .../0029-trace_shed-Fix-build-with-musl.patch      | 32 ----------------------
 .../recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb   |  3 +-
 2 files changed, 1 insertion(+), 34 deletions(-)
 delete mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt/0029-trace_shed-Fix-build-with-musl.patch deleted +0 -32
deleted file mode 100644
index f7ece9e18ef0..000000000000
@@ -1,32 +0,0 @@
-From 2f8a57f66a94210d34dd0361659a8297cf3d813f Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 8 Jan 2016 07:29:24 +0000
-Subject: [PATCH 29/32] trace_shed: Fix build with musl
-
-Errors on musl are
-
-trace_sched.c:425:16: error: invalid operands to binary & (have
-'thread_sched_t * {aka struct <anonymous> *}' and 'int')
-      thrd_ndx, WEXITSTATUS(status));
-
-Signed-off-by: Khem Raj <[email protected]>
----
- testcases/kernel/sched/tool/trace_sched.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/testcases/kernel/sched/tool/trace_sched.c b/testcases/kernel/sched/tool/trace_sched.c
-index 7815686..30dca5f 100644
---- a/testcases/kernel/sched/tool/trace_sched.c
-+++ b/testcases/kernel/sched/tool/trace_sched.c
-@@ -422,7 +422,7 @@ int main(int argc,		/* number of input parameters.                        */
- 			if (status == (thread_sched_t *) - 1) {
- 				fprintf(stderr,
- 					"thread [%d] - process exited with errors %d\n",
--					thrd_ndx, WEXITSTATUS(status));
-+					thrd_ndx, WEXITSTATUS((int)status));
- 				exit(-1);
- 			} else {
- 				exp_prio[thrd_ndx] = status->exp_prio;
--- 
-2.7.0
-
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20160510.bb +1 -2
index 22b962141dba..3bb17c8f8535 100644
@@ -17,8 +17,7 @@ inherit autotools-brokensep
 SRCREV = "429d12779e28e1997f656db19c5bf73edf9e9365"
 BRANCH ?= "master"
 
-SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH} \
-    file://0029-trace_shed-Fix-build-with-musl.patch"
+SRC_URI = "git://arago-project.org/git/projects/test-automation/ltp-ddt.git;branch=${BRANCH}"
 
 S = "${WORKDIR}/git"
 
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago