bdwgc: add a recipe from oe-core
PATCH 1/1 bdwgc: add a recipe from oe-core
--- ...ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 +++++++++++++++ .../bdwgc/bdwgc/musl_header_fix.patch | 27 ++++++++++++++ meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb | 42 ++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 meta-oe/recipes-support/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch create mode 100644 meta-oe/recipes-support/bdwgc/bdwgc/musl_header_fix.patch create mode 100644 meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb
meta-oe/recipes-support/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch new file +29 -0
@@ -0,0 +1,29 @@ +configure.ac: add check for NO_GETCONTEXT definition + +Signed-off-by: Samuel Martin <[email protected]> +[[email protected]: add a comment, change variable name, use + AS_IF, remove debug traces, use AC_CHECK_FUNCS (as suggested by + Thomas)] +Signed-off-by: "Yann E. MORIN" <[email protected]> +Cc: Thomas Petazzoni <[email protected]> + +--- +Upstream-Status: Pending + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +--- bdwgc-7.2f.orig/configure.ac 2014-06-01 19:00:47.000000000 +0200 ++++ bdwgc-7.2f/configure.ac 2014-12-23 14:13:11.585716713 +0100 +@@ -365,6 +365,12 @@ + AC_MSG_RESULT($ac_cv_fno_strict_aliasing) + fi + ++# Check for getcontext (uClibc can be configured without it, for example) ++AC_CHECK_FUNCS([getcontext]) ++AS_IF([test "$ac_cv_func_getcontext" = "no"], ++ [CFLAGS="$CFLAGS -DNO_GETCONTEXT" ++ CPPFLAGS="$CPPFLAGS -DNO_GETCONTEXT"]) ++ + case "$host" in + # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64 + # and unnecessary everywhere.
meta-oe/recipes-support/bdwgc/bdwgc/musl_header_fix.patch new file +27 -0
@@ -0,0 +1,27 @@ +Add missing header to avoid: + +| 1472659610.016355: ../git/pthread_stop_world.c: In function 'GC_brief_async_signal_safe_sleep': +| 1472659610.0540252: ../git/pthread_stop_world.c:397:22: error: storage size of 'tv' isn't known +| 1472659610.0540252: struct timeval tv; +| 1472659610.0540252: ^~ +| 1472659610.054099: ../git/pthread_stop_world.c:397:22: warning: unused variable 'tv' [-Wunused-variable] +| 1472659610.054099: struct timeval tv; +| 1472659610.054099: ^~ +| 1472659610.054099: Makefile:1530: recipe for target 'pthread_stop_world.lo' failed + +in musl builds. + +Upstream-Status: Pending + +Index: git/pthread_stop_world.c +=================================================================== +--- git.orig/pthread_stop_world.c ++++ git/pthread_stop_world.c +@@ -45,6 +45,7 @@ + #include <semaphore.h> + #include <errno.h> + #include <unistd.h> ++#include <sys/time.h> + #include "atomic_ops.h" + + /* It's safe to call original pthread_sigmask() here. */
meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
2.11.0
Why should we take this to meta-oe? Please explain in commit message.
Is it just because of zile? +Randy who upgraded zile.
Quoted 160 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 +++++++++++++++ .../bdwgc/bdwgc/musl_header_fix.patch | 27 ++++++++++++++ meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb | 42 ++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 meta-oe/recipes-support/bdwgc/ bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch create mode 100644 meta-oe/recipes-support/bdwgc/ bdwgc/musl_header_fix.patch create mode 100644 meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb(quoted diff) +0
-0add-check-for-NO_GETCONTEXT-definition.patch b/meta-oe/recipes-support/
bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patchnew file mode 100644
index 000000000..8ef774f0fmeta-oe/recipes-support/bdwgc/bdwgc/0001-configure.ac- new file +0
-0add-check-for-NO_GETCONTEXT-definition.patch
meta-oe/recipes-support/bdwgc/bdwgc/0001-configure.ac- new file +30
-0@@ -0,0 +1,29 @@ +configure.ac: add check for NO_GETCONTEXT definition + +Signed-off-by: Samuel Martin <[email protected]> +[[email protected]: add a comment, change variable name, use + AS_IF, remove debug traces, use AC_CHECK_FUNCS (as suggested by + Thomas)] +Signed-off-by: "Yann E. MORIN" <[email protected]> +Cc: Thomas Petazzoni <[email protected]> + +--- +Upstream-Status: Pending + configure.ac | 6 ++++++ + 1 file changed, 6 insertions(+) + +--- bdwgc-7.2f.orig/configure.ac 2014-06-01 19:00:47.000000000 +0200 ++++ bdwgc-7.2f/configure.ac 2014-12-23 14:13:11.585716713 +0100 +@@ -365,6 +365,12 @@ + AC_MSG_RESULT($ac_cv_fno_strict_aliasing) + fi + ++# Check for getcontext (uClibc can be configured without it, for example) ++AC_CHECK_FUNCS([getcontext]) ++AS_IF([test "$ac_cv_func_getcontext" = "no"], ++ [CFLAGS="$CFLAGS -DNO_GETCONTEXT" ++ CPPFLAGS="$CPPFLAGS -DNO_GETCONTEXT"]) ++ + case "$host" in + # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64 + # and unnecessary everywhere.meta-oe/recipes-support/bdwgc/bdwgc/musl_header_fix.patch new file +3
-0@@ -0,0 +1,27 @@ +Add missing header to avoid: + +| 1472659610.016355: ../git/pthread_stop_world.c: In function'
GC_brief_async_signal_safe_sleep':
+| 1472659610.0540252:../git/pthread_stop_world.c:397:22: error: storage size of 'tv' isn't known+| 1472659610.0540252: struct timeval tv; +| 1472659610.0540252: ^~ +| 1472659610.054099: ../git/pthread_stop_world.c:397:22: warning: unused variable 'tv' [-Wunused-variable] +| 1472659610.054099: struct timeval tv; +| 1472659610.054099: ^~ +| 1472659610.054099: Makefile:1530: recipe for target'pthread_stop_world.lo' failed
meta-oe/recipes-support/bdwgc/bdwgc/musl_header_fix.patch new file +17
-0+ +in musl builds. + +Upstream-Status: Pending + +Index: git/pthread_stop_world.c +=================================================================== +--- git.orig/pthread_stop_world.c ++++ git/pthread_stop_world.c +@@ -45,6 +45,7 @@ + #include <semaphore.h> + #include <errno.h> + #include <unistd.h> ++#include <sys/time.h> + #include "atomic_ops.h" + + /* It's safe to call original pthread_sigmask() here. */meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb new file +3
-0@@ -0,0 +1,42 @@ +SUMMARY = "A garbage collector for C and C++" + +DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector canbe\
+ used as a garbage collecting replacement for C malloc or C++ new. It allows\
+ you to allocate memory basically as you normally would, without explicitly\
+ deallocating memory that is no longer useful. The collector automatically\
+ recycles memory when it determines that it can no longer be otherwise\
+ accessed.\
+ The collector is also used by a number of programming language\
+ implementations that either use C as intermediate code, want to facilitate\
+ easier interoperation with C libraries, or just prefer the simple collector\
+ interface.\
+ Alternatively, the garbage collector may be used as a leak detector for C\
+ or C++ programs, though that is not its primary goal.\
+ Empirically, this collector works with most unmodified C programs, simply\
+ by replacing malloc withGC_malloccalls, replacing realloc with GC_realloc\
+ calls, and removing free calls."meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb new file +5
-0+ +HOMEPAGE = "http://www.hboehm.info/gc/" +SECTION = "devel" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://README.QUICK;md5=
4f81f24ec69726c312487c2ac740e9e3"meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb new file +4
-0+ +SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa" +SRC_URI = "git://github.com/ivmai/bdwgc.git \ + file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch\
meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb new file +14
-0+ file://musl_header_fix.patch \ + " + +FILES_${PN}-doc = "${datadir}" + +S = "${WORKDIR}/git" + +ARM_INSTRUCTION_SET = "arm" + +inherit autotools pkgconfig + +# by default use external libatomic-ops +PACKAGECONFIG ??= "libatomic-ops" +PACKAGECONFIG[libatomic-ops] = "--with-libatomic-ops=yes,--with-libatomic-ops=no,libatomic-ops"
meta-oe/recipes-support/bdwgc/bdwgc_7.6.0.bb new file +2
-1+ +BBCLASSEXTEND = "native nativesdk" --2.11.0
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 3 lines · Martin Jansa
Why should we take this to meta-oe? Please explain in commit message.
Is it just because of zile? +Randy who upgraded zile.
Yes, it's because of that. I checked latest upstream of zile, and it still seems to require it.
Do you want me to resend the patch?
Alex
Quoted 8 lines · Alexander Kanavin
Quoted 3 lines · Martin Jansa
Why should we take this to meta-oe? Please explain in commit message.
Is it just because of zile? +Randy who upgraded zile.
Yes, it's because of that. I checked latest upstream of zile, and it still seems to require it.
Do you want me to resend the patch?
Given that Martin said:
"Please explain in commit message."
yes, you should send a V2 patch.
../Randy
Quoted 3 lines
Alex
Signature · 2 lines
# Randy MacLeod. SMTS, Linux, Wind River Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, Canada, K2K 2W5
Quoted 10 lines · Randy MacLeod
Quoted 6 lines
Quoted 1 line
Is it just because of zile? +Randy who upgraded zile.
Yes, it's because of that. I checked latest upstream of zile, and it still seems to require it.
Do you want me to resend the patch?
Given that Martin said:
"Please explain in commit message."
yes, you should send a V2 patch.
I'm already seeing the patch in master-next though. So still not sure - would really prefer to get a first hand answer.
Alex
Yes, send v2.
Quoted 23 lines · Alexander Kanavin
On 06/16/2017 07:34 PM, Randy MacLeod wrote:
Is it just because of zile? +Randy who upgraded zile.
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Yes, it's because of that. I checked latest upstream of zile, and it still seems to require it.
Quoted 7 lines
Quoted 2 lines
Do you want me to resend the patch?
Given that Martin said:
"Please explain in commit message."
yes, you should send a V2 patch.I'm already seeing the patch in master-next though. So still not sure - would really prefer to get a first hand answer.
Alex