All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][PATCH 1/6] icedtea7-native: provide packageconfig for giflib
@ 2017-09-24 21:05 Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 2/6] openjdk-7-common: provide packageconfig for giflib and krb5 Maxin B. John
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Maxin B. John @ 2017-09-24 21:05 UTC (permalink / raw)
  To: yocto

Provide PACKAGECONFIG for giflib to remove dependency on
meta-oe layer.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 recipes-core/icedtea/icedtea7-native.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 55cb7e7..7b2f497 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -5,7 +5,7 @@ INC_PR = "r1"
 
 DEPENDS = "virtual/javac-native virtual/java-native classpath-native \
            rhino-native ant-native libxslt-native attr-native \
-           giflib-native jpeg-native libpng-native \
+           jpeg-native libpng-native \
            glib-2.0-native freetype-native zlib-native \
            fontconfig-native zip-native \
 	   unzip-native make-native util-linux-native\
@@ -13,6 +13,7 @@ DEPENDS = "virtual/javac-native virtual/java-native classpath-native \
 
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xproto-native libxt-native libxext-native libxrender-native"
+PACKAGECONFIG[gif] = ",--disable-system-gif, giflib-native"
 
 OEMAKE_BUILD_HEADLESS_ONLY = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}"
 CFLAGS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', ' -DHEADLESS=true', d)}"
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [meta-java][PATCH 2/6] openjdk-7-common: provide packageconfig for giflib and krb5
  2017-09-24 21:05 [meta-java][PATCH 1/6] icedtea7-native: provide packageconfig for giflib Maxin B. John
@ 2017-09-24 21:05 ` Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 3/6] openjdk-8-cross: provide packageconfig for krb5 Maxin B. John
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Maxin B. John @ 2017-09-24 21:05 UTC (permalink / raw)
  To: yocto

Provide PACKAGECONFIG for giflib and krb5 to remove dependency
on meta-oe layer.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 recipes-core/openjdk/openjdk-7-common.inc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/recipes-core/openjdk/openjdk-7-common.inc b/recipes-core/openjdk/openjdk-7-common.inc
index 1ac3154..6727224 100644
--- a/recipes-core/openjdk/openjdk-7-common.inc
+++ b/recipes-core/openjdk/openjdk-7-common.inc
@@ -26,10 +26,9 @@ PROVIDES += "${JDKPN}"
 DEPENDS = " \
     icedtea7-native zip-native ant-native \
     zlib libxslt-native \
-    jpeg libpng giflib \
+    jpeg libpng \
     gtk+ glib-2.0 \
-    cups fontconfig \
-    rhino krb5 \
+    cups fontconfig rhino \
     libxt libxinerama libxrender libxtst libxi \
     freetype alsa-lib libffi \
     attr \
@@ -59,6 +58,10 @@ export CACAO_CONFIGURE_ARGS = " \
 
 JAVA_HOME[unexport] = "1"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[gif] = ",--disable-system-gif, giflib"
+PACKAGECONFIG[kerberos] = ",--disable-system-kerberos, krb5"
+
 EXTRA_OECONF = " \
     --enable-downloading=no \
     \
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [meta-java][PATCH 3/6] openjdk-8-cross: provide packageconfig for krb5
  2017-09-24 21:05 [meta-java][PATCH 1/6] icedtea7-native: provide packageconfig for giflib Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 2/6] openjdk-7-common: provide packageconfig for giflib and krb5 Maxin B. John
@ 2017-09-24 21:05 ` Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 4/6] openjdk-8-native: provide packageconfig for giflib Maxin B. John
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 13+ messages in thread
From: Maxin B. John @ 2017-09-24 21:05 UTC (permalink / raw)
  To: yocto

Provide PACKAGECONFIG for kerberos to remove dependency on
meta-oe layer.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 recipes-core/openjdk/openjdk-8-cross.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index ad3a44d..b46a118 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -18,7 +18,7 @@ PATCHES_URI_append = "\
 
 DEPENDS = "\
     openjdk-8-native zip-native ant-native libxslt \
-    jpeg libpng krb5 libffi fontconfig freetype \
+    jpeg libpng libffi fontconfig freetype \
 "
 
 PRIVATE_LIBS = "\
@@ -49,6 +49,7 @@ PACKAGECONFIG[zero] = "--with-jvm-variants=zero,,,"
 PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5,"
 
 PACKAGECONFIG[repack] = ",,,"
+PACKAGECONFIG[kerberos] = "--enable-system-kerberos,,krb5,"
 
 CACHED_CONFIGUREVARS = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'ac_x_includes=${STAGING_INCDIR}', '', d)} \
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [meta-java][PATCH 4/6] openjdk-8-native: provide packageconfig for giflib
  2017-09-24 21:05 [meta-java][PATCH 1/6] icedtea7-native: provide packageconfig for giflib Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 2/6] openjdk-7-common: provide packageconfig for giflib and krb5 Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 3/6] openjdk-8-cross: provide packageconfig for krb5 Maxin B. John
@ 2017-09-24 21:05 ` Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 5/6] bdwgc: import from meta-oe Maxin B. John
  2017-09-24 21:05 ` [meta-java][PATCH 6/6] README: remove meta-oe from documentation Maxin B. John
  4 siblings, 0 replies; 13+ messages in thread
From: Maxin B. John @ 2017-09-24 21:05 UTC (permalink / raw)
  To: yocto

provide PACKAGECONFIG for giflib to remove dependency on
meta-oe layer.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 recipes-core/openjdk/openjdk-8-native.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc
index fd97eff..68e1725 100644
--- a/recipes-core/openjdk/openjdk-8-native.inc
+++ b/recipes-core/openjdk/openjdk-8-native.inc
@@ -2,7 +2,7 @@ JDK_DIR = "openjdk-8-native"
 DEPENDS = "\
     icedtea7-native ant-native \
     libxslt-native attr-native \
-    giflib-native jpeg-native libpng-native \
+    jpeg-native libpng-native \
     glib-2.0-native freetype-native fontconfig-native \
     zlib-native zip-native \
     unzip-native make-native \
@@ -14,6 +14,7 @@ PACKAGECONFIG[x11] = "--with-x,,libx11-native xproto-native libxt-native libxext
 PACKAGECONFIG[cups] = "--with-cups,,cups"
 PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native"
 PACKAGECONFIG[jce] = "--enable-unlimited-crypto,,"
+PACKAGECONFIG[gif] = "--with-giflib,,giflib-native"
 
 EXTRA_OECONF_append = "\
     --with-jobs=${@java_get_parallel_make(d)} \
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-24 21:05 [meta-java][PATCH 1/6] icedtea7-native: provide packageconfig for giflib Maxin B. John
                   ` (2 preceding siblings ...)
  2017-09-24 21:05 ` [meta-java][PATCH 4/6] openjdk-8-native: provide packageconfig for giflib Maxin B. John
@ 2017-09-24 21:05 ` Maxin B. John
  2017-09-25 13:05   ` Philip Balister
  2017-09-24 21:05 ` [meta-java][PATCH 6/6] README: remove meta-oe from documentation Maxin B. John
  4 siblings, 1 reply; 13+ messages in thread
From: Maxin B. John @ 2017-09-24 21:05 UTC (permalink / raw)
  To: yocto

keep a copy of bdwgc recipe in meta-java from meta-oe layer.
cacao in meta-java depends on bdwgc.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 ...ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 +++++++++++++++
 recipes-extended/bdwgc/bdwgc/musl_header_fix.patch | 27 ++++++++++++++
 recipes-extended/bdwgc/bdwgc_7.6.0.bb              | 42 ++++++++++++++++++++++
 3 files changed, 98 insertions(+)
 create mode 100644 recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
 create mode 100644 recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
 create mode 100644 recipes-extended/bdwgc/bdwgc_7.6.0.bb

diff --git a/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
new file mode 100644
index 0000000..8ef774f
--- /dev/null
+++ b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
@@ -0,0 +1,29 @@
+configure.ac: add check for NO_GETCONTEXT definition
+
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+[yann.morin.1998@free.fr: 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" <yann.morin.1998@free.fr>
+Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+---
+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.
diff --git a/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
new file mode 100644
index 0000000..4a18496
--- /dev/null
+++ b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
@@ -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.   */
diff --git a/recipes-extended/bdwgc/bdwgc_7.6.0.bb b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
new file mode 100644
index 0000000..dcb68f0
--- /dev/null
+++ b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
@@ -0,0 +1,42 @@
+SUMMARY = "A garbage collector for C and C++"
+
+DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\
+ 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 with GC_malloc calls, replacing realloc with GC_realloc\
+ calls, and removing free calls."
+
+HOMEPAGE = "http://www.hboehm.info/gc/"
+SECTION = "devel"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://README.QUICK;md5=4f81f24ec69726c312487c2ac740e9e3"
+
+SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa"
+SRC_URI = "git://github.com/ivmai/bdwgc.git \
+           file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \
+           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"
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [meta-java][PATCH 6/6] README: remove meta-oe from documentation
  2017-09-24 21:05 [meta-java][PATCH 1/6] icedtea7-native: provide packageconfig for giflib Maxin B. John
                   ` (3 preceding siblings ...)
  2017-09-24 21:05 ` [meta-java][PATCH 5/6] bdwgc: import from meta-oe Maxin B. John
@ 2017-09-24 21:05 ` Maxin B. John
  4 siblings, 0 replies; 13+ messages in thread
From: Maxin B. John @ 2017-09-24 21:05 UTC (permalink / raw)
  To: yocto

Update the README by removing the dependency on meta-openembedded
layer from documentation.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
 README | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/README b/README
index 33511ff..81664c7 100644
--- a/README
+++ b/README
@@ -7,11 +7,7 @@ Yocto Project build systems.
 This layer depends on:
 
 URI: git://git.openembedded.org/openembedded-core
-branch: krogoth (or master)
-revision: HEAD
-
-URI: git://git.openembedded.org/meta-openembedded
-branch: krogoth (or master)
+branch: pyro (or master)
 revision: HEAD
 
 Contributing
@@ -69,7 +65,6 @@ For conf/bblayers.conf you have to add
 
 BBLAYERS ?= " \
    ...
-  path_to_source/meta-openembedded/meta-oe \
   path_to_source/sources/meta-java \
   "
 
-- 
2.4.0



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-24 21:05 ` [meta-java][PATCH 5/6] bdwgc: import from meta-oe Maxin B. John
@ 2017-09-25 13:05   ` Philip Balister
  2017-09-26  8:19     ` Maxin B. John
  0 siblings, 1 reply; 13+ messages in thread
From: Philip Balister @ 2017-09-25 13:05 UTC (permalink / raw)
  To: Maxin B. John, yocto

On 09/24/2017 05:05 PM, Maxin B. John wrote:
> keep a copy of bdwgc recipe in meta-java from meta-oe layer.
> cacao in meta-java depends on bdwgc.

Duplicating recipes in recipes is frowned upon.

Shouldn't we have the discussion why you are  not proposing this for
Openembedded-core instead of duplicating the recipe? Duping a recipe
just to drop a layer dependency isn't a long term solution.

Philip

> 
> Signed-off-by: Maxin B. John <maxin.john@intel.com>
> ---
>  ...ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 +++++++++++++++
>  recipes-extended/bdwgc/bdwgc/musl_header_fix.patch | 27 ++++++++++++++
>  recipes-extended/bdwgc/bdwgc_7.6.0.bb              | 42 ++++++++++++++++++++++
>  3 files changed, 98 insertions(+)
>  create mode 100644 recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>  create mode 100644 recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>  create mode 100644 recipes-extended/bdwgc/bdwgc_7.6.0.bb
> 
> diff --git a/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
> new file mode 100644
> index 0000000..8ef774f
> --- /dev/null
> +++ b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
> @@ -0,0 +1,29 @@
> +configure.ac: add check for NO_GETCONTEXT definition
> +
> +Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> +[yann.morin.1998@free.fr: 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" <yann.morin.1998@free.fr>
> +Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> +
> +---
> +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.
> diff --git a/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
> new file mode 100644
> index 0000000..4a18496
> --- /dev/null
> +++ b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
> @@ -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.   */
> diff --git a/recipes-extended/bdwgc/bdwgc_7.6.0.bb b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
> new file mode 100644
> index 0000000..dcb68f0
> --- /dev/null
> +++ b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
> @@ -0,0 +1,42 @@
> +SUMMARY = "A garbage collector for C and C++"
> +
> +DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\
> + 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 with GC_malloc calls, replacing realloc with GC_realloc\
> + calls, and removing free calls."
> +
> +HOMEPAGE = "http://www.hboehm.info/gc/"
> +SECTION = "devel"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://README.QUICK;md5=4f81f24ec69726c312487c2ac740e9e3"
> +
> +SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa"
> +SRC_URI = "git://github.com/ivmai/bdwgc.git \
> +           file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \
> +           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"
> +
> +BBCLASSEXTEND = "native nativesdk"
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-25 13:05   ` Philip Balister
@ 2017-09-26  8:19     ` Maxin B. John
  2017-09-26 12:16       ` Philip Balister
  0 siblings, 1 reply; 13+ messages in thread
From: Maxin B. John @ 2017-09-26  8:19 UTC (permalink / raw)
  To: Philip Balister; +Cc: yocto

Hi Philip,

On Mon, Sep 25, 2017 at 4:05 PM, Philip Balister <philip@balister.org> wrote:
> On 09/24/2017 05:05 PM, Maxin B. John wrote:
>> keep a copy of bdwgc recipe in meta-java from meta-oe layer.
>> cacao in meta-java depends on bdwgc.
>
> Duplicating recipes in recipes is frowned upon.

Thanks for the review. Makes sense here. Will try to find a way to avoid this.

> Shouldn't we have the discussion why you are  not proposing this for
> Openembedded-core instead of duplicating the recipe? Duping a recipe
> just to drop a layer dependency isn't a long term solution.

agree.

> Philip

Best Regards,
Maxin

>>
>> Signed-off-by: Maxin B. John <maxin.john@intel.com>
>> ---
>>  ...ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 +++++++++++++++
>>  recipes-extended/bdwgc/bdwgc/musl_header_fix.patch | 27 ++++++++++++++
>>  recipes-extended/bdwgc/bdwgc_7.6.0.bb              | 42 ++++++++++++++++++++++
>>  3 files changed, 98 insertions(+)
>>  create mode 100644 recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>>  create mode 100644 recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>>  create mode 100644 recipes-extended/bdwgc/bdwgc_7.6.0.bb
>>
>> diff --git a/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>> new file mode 100644
>> index 0000000..8ef774f
>> --- /dev/null
>> +++ b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>> @@ -0,0 +1,29 @@
>> +configure.ac: add check for NO_GETCONTEXT definition
>> +
>> +Signed-off-by: Samuel Martin <s.martin49@gmail.com>
>> +[yann.morin.1998@free.fr: 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" <yann.morin.1998@free.fr>
>> +Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>> +
>> +---
>> +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.
>> diff --git a/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>> new file mode 100644
>> index 0000000..4a18496
>> --- /dev/null
>> +++ b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>> @@ -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.   */
>> diff --git a/recipes-extended/bdwgc/bdwgc_7.6.0.bb b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
>> new file mode 100644
>> index 0000000..dcb68f0
>> --- /dev/null
>> +++ b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
>> @@ -0,0 +1,42 @@
>> +SUMMARY = "A garbage collector for C and C++"
>> +
>> +DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\
>> + 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 with GC_malloc calls, replacing realloc with GC_realloc\
>> + calls, and removing free calls."
>> +
>> +HOMEPAGE = "http://www.hboehm.info/gc/"
>> +SECTION = "devel"
>> +LICENSE = "MIT"
>> +LIC_FILES_CHKSUM = "file://README.QUICK;md5=4f81f24ec69726c312487c2ac740e9e3"
>> +
>> +SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa"
>> +SRC_URI = "git://github.com/ivmai/bdwgc.git \
>> +           file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \
>> +           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"
>> +
>> +BBCLASSEXTEND = "native nativesdk"
>>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-26  8:19     ` Maxin B. John
@ 2017-09-26 12:16       ` Philip Balister
  2017-09-26 15:21         ` Maxin B. John
  2017-09-26 19:59         ` Paul Eggleton
  0 siblings, 2 replies; 13+ messages in thread
From: Philip Balister @ 2017-09-26 12:16 UTC (permalink / raw)
  To: Maxin B. John; +Cc: yocto

On 09/26/2017 04:19 AM, Maxin B. John wrote:
> Hi Philip,
> 
> On Mon, Sep 25, 2017 at 4:05 PM, Philip Balister <philip@balister.org> wrote:
>> On 09/24/2017 05:05 PM, Maxin B. John wrote:
>>> keep a copy of bdwgc recipe in meta-java from meta-oe layer.
>>> cacao in meta-java depends on bdwgc.
>>
>> Duplicating recipes in recipes is frowned upon.
> 
> Thanks for the review. Makes sense here. Will try to find a way to avoid this.
> 
>> Shouldn't we have the discussion why you are  not proposing this for
>> Openembedded-core instead of duplicating the recipe? Duping a recipe
>> just to drop a layer dependency isn't a long term solution.
> 
> agree.

Meta-oe has one recipe that uses it. I'm not sure about other layers.

Does the layer index let us search for recipes that depend on another
recipe?

Philip

> 
>> Philip
> 
> Best Regards,
> Maxin
> 
>>>
>>> Signed-off-by: Maxin B. John <maxin.john@intel.com>
>>> ---
>>>  ...ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 +++++++++++++++
>>>  recipes-extended/bdwgc/bdwgc/musl_header_fix.patch | 27 ++++++++++++++
>>>  recipes-extended/bdwgc/bdwgc_7.6.0.bb              | 42 ++++++++++++++++++++++
>>>  3 files changed, 98 insertions(+)
>>>  create mode 100644 recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>>>  create mode 100644 recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>>>  create mode 100644 recipes-extended/bdwgc/bdwgc_7.6.0.bb
>>>
>>> diff --git a/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>>> new file mode 100644
>>> index 0000000..8ef774f
>>> --- /dev/null
>>> +++ b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>>> @@ -0,0 +1,29 @@
>>> +configure.ac: add check for NO_GETCONTEXT definition
>>> +
>>> +Signed-off-by: Samuel Martin <s.martin49@gmail.com>
>>> +[yann.morin.1998@free.fr: 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" <yann.morin.1998@free.fr>
>>> +Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>>> +
>>> +---
>>> +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.
>>> diff --git a/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>>> new file mode 100644
>>> index 0000000..4a18496
>>> --- /dev/null
>>> +++ b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>>> @@ -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.   */
>>> diff --git a/recipes-extended/bdwgc/bdwgc_7.6.0.bb b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
>>> new file mode 100644
>>> index 0000000..dcb68f0
>>> --- /dev/null
>>> +++ b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
>>> @@ -0,0 +1,42 @@
>>> +SUMMARY = "A garbage collector for C and C++"
>>> +
>>> +DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\
>>> + 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 with GC_malloc calls, replacing realloc with GC_realloc\
>>> + calls, and removing free calls."
>>> +
>>> +HOMEPAGE = "http://www.hboehm.info/gc/"
>>> +SECTION = "devel"
>>> +LICENSE = "MIT"
>>> +LIC_FILES_CHKSUM = "file://README.QUICK;md5=4f81f24ec69726c312487c2ac740e9e3"
>>> +
>>> +SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa"
>>> +SRC_URI = "git://github.com/ivmai/bdwgc.git \
>>> +           file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \
>>> +           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"
>>> +
>>> +BBCLASSEXTEND = "native nativesdk"
>>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-26 12:16       ` Philip Balister
@ 2017-09-26 15:21         ` Maxin B. John
  2017-09-26 19:59         ` Paul Eggleton
  1 sibling, 0 replies; 13+ messages in thread
From: Maxin B. John @ 2017-09-26 15:21 UTC (permalink / raw)
  To: Philip Balister; +Cc: yocto

Hi,

On Tue, Sep 26, 2017 at 3:16 PM, Philip Balister <philip@balister.org> wrote:
> On 09/26/2017 04:19 AM, Maxin B. John wrote:
>> Hi Philip,
>>
>> On Mon, Sep 25, 2017 at 4:05 PM, Philip Balister <philip@balister.org> wrote:
>>> On 09/24/2017 05:05 PM, Maxin B. John wrote:
>>>> keep a copy of bdwgc recipe in meta-java from meta-oe layer.
>>>> cacao in meta-java depends on bdwgc.
>>>
>>> Duplicating recipes in recipes is frowned upon.
>>
>> Thanks for the review. Makes sense here. Will try to find a way to avoid this.
>>
>>> Shouldn't we have the discussion why you are  not proposing this for
>>> Openembedded-core instead of duplicating the recipe? Duping a recipe
>>> just to drop a layer dependency isn't a long term solution.
>>
>> agree.
>
> Meta-oe has one recipe that uses it. I'm not sure about other layers.

zile in meta-oe depends on bdwgc.

> Does the layer index let us search for recipes that depend on another
> recipe?

https://layers.openembedded.org  doesn't seems to help a lot in this case.

> Philip

Warm Regards,
Maxin

>>
>>>>
>>>> Signed-off-by: Maxin B. John <maxin.john@intel.com>
>>>> ---
>>>>  ...ac-add-check-for-NO_GETCONTEXT-definition.patch | 29 +++++++++++++++
>>>>  recipes-extended/bdwgc/bdwgc/musl_header_fix.patch | 27 ++++++++++++++
>>>>  recipes-extended/bdwgc/bdwgc_7.6.0.bb              | 42 ++++++++++++++++++++++
>>>>  3 files changed, 98 insertions(+)
>>>>  create mode 100644 recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>>>>  create mode 100644 recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>>>>  create mode 100644 recipes-extended/bdwgc/bdwgc_7.6.0.bb
>>>>
>>>> diff --git a/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>>>> new file mode 100644
>>>> index 0000000..8ef774f
>>>> --- /dev/null
>>>> +++ b/recipes-extended/bdwgc/bdwgc/0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch
>>>> @@ -0,0 +1,29 @@
>>>> +configure.ac: add check for NO_GETCONTEXT definition
>>>> +
>>>> +Signed-off-by: Samuel Martin <s.martin49@gmail.com>
>>>> +[yann.morin.1998@free.fr: 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" <yann.morin.1998@free.fr>
>>>> +Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>>>> +
>>>> +---
>>>> +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.
>>>> diff --git a/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>>>> new file mode 100644
>>>> index 0000000..4a18496
>>>> --- /dev/null
>>>> +++ b/recipes-extended/bdwgc/bdwgc/musl_header_fix.patch
>>>> @@ -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.   */
>>>> diff --git a/recipes-extended/bdwgc/bdwgc_7.6.0.bb b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
>>>> new file mode 100644
>>>> index 0000000..dcb68f0
>>>> --- /dev/null
>>>> +++ b/recipes-extended/bdwgc/bdwgc_7.6.0.bb
>>>> @@ -0,0 +1,42 @@
>>>> +SUMMARY = "A garbage collector for C and C++"
>>>> +
>>>> +DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\
>>>> + 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 with GC_malloc calls, replacing realloc with GC_realloc\
>>>> + calls, and removing free calls."
>>>> +
>>>> +HOMEPAGE = "http://www.hboehm.info/gc/"
>>>> +SECTION = "devel"
>>>> +LICENSE = "MIT"
>>>> +LIC_FILES_CHKSUM = "file://README.QUICK;md5=4f81f24ec69726c312487c2ac740e9e3"
>>>> +
>>>> +SRCREV = "8ac1d84a40eb7a431fec1b8097e3f24b48fb23fa"
>>>> +SRC_URI = "git://github.com/ivmai/bdwgc.git \
>>>> +           file://0001-configure.ac-add-check-for-NO_GETCONTEXT-definition.patch \
>>>> +           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"
>>>> +
>>>> +BBCLASSEXTEND = "native nativesdk"
>>>>
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-26 12:16       ` Philip Balister
  2017-09-26 15:21         ` Maxin B. John
@ 2017-09-26 19:59         ` Paul Eggleton
  2017-09-26 22:14           ` Philip Balister
  1 sibling, 1 reply; 13+ messages in thread
From: Paul Eggleton @ 2017-09-26 19:59 UTC (permalink / raw)
  To: Philip Balister; +Cc: yocto

On Wednesday, 27 September 2017 1:16:19 AM NZDT Philip Balister wrote:
> Does the layer index let us search for recipes that depend on another
> recipe?

At the moment, no. I have explicitly not done anything with dependencies 
because they can be dependent on configuration (e.g. DISTRO_FEATURES, 
PACKAGECONFIG) and I haven't taken the time to figure out how to introspect 
and present such optional dependencies.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-26 19:59         ` Paul Eggleton
@ 2017-09-26 22:14           ` Philip Balister
  2017-09-26 22:22             ` Paul Eggleton
  0 siblings, 1 reply; 13+ messages in thread
From: Philip Balister @ 2017-09-26 22:14 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

On 09/26/2017 03:59 PM, Paul Eggleton wrote:
> On Wednesday, 27 September 2017 1:16:19 AM NZDT Philip Balister wrote:
>> Does the layer index let us search for recipes that depend on another
>> recipe?
> 
> At the moment, no. I have explicitly not done anything with dependencies 
> because they can be dependent on configuration (e.g. DISTRO_FEATURES, 
> PACKAGECONFIG) and I haven't taken the time to figure out how to introspect 
> and present such optional dependencies.

Thanks Paul. I was wondering since I suspect that over time, the
question we are asking will become more important. We already ran into a
similar issue with sip.

Maybe it is time for oe-core-not-so-common-depends?

Philip

> 
> Cheers,
> Paul
> 


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-java][PATCH 5/6] bdwgc: import from meta-oe
  2017-09-26 22:14           ` Philip Balister
@ 2017-09-26 22:22             ` Paul Eggleton
  0 siblings, 0 replies; 13+ messages in thread
From: Paul Eggleton @ 2017-09-26 22:22 UTC (permalink / raw)
  To: Philip Balister; +Cc: yocto

On Wednesday, 27 September 2017 11:14:21 AM NZDT Philip Balister wrote:
> On 09/26/2017 03:59 PM, Paul Eggleton wrote:
> > On Wednesday, 27 September 2017 1:16:19 AM NZDT Philip Balister wrote:
> >> Does the layer index let us search for recipes that depend on another
> >> recipe?
> > 
> > At the moment, no. I have explicitly not done anything with dependencies 
> > because they can be dependent on configuration (e.g. DISTRO_FEATURES, 
> > PACKAGECONFIG) and I haven't taken the time to figure out how to introspect 
> > and present such optional dependencies.
> 
> Thanks Paul. I was wondering since I suspect that over time, the
> question we are asking will become more important. We already ran into a
> similar issue with sip.

Right, the layer index really is the right place to be doing this. I've filed a
bug:

  https://bugzilla.yoctoproject.org/show_bug.cgi?id=12129
 
> Maybe it is time for oe-core-not-so-common-depends?

I'd think we'd want a bit more definition around what goes into such a layer,
that title is pretty vague.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-09-26 22:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-24 21:05 [meta-java][PATCH 1/6] icedtea7-native: provide packageconfig for giflib Maxin B. John
2017-09-24 21:05 ` [meta-java][PATCH 2/6] openjdk-7-common: provide packageconfig for giflib and krb5 Maxin B. John
2017-09-24 21:05 ` [meta-java][PATCH 3/6] openjdk-8-cross: provide packageconfig for krb5 Maxin B. John
2017-09-24 21:05 ` [meta-java][PATCH 4/6] openjdk-8-native: provide packageconfig for giflib Maxin B. John
2017-09-24 21:05 ` [meta-java][PATCH 5/6] bdwgc: import from meta-oe Maxin B. John
2017-09-25 13:05   ` Philip Balister
2017-09-26  8:19     ` Maxin B. John
2017-09-26 12:16       ` Philip Balister
2017-09-26 15:21         ` Maxin B. John
2017-09-26 19:59         ` Paul Eggleton
2017-09-26 22:14           ` Philip Balister
2017-09-26 22:22             ` Paul Eggleton
2017-09-24 21:05 ` [meta-java][PATCH 6/6] README: remove meta-oe from documentation Maxin B. John

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.