All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1
@ 2021-05-01 19:56 Adam Duskett
  2021-05-01 19:56 ` [Buildroot] [PATCH 2/3] package/libglib2: add -Dxattr=true when libselinux is selected Adam Duskett
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Adam Duskett @ 2021-05-01 19:56 UTC (permalink / raw)
  To: buildroot

Other changes:
  - Drop 0002-allow-explicit-disabling-of-tests.patch as this patch has been
    upstreamed and the option is now simply "tests."
  - Add -Dglib_debug=disabled and -Dlibelf=disabled as defaults to both
    HOST_LIBGLIB2_CONF_OPTS and LIBGLIB2_CONF_OPTS
  - Refactor existing patches to apply to 2.68.1

Tested with test-pkg -p libglib2 -a.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
 ...01-fix-compile-time-atomic-detection.patch | 12 +++---
 ...02-allow-explicit-disabling-of-tests.patch | 37 -------------------
 ...atch => 0002-remove-cpp-requirement.patch} |  6 +--
 ...at-nonliteral-to-compiler-arguments.patch} |  7 ++--
 package/libglib2/libglib2.hash                |  4 +-
 package/libglib2/libglib2.mk                  | 12 ++++--
 6 files changed, 24 insertions(+), 54 deletions(-)
 delete mode 100644 package/libglib2/0002-allow-explicit-disabling-of-tests.patch
 rename package/libglib2/{0003-remove-cpp-requirement.patch => 0002-remove-cpp-requirement.patch} (95%)
 rename package/libglib2/{0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch => 0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch} (84%)

diff --git a/package/libglib2/0001-fix-compile-time-atomic-detection.patch b/package/libglib2/0001-fix-compile-time-atomic-detection.patch
index d84a1ab460..aae505f8e5 100644
--- a/package/libglib2/0001-fix-compile-time-atomic-detection.patch
+++ b/package/libglib2/0001-fix-compile-time-atomic-detection.patch
@@ -10,19 +10,21 @@ See : https://gitlab.gnome.org/GNOME/glib/issues/1063
 
 Signed-off-by: Brendan Heading <brendanheading@gmail.com>
 Signed-off-by: Adam Duskett <aduskett@gmail.com>
+Refresh for 2.68.1
 ---
- glib/gthread-posix.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ glib/gthread-posix.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
 
 diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c
 index 71a6b7b..d09d029 100644
 --- a/glib/gthread-posix.c
 +++ b/glib/gthread-posix.c
-@@ -73,7 +73,7 @@
+@@ -72,8 +72,7 @@
+ #include <sys/syscall.h>
  #endif
  
- /* clang defines __ATOMIC_SEQ_CST but doesn't support the GCC extension */
--#if defined(HAVE_FUTEX) && defined(__ATOMIC_SEQ_CST) && !defined(__clang__)
+-#if defined(HAVE_FUTEX) && \
+-    (defined(HAVE_STDATOMIC_H) || defined(__ATOMIC_SEQ_CST))
 +#if defined(HAVE_FUTEX) && defined(__ATOMIC_SEQ_CST) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) && !defined(__clang__)
  #define USE_NATIVE_MUTEX
  #endif
diff --git a/package/libglib2/0002-allow-explicit-disabling-of-tests.patch b/package/libglib2/0002-allow-explicit-disabling-of-tests.patch
deleted file mode 100644
index c865c04e03..0000000000
--- a/package/libglib2/0002-allow-explicit-disabling-of-tests.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From cdccbc6ec36243463613cb32d7058c26c3c51e16 Mon Sep 17 00:00:00 2001
-From: Adam Duskett <Aduskett@gmail.com>
-Date: Wed, 18 Sep 2019 09:50:00 -0700
-Subject: [PATCH] allow explicit disabling of tests
-
-Upstream won't build tests when cross-compiling. However; this means still
-building the tests during a host build. Building the tests causes build
-failures on older distributions such as CentOS 6 and Debian 7 because the
-command `objcopy --add-symbol` is used when building the test
-"test_resources2," which is not available with the older version of objcopy
-provided by the distributions.
-
-Instead, remove the conditional checks which set build_tests and only check if
-installed_tests_enabled is passed.
-
-Signed-off-by: Adam Duskett <Aduskett@gmail.com>
-Refresh for 2.62.2
----
- meson.build | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/meson.build b/meson.build
-index 99806d0..3206603 100644
---- a/meson.build
-+++ b/meson.build
-@@ -84,7 +84,7 @@ installed_tests_template = files('template.test.in')
- installed_tests_template_tap = files('template-tap.test.in')
- 
- # Don?t build the tests unless we can run them (either natively, in an exe wrapper, or by installing them for later use)
--build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper()) or installed_tests_enabled
-+build_tests = installed_tests_enabled
- 
- add_project_arguments('-D_GNU_SOURCE', language: 'c')
- 
--- 
-2.23.0
-
diff --git a/package/libglib2/0003-remove-cpp-requirement.patch b/package/libglib2/0002-remove-cpp-requirement.patch
similarity index 95%
rename from package/libglib2/0003-remove-cpp-requirement.patch
rename to package/libglib2/0002-remove-cpp-requirement.patch
index 11978e9755..35d46e161b 100644
--- a/package/libglib2/0003-remove-cpp-requirement.patch
+++ b/package/libglib2/0002-remove-cpp-requirement.patch
@@ -35,7 +35,7 @@ index 4bbf4c2..ac59f4e 100644
 @@ -1,4 +1,4 @@
 -project('glib', 'c', 'cpp',
 +project('glib', 'c',
-   version : '2.66.8',
+   version : '2.68.1',
    # NOTE: We keep this pinned at 0.49 because that's what Debian 10 ships
    meson_version : '>= 0.49.2',
 @@ -10,7 +10,6 @@ project('glib', 'c', 'cpp',
@@ -46,7 +46,7 @@ index 4bbf4c2..ac59f4e 100644
  
  cc_can_run = not meson.is_cross_build() or meson.has_exe_wrapper()
  
-@@ -1548,20 +1547,6 @@ if g_have_iso_c_varargs
+@@ -1679,20 +1678,6 @@ if g_have_iso_c_varargs
  #endif''')
  endif
  
@@ -67,7 +67,7 @@ index 4bbf4c2..ac59f4e 100644
  g_have_gnuc_varargs = cc.compiles('''
    void some_func (void) {
      int a(int p1, int p2, int p3);
-@@ -2167,7 +2152,6 @@ subdir('gobject')
+@@ -2330,7 +2315,6 @@ subdir('gobject')
  subdir('gthread')
  subdir('gmodule')
  subdir('gio')
diff --git a/package/libglib2/0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch b/package/libglib2/0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch
similarity index 84%
rename from package/libglib2/0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch
rename to package/libglib2/0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch
index f792ceba3f..67aea7982e 100644
--- a/package/libglib2/0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch
+++ b/package/libglib2/0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch
@@ -7,6 +7,7 @@ This warning is a false positive on older versions of gcc.
 See https://gitlab.gnome.org/GNOME/glib/issues/1744 for more details.
 
 Signed-off-by: Adam Duskett <Aduskett@gmail.com>
+Refresh for 2.68.1
 ---
  meson.build | 1 +
  1 file changed, 1 insertion(+)
@@ -15,14 +16,14 @@ diff --git a/meson.build b/meson.build
 index 3c615b7..7cae4e8 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -372,6 +372,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
+@@ -431,6 +431,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
+     # building with -Wbad-function-cast.
+     '-Wno-bad-function-cast',
      '-Wno-cast-function-type',
 +    '-Wno-format-nonliteral',
      # Due to function casts through (void*) we cannot support -Wpedantic:
      # https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
      '-Wno-pedantic',
-     '-Werror=declaration-after-statement',
-     '-Werror=format=2',
 -- 
 2.20.1
 
diff --git a/package/libglib2/libglib2.hash b/package/libglib2/libglib2.hash
index 4f69f1cc48..e3a3aa7561 100644
--- a/package/libglib2/libglib2.hash
+++ b/package/libglib2/libglib2.hash
@@ -1,4 +1,4 @@
-# https://download.gnome.org/sources/glib/2.66/glib-2.66.8.sha256sum
-sha256  97bc87dd91365589af5cbbfea2574833aea7a1b71840fd365ecd2852c76b9c8b  glib-2.66.8.tar.xz
+# https://download.gnome.org/sources/glib/2.68/glib-2.68.1.sha256sum
+sha256  241654b96bd36b88aaa12814efc4843b578e55d47440103727959ac346944333  glib-2.68.1.tar.xz
 # License files, locally calculated
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index 9ce40d91ff..b5554d6b56 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-LIBGLIB2_VERSION_MAJOR = 2.66
-LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).8
+LIBGLIB2_VERSION_MAJOR = 2.68
+LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).1
 LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz
 LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
 LIBGLIB2_LICENSE = LGPL-2.1+
@@ -25,11 +25,13 @@ endif
 HOST_LIBGLIB2_CONF_OPTS = \
 	-Ddtrace=false \
 	-Dfam=false \
+	-Dglib_debug=disabled \
+	-Dlibelf=disabled \
 	-Dselinux=disabled \
 	-Dsystemtap=false \
 	-Dxattr=false \
 	-Dinternal_pcre=false \
-	-Dinstalled_tests=false \
+	-Dtests=false \
 	-Doss_fuzz=disabled
 
 LIBGLIB2_DEPENDENCIES = \
@@ -49,9 +51,11 @@ HOST_LIBGLIB2_DEPENDENCIES = \
 # ${libdir} would be prefixed by the sysroot by pkg-config, causing a
 # bogus installation path once combined with $(DESTDIR).
 LIBGLIB2_CONF_OPTS = \
+	-Dglib_debug=disabled \
 	-Dinternal_pcre=false \
+	-Dlibelf=disabled \
 	-Dgio_module_dir=/usr/lib/gio/modules \
-	-Dinstalled_tests=false \
+	-Dtests=false \
 	-Doss_fuzz=disabled
 
 LIBGLIB2_MESON_EXTRA_PROPERTIES = \
-- 
2.31.1

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

* [Buildroot] [PATCH 2/3] package/libglib2: add -Dxattr=true when libselinux is selected
  2021-05-01 19:56 [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1 Adam Duskett
@ 2021-05-01 19:56 ` Adam Duskett
  2021-05-20 12:59   ` Yann E. MORIN
  2021-05-01 19:56 ` [Buildroot] [PATCH 3/3] package/gobject-introspection: bump to version 1.68.0 Adam Duskett
  2021-05-20 12:59 ` [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1 Yann E. MORIN
  2 siblings, 1 reply; 6+ messages in thread
From: Adam Duskett @ 2021-05-01 19:56 UTC (permalink / raw)
  To: buildroot

Xattrs is required for SELinux. Explicitly enable the feature when the
libselinux package is selected.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
 package/libglib2/libglib2.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index b5554d6b56..e3263ce9ce 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -77,10 +77,10 @@ LIBGLIB2_DEPENDENCIES += libiconv
 endif
 
 ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
-LIBGLIB2_CONF_OPTS += -Dselinux=enabled
+LIBGLIB2_CONF_OPTS += -Dselinux=enabled -Dxattr=true
 LIBGLIB2_DEPENDENCIES += libselinux
 else
-LIBGLIB2_CONF_OPTS += -Dselinux=disabled
+LIBGLIB2_CONF_OPTS += -Dselinux=disabled -Dxattr=false
 endif
 
 # Purge gdb-related files
-- 
2.31.1

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

* [Buildroot] [PATCH 3/3] package/gobject-introspection: bump to version 1.68.0
  2021-05-01 19:56 [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1 Adam Duskett
  2021-05-01 19:56 ` [Buildroot] [PATCH 2/3] package/libglib2: add -Dxattr=true when libselinux is selected Adam Duskett
@ 2021-05-01 19:56 ` Adam Duskett
  2021-05-20 13:01   ` Yann E. MORIN
  2021-05-20 12:59 ` [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1 Yann E. MORIN
  2 siblings, 1 reply; 6+ messages in thread
From: Adam Duskett @ 2021-05-01 19:56 UTC (permalink / raw)
  To: buildroot

Other changes:
  - Change -Dgi_cross_use_host_gi=true to -Dgi_cross_use_prebuilt_gi=true as the
    option has changed.
  - Explicitly define python3 in both the host and target builds of
    g-ir-tool-template.in

Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
 .../gobject-introspection/0001-disable-tests.patch   |  2 +-
 .../0002-Add-rpath-links-to-ccompiler.patch          |  2 +-
 .../gobject-introspection/gobject-introspection.hash |  4 ++--
 .../gobject-introspection/gobject-introspection.mk   | 12 ++++++------
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/package/gobject-introspection/0001-disable-tests.patch b/package/gobject-introspection/0001-disable-tests.patch
index c75c7512d9..01b11998bd 100644
--- a/package/gobject-introspection/0001-disable-tests.patch
+++ b/package/gobject-introspection/0001-disable-tests.patch
@@ -16,7 +16,7 @@ diff --git a/meson.build b/meson.build
 index eed4d6b..5058664 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -214,12 +214,6 @@ if get_option('build_introspection_data') == true
+@@ -222,12 +222,6 @@ if get_option('build_introspection_data') == true
  endif
  subdir('docs')
  
diff --git a/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch b/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch
index 08835d3ecc..9b9ae99779 100644
--- a/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch
+++ b/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch
@@ -15,7 +15,7 @@ diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
 index a8bd5b1..51bb9bc 100644
 --- a/giscanner/ccompiler.py
 +++ b/giscanner/ccompiler.py
-@@ -229,6 +229,8 @@ class CCompiler(object):
+@@ -231,6 +231,8 @@ class CCompiler(object):
  
          for envvar in runtime_path_envvar:
              if envvar in os.environ:
diff --git a/package/gobject-introspection/gobject-introspection.hash b/package/gobject-introspection/gobject-introspection.hash
index 68bf63e055..8ce7ae000c 100644
--- a/package/gobject-introspection/gobject-introspection.hash
+++ b/package/gobject-introspection/gobject-introspection.hash
@@ -1,4 +1,4 @@
-#From http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.64/gobject-introspection-1.64.1.sha256sum
-sha256 80beae6728c134521926affff9b2e97125749b38d38744dc901f4010ee3e7fa7 gobject-introspection-1.64.1.tar.xz
+#From http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.68/gobject-introspection-1.68.0.sha256sum
+sha256 d229242481a201b84a0c66716de1752bca41db4133672cfcfb37c93eb6e54a27 gobject-introspection-1.68.0.tar.xz
 sha256 d245807f90032872d1438d741ed21e2490e1175dc8aa3afa5ddb6c8e529b58e5 COPYING.LGPL
 sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING.GPL
diff --git a/package/gobject-introspection/gobject-introspection.mk b/package/gobject-introspection/gobject-introspection.mk
index eefb2c83f7..d8138b2e96 100644
--- a/package/gobject-introspection/gobject-introspection.mk
+++ b/package/gobject-introspection/gobject-introspection.mk
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-GOBJECT_INTROSPECTION_VERSION_MAJOR = 1.64
-GOBJECT_INTROSPECTION_VERSION = $(GOBJECT_INTROSPECTION_VERSION_MAJOR).1
+GOBJECT_INTROSPECTION_VERSION_MAJOR = 1.68
+GOBJECT_INTROSPECTION_VERSION = $(GOBJECT_INTROSPECTION_VERSION_MAJOR).0
 GOBJECT_INTROSPECTION_SITE = http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/$(GOBJECT_INTROSPECTION_VERSION_MAJOR)
 GOBJECT_INTROSPECTION_SOURCE = gobject-introspection-$(GOBJECT_INTROSPECTION_VERSION).tar.xz
 GOBJECT_INTROSPECTION_INSTALL_STAGING = YES
@@ -43,7 +43,7 @@ HOST_GOBJECT_INTROSPECTION_NINJA_ENV += \
 # Use the host gi-scanner to prevent the scanner from generating incorrect
 # elf classes.
 GOBJECT_INTROSPECTION_CONF_OPTS = \
-	-Dgi_cross_use_host_gi=true \
+	-Dgi_cross_use_prebuilt_gi=true \
 	-Dgi_cross_binary_wrapper="$(STAGING_DIR)/usr/bin/g-ir-scanner-qemuwrapper" \
 	-Dgi_cross_ldd_wrapper="$(STAGING_DIR)/usr/bin/g-ir-scanner-lddwrapper" \
 	-Dbuild_introspection_data=true \
@@ -64,8 +64,8 @@ HOST_GOBJECT_INTROSPECTION_CONF_ENV = \
 	GI_SCANNER_DISABLE_CACHE=1
 
 # Make sure g-ir-tool-template uses the host python.
-define GOBJECT_INTROSPECTION_FIX_TOOLTEMPLATE_PYTHON_PATH
-	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python%' $(@D)/tools/g-ir-tool-template.in
+define GOBJECT_INTROSPECTION_FIX_TOOLS_PYTHON_PATH
+	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python3%' $(@D)/tools/g-ir-tool-template.in
 endef
 HOST_GOBJECT_INTROSPECTION_PRE_CONFIGURE_HOOKS += GOBJECT_INTROSPECTION_FIX_TOOLTEMPLATE_PYTHON_PATH
 
@@ -75,7 +75,7 @@ HOST_GOBJECT_INTROSPECTION_PRE_CONFIGURE_HOOKS += GOBJECT_INTROSPECTION_FIX_TOOL
 # - Create a safe modules directory which does not exist so we don't load random things
 #   which may then get deleted (or their dependencies) and potentially segfault
 define GOBJECT_INTROSPECTION_INSTALL_PRE_WRAPPERS
-	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python%' $(@D)/tools/g-ir-tool-template.in
+	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python3%' $(@D)/tools/g-ir-tool-template.in
 
 	$(INSTALL) -D -m 755 $(GOBJECT_INTROSPECTION_PKGDIR)/g-ir-scanner-lddwrapper.in \
 		$(STAGING_DIR)/usr/bin/g-ir-scanner-lddwrapper
-- 
2.31.1

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

* [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1
  2021-05-01 19:56 [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1 Adam Duskett
  2021-05-01 19:56 ` [Buildroot] [PATCH 2/3] package/libglib2: add -Dxattr=true when libselinux is selected Adam Duskett
  2021-05-01 19:56 ` [Buildroot] [PATCH 3/3] package/gobject-introspection: bump to version 1.68.0 Adam Duskett
@ 2021-05-20 12:59 ` Yann E. MORIN
  2 siblings, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2021-05-20 12:59 UTC (permalink / raw)
  To: buildroot

Adam, All,

On 2021-05-01 12:56 -0700, Adam Duskett spake thusly:
> Other changes:
>   - Drop 0002-allow-explicit-disabling-of-tests.patch as this patch has been
>     upstreamed and the option is now simply "tests."
>   - Add -Dglib_debug=disabled and -Dlibelf=disabled as defaults to both
>     HOST_LIBGLIB2_CONF_OPTS and LIBGLIB2_CONF_OPTS
>   - Refactor existing patches to apply to 2.68.1
> 
> Tested with test-pkg -p libglib2 -a.
> 
> Signed-off-by: Adam Duskett <aduskett@gmail.com>

Applied to next, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...01-fix-compile-time-atomic-detection.patch | 12 +++---
>  ...02-allow-explicit-disabling-of-tests.patch | 37 -------------------
>  ...atch => 0002-remove-cpp-requirement.patch} |  6 +--
>  ...at-nonliteral-to-compiler-arguments.patch} |  7 ++--
>  package/libglib2/libglib2.hash                |  4 +-
>  package/libglib2/libglib2.mk                  | 12 ++++--
>  6 files changed, 24 insertions(+), 54 deletions(-)
>  delete mode 100644 package/libglib2/0002-allow-explicit-disabling-of-tests.patch
>  rename package/libglib2/{0003-remove-cpp-requirement.patch => 0002-remove-cpp-requirement.patch} (95%)
>  rename package/libglib2/{0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch => 0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch} (84%)
> 
> diff --git a/package/libglib2/0001-fix-compile-time-atomic-detection.patch b/package/libglib2/0001-fix-compile-time-atomic-detection.patch
> index d84a1ab460..aae505f8e5 100644
> --- a/package/libglib2/0001-fix-compile-time-atomic-detection.patch
> +++ b/package/libglib2/0001-fix-compile-time-atomic-detection.patch
> @@ -10,19 +10,21 @@ See : https://gitlab.gnome.org/GNOME/glib/issues/1063
>  
>  Signed-off-by: Brendan Heading <brendanheading@gmail.com>
>  Signed-off-by: Adam Duskett <aduskett@gmail.com>
> +Refresh for 2.68.1
>  ---
> - glib/gthread-posix.c | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> + glib/gthread-posix.c | 3 +--
> + 1 file changed, 1 insertion(+), 2 deletions(-)
>  
>  diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c
>  index 71a6b7b..d09d029 100644
>  --- a/glib/gthread-posix.c
>  +++ b/glib/gthread-posix.c
> -@@ -73,7 +73,7 @@
> +@@ -72,8 +72,7 @@
> + #include <sys/syscall.h>
>   #endif
>   
> - /* clang defines __ATOMIC_SEQ_CST but doesn't support the GCC extension */
> --#if defined(HAVE_FUTEX) && defined(__ATOMIC_SEQ_CST) && !defined(__clang__)
> +-#if defined(HAVE_FUTEX) && \
> +-    (defined(HAVE_STDATOMIC_H) || defined(__ATOMIC_SEQ_CST))
>  +#if defined(HAVE_FUTEX) && defined(__ATOMIC_SEQ_CST) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) && !defined(__clang__)
>   #define USE_NATIVE_MUTEX
>   #endif
> diff --git a/package/libglib2/0002-allow-explicit-disabling-of-tests.patch b/package/libglib2/0002-allow-explicit-disabling-of-tests.patch
> deleted file mode 100644
> index c865c04e03..0000000000
> --- a/package/libglib2/0002-allow-explicit-disabling-of-tests.patch
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -From cdccbc6ec36243463613cb32d7058c26c3c51e16 Mon Sep 17 00:00:00 2001
> -From: Adam Duskett <Aduskett@gmail.com>
> -Date: Wed, 18 Sep 2019 09:50:00 -0700
> -Subject: [PATCH] allow explicit disabling of tests
> -
> -Upstream won't build tests when cross-compiling. However; this means still
> -building the tests during a host build. Building the tests causes build
> -failures on older distributions such as CentOS 6 and Debian 7 because the
> -command `objcopy --add-symbol` is used when building the test
> -"test_resources2," which is not available with the older version of objcopy
> -provided by the distributions.
> -
> -Instead, remove the conditional checks which set build_tests and only check if
> -installed_tests_enabled is passed.
> -
> -Signed-off-by: Adam Duskett <Aduskett@gmail.com>
> -Refresh for 2.62.2
> ----
> - meson.build | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/meson.build b/meson.build
> -index 99806d0..3206603 100644
> ---- a/meson.build
> -+++ b/meson.build
> -@@ -84,7 +84,7 @@ installed_tests_template = files('template.test.in')
> - installed_tests_template_tap = files('template-tap.test.in')
> - 
> - # Don?t build the tests unless we can run them (either natively, in an exe wrapper, or by installing them for later use)
> --build_tests = not meson.is_cross_build() or (meson.is_cross_build() and meson.has_exe_wrapper()) or installed_tests_enabled
> -+build_tests = installed_tests_enabled
> - 
> - add_project_arguments('-D_GNU_SOURCE', language: 'c')
> - 
> --- 
> -2.23.0
> -
> diff --git a/package/libglib2/0003-remove-cpp-requirement.patch b/package/libglib2/0002-remove-cpp-requirement.patch
> similarity index 95%
> rename from package/libglib2/0003-remove-cpp-requirement.patch
> rename to package/libglib2/0002-remove-cpp-requirement.patch
> index 11978e9755..35d46e161b 100644
> --- a/package/libglib2/0003-remove-cpp-requirement.patch
> +++ b/package/libglib2/0002-remove-cpp-requirement.patch
> @@ -35,7 +35,7 @@ index 4bbf4c2..ac59f4e 100644
>  @@ -1,4 +1,4 @@
>  -project('glib', 'c', 'cpp',
>  +project('glib', 'c',
> -   version : '2.66.8',
> +   version : '2.68.1',
>     # NOTE: We keep this pinned at 0.49 because that's what Debian 10 ships
>     meson_version : '>= 0.49.2',
>  @@ -10,7 +10,6 @@ project('glib', 'c', 'cpp',
> @@ -46,7 +46,7 @@ index 4bbf4c2..ac59f4e 100644
>   
>   cc_can_run = not meson.is_cross_build() or meson.has_exe_wrapper()
>   
> -@@ -1548,20 +1547,6 @@ if g_have_iso_c_varargs
> +@@ -1679,20 +1678,6 @@ if g_have_iso_c_varargs
>   #endif''')
>   endif
>   
> @@ -67,7 +67,7 @@ index 4bbf4c2..ac59f4e 100644
>   g_have_gnuc_varargs = cc.compiles('''
>     void some_func (void) {
>       int a(int p1, int p2, int p3);
> -@@ -2167,7 +2152,6 @@ subdir('gobject')
> +@@ -2330,7 +2315,6 @@ subdir('gobject')
>   subdir('gthread')
>   subdir('gmodule')
>   subdir('gio')
> diff --git a/package/libglib2/0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch b/package/libglib2/0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch
> similarity index 84%
> rename from package/libglib2/0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch
> rename to package/libglib2/0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch
> index f792ceba3f..67aea7982e 100644
> --- a/package/libglib2/0004-Add-Wno-format-nonliteral-to-compiler-arguments.patch
> +++ b/package/libglib2/0003-Add-Wno-format-nonliteral-to-compiler-arguments.patch
> @@ -7,6 +7,7 @@ This warning is a false positive on older versions of gcc.
>  See https://gitlab.gnome.org/GNOME/glib/issues/1744 for more details.
>  
>  Signed-off-by: Adam Duskett <Aduskett@gmail.com>
> +Refresh for 2.68.1
>  ---
>   meson.build | 1 +
>   1 file changed, 1 insertion(+)
> @@ -15,14 +16,14 @@ diff --git a/meson.build b/meson.build
>  index 3c615b7..7cae4e8 100644
>  --- a/meson.build
>  +++ b/meson.build
> -@@ -372,6 +372,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
> +@@ -431,6 +431,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
> +     # building with -Wbad-function-cast.
> +     '-Wno-bad-function-cast',
>       '-Wno-cast-function-type',
>  +    '-Wno-format-nonliteral',
>       # Due to function casts through (void*) we cannot support -Wpedantic:
>       # https://wiki.gnome.org/Projects/GLib/CompilerRequirements#Function_pointer_conversions.
>       '-Wno-pedantic',
> -     '-Werror=declaration-after-statement',
> -     '-Werror=format=2',
>  -- 
>  2.20.1
>  
> diff --git a/package/libglib2/libglib2.hash b/package/libglib2/libglib2.hash
> index 4f69f1cc48..e3a3aa7561 100644
> --- a/package/libglib2/libglib2.hash
> +++ b/package/libglib2/libglib2.hash
> @@ -1,4 +1,4 @@
> -# https://download.gnome.org/sources/glib/2.66/glib-2.66.8.sha256sum
> -sha256  97bc87dd91365589af5cbbfea2574833aea7a1b71840fd365ecd2852c76b9c8b  glib-2.66.8.tar.xz
> +# https://download.gnome.org/sources/glib/2.68/glib-2.68.1.sha256sum
> +sha256  241654b96bd36b88aaa12814efc4843b578e55d47440103727959ac346944333  glib-2.68.1.tar.xz
>  # License files, locally calculated
>  sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
> diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
> index 9ce40d91ff..b5554d6b56 100644
> --- a/package/libglib2/libglib2.mk
> +++ b/package/libglib2/libglib2.mk
> @@ -4,8 +4,8 @@
>  #
>  ################################################################################
>  
> -LIBGLIB2_VERSION_MAJOR = 2.66
> -LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).8
> +LIBGLIB2_VERSION_MAJOR = 2.68
> +LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).1
>  LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz
>  LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
>  LIBGLIB2_LICENSE = LGPL-2.1+
> @@ -25,11 +25,13 @@ endif
>  HOST_LIBGLIB2_CONF_OPTS = \
>  	-Ddtrace=false \
>  	-Dfam=false \
> +	-Dglib_debug=disabled \
> +	-Dlibelf=disabled \
>  	-Dselinux=disabled \
>  	-Dsystemtap=false \
>  	-Dxattr=false \
>  	-Dinternal_pcre=false \
> -	-Dinstalled_tests=false \
> +	-Dtests=false \
>  	-Doss_fuzz=disabled
>  
>  LIBGLIB2_DEPENDENCIES = \
> @@ -49,9 +51,11 @@ HOST_LIBGLIB2_DEPENDENCIES = \
>  # ${libdir} would be prefixed by the sysroot by pkg-config, causing a
>  # bogus installation path once combined with $(DESTDIR).
>  LIBGLIB2_CONF_OPTS = \
> +	-Dglib_debug=disabled \
>  	-Dinternal_pcre=false \
> +	-Dlibelf=disabled \
>  	-Dgio_module_dir=/usr/lib/gio/modules \
> -	-Dinstalled_tests=false \
> +	-Dtests=false \
>  	-Doss_fuzz=disabled
>  
>  LIBGLIB2_MESON_EXTRA_PROPERTIES = \
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 2/3] package/libglib2: add -Dxattr=true when libselinux is selected
  2021-05-01 19:56 ` [Buildroot] [PATCH 2/3] package/libglib2: add -Dxattr=true when libselinux is selected Adam Duskett
@ 2021-05-20 12:59   ` Yann E. MORIN
  0 siblings, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2021-05-20 12:59 UTC (permalink / raw)
  To: buildroot

Adam, All,

On 2021-05-01 12:56 -0700, Adam Duskett spake thusly:
> Xattrs is required for SELinux. Explicitly enable the feature when the
> libselinux package is selected.
> 
> Signed-off-by: Adam Duskett <aduskett@gmail.com>

Applied to next, thanks.

Regards,
Yann E. MORIN.

> ---
>  package/libglib2/libglib2.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
> index b5554d6b56..e3263ce9ce 100644
> --- a/package/libglib2/libglib2.mk
> +++ b/package/libglib2/libglib2.mk
> @@ -77,10 +77,10 @@ LIBGLIB2_DEPENDENCIES += libiconv
>  endif
>  
>  ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
> -LIBGLIB2_CONF_OPTS += -Dselinux=enabled
> +LIBGLIB2_CONF_OPTS += -Dselinux=enabled -Dxattr=true
>  LIBGLIB2_DEPENDENCIES += libselinux
>  else
> -LIBGLIB2_CONF_OPTS += -Dselinux=disabled
> +LIBGLIB2_CONF_OPTS += -Dselinux=disabled -Dxattr=false
>  endif
>  
>  # Purge gdb-related files
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 3/3] package/gobject-introspection: bump to version 1.68.0
  2021-05-01 19:56 ` [Buildroot] [PATCH 3/3] package/gobject-introspection: bump to version 1.68.0 Adam Duskett
@ 2021-05-20 13:01   ` Yann E. MORIN
  0 siblings, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2021-05-20 13:01 UTC (permalink / raw)
  To: buildroot

Adam, All,

On 2021-05-01 12:56 -0700, Adam Duskett spake thusly:
> Other changes:
>   - Change -Dgi_cross_use_host_gi=true to -Dgi_cross_use_prebuilt_gi=true as the
>     option has changed.
>   - Explicitly define python3 in both the host and target builds of
>     g-ir-tool-template.in
> 
> Signed-off-by: Adam Duskett <aduskett@gmail.com>

I had never noticed so far, but we were missing a hash for
giscanner/scannerlexer.l, which we use as a license file. I've added one
now, and applied to next, thanks.

Brace for impact! ;-]

Regards,
Yann E. MORIN.

> ---
>  .../gobject-introspection/0001-disable-tests.patch   |  2 +-
>  .../0002-Add-rpath-links-to-ccompiler.patch          |  2 +-
>  .../gobject-introspection/gobject-introspection.hash |  4 ++--
>  .../gobject-introspection/gobject-introspection.mk   | 12 ++++++------
>  4 files changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/package/gobject-introspection/0001-disable-tests.patch b/package/gobject-introspection/0001-disable-tests.patch
> index c75c7512d9..01b11998bd 100644
> --- a/package/gobject-introspection/0001-disable-tests.patch
> +++ b/package/gobject-introspection/0001-disable-tests.patch
> @@ -16,7 +16,7 @@ diff --git a/meson.build b/meson.build
>  index eed4d6b..5058664 100644
>  --- a/meson.build
>  +++ b/meson.build
> -@@ -214,12 +214,6 @@ if get_option('build_introspection_data') == true
> +@@ -222,12 +222,6 @@ if get_option('build_introspection_data') == true
>   endif
>   subdir('docs')
>   
> diff --git a/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch b/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch
> index 08835d3ecc..9b9ae99779 100644
> --- a/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch
> +++ b/package/gobject-introspection/0002-Add-rpath-links-to-ccompiler.patch
> @@ -15,7 +15,7 @@ diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
>  index a8bd5b1..51bb9bc 100644
>  --- a/giscanner/ccompiler.py
>  +++ b/giscanner/ccompiler.py
> -@@ -229,6 +229,8 @@ class CCompiler(object):
> +@@ -231,6 +231,8 @@ class CCompiler(object):
>   
>           for envvar in runtime_path_envvar:
>               if envvar in os.environ:
> diff --git a/package/gobject-introspection/gobject-introspection.hash b/package/gobject-introspection/gobject-introspection.hash
> index 68bf63e055..8ce7ae000c 100644
> --- a/package/gobject-introspection/gobject-introspection.hash
> +++ b/package/gobject-introspection/gobject-introspection.hash
> @@ -1,4 +1,4 @@
> -#From http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.64/gobject-introspection-1.64.1.sha256sum
> -sha256 80beae6728c134521926affff9b2e97125749b38d38744dc901f4010ee3e7fa7 gobject-introspection-1.64.1.tar.xz
> +#From http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/1.68/gobject-introspection-1.68.0.sha256sum
> +sha256 d229242481a201b84a0c66716de1752bca41db4133672cfcfb37c93eb6e54a27 gobject-introspection-1.68.0.tar.xz
>  sha256 d245807f90032872d1438d741ed21e2490e1175dc8aa3afa5ddb6c8e529b58e5 COPYING.LGPL
>  sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING.GPL
> diff --git a/package/gobject-introspection/gobject-introspection.mk b/package/gobject-introspection/gobject-introspection.mk
> index eefb2c83f7..d8138b2e96 100644
> --- a/package/gobject-introspection/gobject-introspection.mk
> +++ b/package/gobject-introspection/gobject-introspection.mk
> @@ -4,8 +4,8 @@
>  #
>  ################################################################################
>  
> -GOBJECT_INTROSPECTION_VERSION_MAJOR = 1.64
> -GOBJECT_INTROSPECTION_VERSION = $(GOBJECT_INTROSPECTION_VERSION_MAJOR).1
> +GOBJECT_INTROSPECTION_VERSION_MAJOR = 1.68
> +GOBJECT_INTROSPECTION_VERSION = $(GOBJECT_INTROSPECTION_VERSION_MAJOR).0
>  GOBJECT_INTROSPECTION_SITE = http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/$(GOBJECT_INTROSPECTION_VERSION_MAJOR)
>  GOBJECT_INTROSPECTION_SOURCE = gobject-introspection-$(GOBJECT_INTROSPECTION_VERSION).tar.xz
>  GOBJECT_INTROSPECTION_INSTALL_STAGING = YES
> @@ -43,7 +43,7 @@ HOST_GOBJECT_INTROSPECTION_NINJA_ENV += \
>  # Use the host gi-scanner to prevent the scanner from generating incorrect
>  # elf classes.
>  GOBJECT_INTROSPECTION_CONF_OPTS = \
> -	-Dgi_cross_use_host_gi=true \
> +	-Dgi_cross_use_prebuilt_gi=true \
>  	-Dgi_cross_binary_wrapper="$(STAGING_DIR)/usr/bin/g-ir-scanner-qemuwrapper" \
>  	-Dgi_cross_ldd_wrapper="$(STAGING_DIR)/usr/bin/g-ir-scanner-lddwrapper" \
>  	-Dbuild_introspection_data=true \
> @@ -64,8 +64,8 @@ HOST_GOBJECT_INTROSPECTION_CONF_ENV = \
>  	GI_SCANNER_DISABLE_CACHE=1
>  
>  # Make sure g-ir-tool-template uses the host python.
> -define GOBJECT_INTROSPECTION_FIX_TOOLTEMPLATE_PYTHON_PATH
> -	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python%' $(@D)/tools/g-ir-tool-template.in
> +define GOBJECT_INTROSPECTION_FIX_TOOLS_PYTHON_PATH
> +	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python3%' $(@D)/tools/g-ir-tool-template.in
>  endef
>  HOST_GOBJECT_INTROSPECTION_PRE_CONFIGURE_HOOKS += GOBJECT_INTROSPECTION_FIX_TOOLTEMPLATE_PYTHON_PATH
>  
> @@ -75,7 +75,7 @@ HOST_GOBJECT_INTROSPECTION_PRE_CONFIGURE_HOOKS += GOBJECT_INTROSPECTION_FIX_TOOL
>  # - Create a safe modules directory which does not exist so we don't load random things
>  #   which may then get deleted (or their dependencies) and potentially segfault
>  define GOBJECT_INTROSPECTION_INSTALL_PRE_WRAPPERS
> -	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python%' $(@D)/tools/g-ir-tool-template.in
> +	$(SED) '1s%#!.*%#!$(HOST_DIR)/bin/python3%' $(@D)/tools/g-ir-tool-template.in
>  
>  	$(INSTALL) -D -m 755 $(GOBJECT_INTROSPECTION_PKGDIR)/g-ir-scanner-lddwrapper.in \
>  		$(STAGING_DIR)/usr/bin/g-ir-scanner-lddwrapper
> -- 
> 2.31.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

end of thread, other threads:[~2021-05-20 13:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-01 19:56 [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1 Adam Duskett
2021-05-01 19:56 ` [Buildroot] [PATCH 2/3] package/libglib2: add -Dxattr=true when libselinux is selected Adam Duskett
2021-05-20 12:59   ` Yann E. MORIN
2021-05-01 19:56 ` [Buildroot] [PATCH 3/3] package/gobject-introspection: bump to version 1.68.0 Adam Duskett
2021-05-20 13:01   ` Yann E. MORIN
2021-05-20 12:59 ` [Buildroot] [PATCH 1/3] package/libglib2: bump to version 2.68.1 Yann E. MORIN

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.