unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 7a64386ceb7707a1c6f570b6901ebbf0036831c1 988 bytes (raw)
name: gnu/packages/patches/procps-non-linux.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
From aa9bd38d0a6fe53aff7f78fb2d9f61e55677c7b5 Mon Sep 17 00:00:00 2001
From: Craig Small <csmall@enc.com.au>
Date: Sun, 17 Apr 2016 09:09:41 +1000
Subject: [PATCH] tests: Conditionally add prctl to test process

prctl was already bypassed on Cygwin systems. This extends to
non-Linux systems such as kFreeBSD and Hurd.

---
 lib/test_process.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/test_process.c b/lib/test_process.c
index 6e652ed..6a4776c 100644
--- a/lib/test_process.c
+++ b/lib/test_process.c
@@ -21,7 +21,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <signal.h>
-#ifndef __CYGWIN__
+#ifdef __linux__
 #include <sys/prctl.h>
 #endif
 #include "c.h"
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
     sigaction(SIGUSR1, &signal_action, NULL);
     sigaction(SIGUSR2, &signal_action, NULL);
 
-#ifndef __CYGWIN__
+#ifdef __linux__
     /* set process name */
     prctl(PR_SET_NAME, MY_NAME, NULL, NULL, NULL);
 #endif
-- 
2.8.2


debug log:

solving 7a64386 ...
found 7a64386 in https://yhetil.org/guix-devel/1a2eb28f-bd13-f40b-e02e-758b2d740b4b@gmail.com/

applying [1/1] https://yhetil.org/guix-devel/1a2eb28f-bd13-f40b-e02e-758b2d740b4b@gmail.com/
diff --git a/gnu/packages/patches/procps-non-linux.patch b/gnu/packages/patches/procps-non-linux.patch
new file mode 100644
index 0000000..7a64386

1:35: trailing whitespace.
 
1:41: trailing whitespace.
-- 
Checking patch gnu/packages/patches/procps-non-linux.patch...
1:43: new blank line at EOF.
+
Applied patch gnu/packages/patches/procps-non-linux.patch cleanly.
warning: 3 lines add whitespace errors.

index at:
100644 7a64386ceb7707a1c6f570b6901ebbf0036831c1	gnu/packages/patches/procps-non-linux.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).