Skip to content

Commit

Permalink
libglib: update to glib 2.70.0
Browse files Browse the repository at this point in the history
Includes a fix for calling the `close_range()` function, which was
added in glibc 2.34.

glib2 still depends on the original PCRE library, rather than PCRE2
which we package as "libpcre". Older versions of glib2 included pcre
sources directly in the tree; newer versions use a meson subproject
and wrap to vendor the dependency.

meson is blocked from downloading sources, so we now include the pcre
archive and build overlay as external files. This package is expected
to remain the only consumer of PCRE in the distro.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
  • Loading branch information
bcressey committed Sep 30, 2021
1 parent cfd54ea commit 8fffc5a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
13 changes: 11 additions & 2 deletions packages/libglib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ path = "pkg.rs"
releases-url = "https://download.gnome.org/sources/glib"

[[package.metadata.build-package.external-files]]
url = "https://download.gnome.org/sources/glib/2.68/glib-2.68.3.tar.xz"
sha512 = "fb120105c4cb582491a53a0e4c61fe4bdd1f94b279bb7c362afd591369ede50a196c706375564ededf3550d4062a285b038e20b605e6d5dfe36f5d208f4bad3f"
url = "https://download.gnome.org/sources/glib/2.70/glib-2.70.0.tar.xz"
sha512 = "fd3fcaebd34aebe0e63f9dc915b2df026a3f88a5c2254e9f17beea0a59ab0ac563976fca54eb57bd2f7af183c4ae76fb86f05951216bf4159d258b5e7b29696f"

[[package.metadata.build-package.external-files]]
url = "https://ftp.pcre.org/pub/pcre/pcre-8.37.tar.bz2"
sha512 = "19344c9add2ebbd26c528505d07d3b028d79bc3e6103d51453a449cebd76bc76f5bc7ddd9ef0de41f98c50be74a2d9a65db539ed60f1add1086d99bde8a81466"

[[package.metadata.build-package.external-files]]
url = "https://wrapdb.mesonbuild.com/v2/pcre_8.37-2/get_patch"
path = "pcre_8.37-2_patch.zip"
sha512 = "601790189ce5553b71931f6eec2bb167f74de53736e84b68fd5e1d8658661b3239782ac9c4cd1eb8c87fbbcdb49f5cd6954d6f48d47c6ef8895ee55bc70f15b8"

[build-dependencies]
glibc = { path = "../glibc" }
Expand Down
15 changes: 12 additions & 3 deletions packages/libglib/libglib.spec
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
Name: %{_cross_os}libglib
Version: 2.68.3
Version: 2.70.0
Release: 1%{?dist}
Summary: The GLib libraries
License: LGPL-2.1-or-later
# glib2 is LGPL-2.1-only
# pcre is BSD-3-Clause
License: LGPL-2.1-only AND BSD-3-Clause
URL: https://www.gtk.org/
Source0: https://download.gnome.org/sources/glib/2.68/glib-%{version}.tar.xz
Source0: https://download.gnome.org/sources/glib/2.70/glib-%{version}.tar.xz
# Note: the pcre version is specified in the glib archive in subprojects/libpcre.wrap
Source1: https://ftp.pcre.org/pub/pcre/pcre-8.37.tar.bz2
Source2: https://wrapdb.mesonbuild.com/v2/pcre_8.37-2/get_patch#/pcre_8.37-2_patch.zip
BuildRequires: meson
BuildRequires: %{_cross_os}glibc-devel
BuildRequires: %{_cross_os}libffi-devel
Expand All @@ -29,6 +34,10 @@ Requires: %{_cross_os}libffi-devel

%prep
%autosetup -n glib-%{version} -p1
pushd subprojects >/dev/null
tar xf %{S:1}
unzip %{S:2}
popd >/dev/null

%build
CONFIGURE_OPTS=(
Expand Down

0 comments on commit 8fffc5a

Please sign in to comment.