From 8fbffe023cf8858651c3dc2d1df21e535aa4026f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Thu, 10 Oct 2019 15:35:10 +0200 Subject: [PATCH] - release 3, glibc-2.30 provides gettid definition --- seamonkey-glibc2.30.patch | 17 +++++++++++++++++ seamonkey.spec | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 seamonkey-glibc2.30.patch diff --git a/seamonkey-glibc2.30.patch b/seamonkey-glibc2.30.patch new file mode 100644 index 0000000..205cb34 --- /dev/null +++ b/seamonkey-glibc2.30.patch @@ -0,0 +1,17 @@ +--- seamonkey-2.49.4/mozilla/tools/profiler/core/platform.h~ 2018-07-12 04:19:15.000000000 +0200 ++++ seamonkey-2.49.4/mozilla/tools/profiler/core/platform.h 2019-10-10 14:38:34.367540687 +0200 +@@ -65,12 +65,14 @@ + #include + #if !defined(__BIONIC__) + #include ++#if defined(__GLIBC__) && ! __GLIBC_PREREQ(2, 30) + static inline pid_t gettid() + { + return (pid_t) syscall(SYS_gettid); + } + #endif + #endif ++#endif + + #ifdef XP_WIN + #include diff --git a/seamonkey.spec b/seamonkey.spec index 0e74a38..0eef080 100644 --- a/seamonkey.spec +++ b/seamonkey.spec @@ -30,7 +30,7 @@ Summary(pl.UTF-8): SeaMonkey Community Edition - przeglądarka WWW Summary(pt_BR.UTF-8): Navegador SeaMonkey Community Edition Name: seamonkey Version: 2.49.4 -Release: 2 +Release: 3 License: MPL v2.0 Group: X11/Applications/Networking Source0: http://ftp.mozilla.org/pub/seamonkey/releases/%{version}/source/%{name}-%{version}.source.tar.xz @@ -85,6 +85,7 @@ Patch3: %{name}-enable-addons.patch # Edit patch below and restore --system-site-packages when system virtualenv gets 1.7 upgrade Patch4: %{name}-system-virtualenv.patch Patch5: %{name}-icu-detect.patch +Patch6: %{name}-glibc2.30.patch URL: https://www.seamonkey-project.org/ BuildRequires: GConf2-devel >= 1.2.1 BuildRequires: OpenGL-devel @@ -531,6 +532,7 @@ unpack() { %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build cat << EOF > .mozconfig -- 2.43.0