[packages/dietlibc] - rel 5; seems that disabling vsyscall is possible, so try it after all
arekm
arekm at pld-linux.org
Thu Feb 8 18:23:33 CET 2018
commit 015bcd3c51fefccde329ebbeba0f5dd7294e5ecd
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Feb 8 18:23:24 2018 +0100
- rel 5; seems that disabling vsyscall is possible, so try it after all
dietlibc-no-vsyscall.patch | 14 ++++++++++++++
dietlibc.spec | 9 +++------
2 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/dietlibc.spec b/dietlibc.spec
index 0f26b95..56d6509 100644
--- a/dietlibc.spec
+++ b/dietlibc.spec
@@ -1,8 +1,3 @@
-# NOTE: recent PLD kernels no longer support vsyscalls and dietlibc
-# uses vsyscall heavily, so your apps can stop working segfaulting with:
-# "vsyscall attempted with vsyscall=none ...."
-# in dmesg.
-
# Conditional build:
%bcond_without ssp # stack-smashing protector
%bcond_with dynamic # dynamic lib support
@@ -16,7 +11,7 @@ Summary(pl.UTF-8): Biblioteka standardowa C zoptymalizowana na rozmiar
Summary(pt_BR.UTF-8): libc pequena otimizada para tamanho
Name: dietlibc
Version: 0.33
-Release: 4
+Release: 5
Epoch: 2
License: GPL v2
Group: Development/Libraries
@@ -36,6 +31,7 @@ Patch10: %{name}-getsubopt.patch
Patch11: %{name}-devmacros.patch
Patch12: %{name}-notify.patch
Patch13: x32-fixes.patch
+Patch14: %{name}-no-vsyscall.patch
Patch100: git.patch
URL: http://www.fefe.de/dietlibc/
BuildRequires: rpmbuild(macros) >= 1.566
@@ -120,6 +116,7 @@ statyczne.
%patch11 -p1
%patch12 -p1
%patch13 -p1
+%patch14 -p1
%if "%{cc_version}" < "3.4"
%{__sed} -i -e '/CFLAGS/ s/-Wextra//' Makefile
diff --git a/dietlibc-no-vsyscall.patch b/dietlibc-no-vsyscall.patch
new file mode 100644
index 0000000..1b80f26
--- /dev/null
+++ b/dietlibc-no-vsyscall.patch
@@ -0,0 +1,14 @@
+--- dietlibc-0.33/dietfeatures.h~ 2018-02-08 18:18:17.000000000 +0100
++++ dietlibc-0.33/dietfeatures.h 2018-02-08 18:21:02.388516769 +0100
+@@ -41,11 +41,6 @@
+ * string */
+ /* #define WANT_FULL_POSIX_COMPAT */
+
+-/* on i386, Linux has an alternate syscall method since 2002/12/16 */
+-/* on my Athlon XP, it is twice as fast, but it's only in kernel 2.5 */
+-/* 20040118: enabling this breaks User Mode Linux! It's their fault. */
+-#define WANT_SYSENTER
+-
+ #define WANT_LINKER_WARNINGS
+
+ /* you need to define this if you want to run your programs with large
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dietlibc.git/commitdiff/015bcd3c51fefccde329ebbeba0f5dd7294e5ecd
More information about the pld-cvs-commit
mailing list