Browse Source

glib2: update to 2.68.1

Removed two now pointless patches as they were added as options.

Switch to AUTORELEASE for simplicity.

Update MESON_ARGS.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 4 years ago
parent
commit
e1d8f4fc96
6 changed files with 13 additions and 43 deletions
  1. +9
    -5
      libs/glib2/Makefile
  2. +0
    -23
      libs/glib2/patches/001-no-libelf.patch
  3. +0
    -11
      libs/glib2/patches/002-no-tests.patch
  4. +2
    -2
      libs/glib2/patches/004-no-distutils.patch
  5. +1
    -1
      libs/glib2/patches/005-uclibc.patch
  6. +1
    -1
      libs/glib2/patches/006-c99.patch

+ 9
- 5
libs/glib2/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=glib2 PKG_NAME:=glib2
PKG_VERSION:=2.66.4
PKG_RELEASE:=1
PKG_VERSION:=2.68.1
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNOME/glib/2.66
PKG_HASH:=97df8670e32f9fd4f7392b0980e661dd625012015d58350da1e58e343f4af984
PKG_SOURCE_URL:=@GNOME/glib/2.68
PKG_HASH:=241654b96bd36b88aaa12814efc4843b578e55d47440103727959ac346944333
PKG_MAINTAINER:=Peter Wagner <tripolar@gmx.at> PKG_MAINTAINER:=Peter Wagner <tripolar@gmx.at>
PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE:=LGPL-2.1-or-later
@ -57,15 +57,19 @@ COMP_ARGS= \
-Dman=false \ -Dman=false \
-Ddtrace=false \ -Ddtrace=false \
-Dsystemtap=false \ -Dsystemtap=false \
-Dsysprof=disabled \
-Dgtk_doc=false \ -Dgtk_doc=false \
-Dbsymbolic_functions=true \ -Dbsymbolic_functions=true \
-Dforce_posix_threads=true \ -Dforce_posix_threads=true \
-Dfam=false \ -Dfam=false \
-Dtests=false \
-Dinstalled_tests=false \ -Dinstalled_tests=false \
-Dnls=$(if $(CONFIG_BUILD_NLS),en,dis)abled \ -Dnls=$(if $(CONFIG_BUILD_NLS),en,dis)abled \
-Doss_fuzz=disabled \ -Doss_fuzz=disabled \
-Dglib_debug=disabled \
-Dglib_assert=false \ -Dglib_assert=false \
-Dglib_checks=false
-Dglib_checks=false \
-Dlibelf=disabled
MESON_HOST_ARGS += $(COMP_ARGS) -Dxattr=false MESON_HOST_ARGS += $(COMP_ARGS) -Dxattr=false
MESON_ARGS += $(COMP_ARGS) -Dxattr=true -Db_lto=true MESON_ARGS += $(COMP_ARGS) -Dxattr=true -Db_lto=true


+ 0
- 23
libs/glib2/patches/001-no-libelf.patch View File

@ -1,23 +0,0 @@
--- a/gio/meson.build
+++ b/gio/meson.build
@@ -874,20 +874,6 @@ endif
# Dependencies used by executables below
have_libelf = false
-libelf = dependency('libelf', version : '>= 0.8.12', required : false)
-if libelf.found()
- have_libelf = true
-else
- # This fallback is necessary on *BSD. elfutils isn't the only libelf
- # implementation, and *BSD usually includes their own libelf as a system
- # library which doesn't have a corresponding .pc file.
- libelf = cc.find_library('elf', required : false)
- have_libelf = libelf.found()
- have_libelf = have_libelf and cc.has_function('elf_begin', dependencies : libelf)
- have_libelf = have_libelf and cc.has_function('elf_getshdrstrndx', dependencies : libelf)
- have_libelf = have_libelf and cc.has_function('elf_getshdrnum', dependencies : libelf)
- have_libelf = have_libelf and cc.has_header('libelf.h')
-endif
if have_libelf
glib_conf.set('HAVE_LIBELF', 1)

+ 0
- 11
libs/glib2/patches/002-no-tests.patch View File

@ -1,11 +0,0 @@
--- a/meson.build
+++ b/meson.build
@@ -94,7 +94,7 @@ installed_tests_template = files('templa
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 = false
add_project_arguments('-D_GNU_SOURCE', language: 'c')

+ 2
- 2
libs/glib2/patches/004-no-distutils.patch View File

@ -1,6 +1,6 @@
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -2185,16 +2185,10 @@ endif
@@ -2220,16 +2220,10 @@ endif
glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline) glib_conf.set('HAVE_PROC_SELF_CMDLINE', have_proc_self_cmdline)
@ -17,4 +17,4 @@
- -
# Determine which user environment-dependent files that we want to install # Determine which user environment-dependent files that we want to install
have_bash = find_program('bash', required : false).found() # For completion scripts have_bash = find_program('bash', required : false).found() # For completion scripts
have_sh = find_program('sh', required : false).found() # For glib-gettextize
bash_comp_dep = dependency('bash-completion', version: '>=2.0', required: false)

+ 1
- 1
libs/glib2/patches/005-uclibc.patch View File

@ -1,6 +1,6 @@
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -2003,8 +2003,8 @@ endif
@@ -2038,8 +2038,8 @@ endif
# FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible # FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
# implementations. This could be extended if issues are found in some platforms. # implementations. This could be extended if issues are found in some platforms.
libintl_deps = [] libintl_deps = []


+ 1
- 1
libs/glib2/patches/006-c99.patch View File

@ -1,6 +1,6 @@
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -923,7 +923,7 @@ if host_system == 'windows' and (cc.get_
@@ -944,7 +944,7 @@ if host_system == 'windows' and (cc.get_
glib_conf.set('HAVE_C99_SNPRINTF', false) glib_conf.set('HAVE_C99_SNPRINTF', false)
glib_conf.set('HAVE_C99_VSNPRINTF', false) glib_conf.set('HAVE_C99_VSNPRINTF', false)
glib_conf.set('HAVE_UNIX98_PRINTF', false) glib_conf.set('HAVE_UNIX98_PRINTF', false)


Loading…
Cancel
Save