Sha256: 9146cf8b4a103d23dc7d1a83c4b56887b71b320fe16fa4097fce6e69877d205b

Contents?: true

Size: 961 Bytes

Versions: 24

Compression:

Stored size: 961 Bytes

Contents

From fb618bd27ac7a9fd32973320016c7ff28dd2f60e Mon Sep 17 00:00:00 2001
From: Mike Dalessio <mike.dalessio@gmail.com>
Date: Fri, 5 May 2023 10:10:43 -0400
Subject: [PATCH] rip out libxml2's libc_single_threaded support

This is a preventative measure because this feature relies on a glibc
version we can't realistically require of users today. We're not yet
precompiling on a system with a modern-enough glibc to make this an
actual problem, but I'm doing it while all of this context is fresh.
---
 threads.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/threads.c b/threads.c
index 60dbce4c..eb1c12e5 100644
--- a/threads.c
+++ b/threads.c
@@ -27,7 +27,8 @@
 
 #if defined(HAVE_POSIX_THREADS) && \
     defined(__GLIBC__) && \
-    __GLIBC__ * 100 + __GLIBC_MINOR__ >= 234
+    __GLIBC__ * 100 + __GLIBC_MINOR__ >= 234 && \
+    !defined(NOKOGIRI_PRECOMPILED_LIBRARIES)
 
 /*
  * The modern way available since glibc 2.32.
-- 
2.40.1

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
nokogiri-1.18.2 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.18.1 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.18.0 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.18.0.rc1 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.17.2 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.17.1 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.17.0 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.15.7 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.8 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.7 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.6 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.4 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.15.6 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.3 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.2 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.1 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.0 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.16.0.rc1 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.15.5 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch
nokogiri-1.15.4 patches/libxml2/0011-rip-out-libxml2-s-libc_single_threaded-support.patch