SHA256
3
0
forked from pool/glibc

Accepting request 731862 from home:Andreas_Schwab:Factory

- riscv-vfork.patch: Fix RISC-V vfork build with Linux 5.3 kernel headers

OBS-URL: https://build.opensuse.org/request/show/731862
OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=539
This commit is contained in:
Andreas Schwab 2019-09-19 07:09:04 +00:00 committed by Git OBS Bridge
parent e1b1fc6551
commit 5094961fbd
3 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 18 13:57:25 UTC 2019 - Andreas Schwab <schwab@suse.de>
- riscv-vfork.patch: Fix RISC-V vfork build with Linux 5.3 kernel headers
-------------------------------------------------------------------
Mon Aug 19 13:47:26 UTC 2019 - Andreas Schwab <schwab@suse.de>

View File

@ -261,6 +261,8 @@ Patch306: glibc-fix-double-loopback.diff
###
# PATCH-FIX-UPSTREAM malloc: Remove unwanted leading whitespace in malloc_info (BZ #24867)
Patch1000: malloc-info-whitespace.patch
# PATCH-FIX-UPSTREAM Fix RISC-V vfork build with Linux 5.3 kernel headers
Patch1001: riscv-vfork.patch
###
# Patches awaiting upstream approval
@ -467,6 +469,7 @@ makedb: A program to create a database for nss
%patch306 -p1
%patch1000 -p1
%patch1001 -p1
%patch2000 -p1
%patch2001 -p1

25
riscv-vfork.patch Normal file
View File

@ -0,0 +1,25 @@
2019-09-18 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
<linux/sched.h>.
(CLONE_VM): New macro.
(CLONE_VFORK): Likewise.
Index: glibc-2.30/sysdeps/unix/sysv/linux/riscv/vfork.S
===================================================================
--- glibc-2.30.orig/sysdeps/unix/sysv/linux/riscv/vfork.S
+++ glibc-2.30/sysdeps/unix/sysv/linux/riscv/vfork.S
@@ -21,9 +21,12 @@
#include <sys/asm.h>
#include <sysdep.h>
#define __ASSEMBLY__
-#include <linux/sched.h>
#include <asm/signal.h>
+#define CLONE_VM 0x00000100 /* Set if VM shared between processes. */
+#define CLONE_VFORK 0x00004000 /* Set if the parent wants the child to
+ wake it up on mm_release. */
+
.text
LEAF (__libc_vfork)