summaryrefslogtreecommitdiff
path: root/system/fakeroot/fakeroot-skip-ipc-sanity-check.patch
blob: fc96c2922a0982549ccfd493a14c23460f67f803 (plain) (blame)
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
38
39
40
41
42
43
44
45
46
diff -urN fakeroot-1.25.3.orig/configure.ac fakeroot-1.25.3/configure.ac
--- fakeroot-1.25.3.orig/configure.ac	2020-12-15 02:33:22.866626448 -0700
+++ fakeroot-1.25.3/configure.ac	2020-12-15 02:33:40.563359415 -0700
@@ -25,42 +25,6 @@
 	       [ac_cv_use_ipc],
 	       [ac_cv_use_ipc=sysv])
 
-if test $ac_cv_use_ipc = "sysv"; then
-  AC_MSG_CHECKING([whether SysV IPC message queues are actually working on the host])
-
-  AC_LANG_PUSH(C)
-  AC_TRY_RUN([
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/msg.h>
-#include <time.h>
-#include <unistd.h>
-
-int main() {
-
-  srandom(time(NULL)+getpid()*33151);
-  key_t msg_key = random();
-  int msg_get = msgget(msg_key, IPC_CREAT|0600);
-
-  if (msg_get==-1) {
-    return 1;
-  } else {
-    msgctl(msg_get, IPC_RMID, NULL);
-    return 0;
-  }
-
-}], [ac_cv_use_ipc=sysv], [ac_cv_use_ipc=tcp])
-
-  if test $ac_cv_use_ipc = "tcp"; then
-    AC_MSG_RESULT([No, using TCP])
-  else
-    AC_MSG_RESULT([Yes])
-  fi
-
-  AC_LANG_POP(C)
-fi
-
 AC_ARG_WITH([dbformat],
 	    AS_HELP_STRING([--with-dbformat@<:@=DBFORMAT@:>@],
 			   [database format to use: either inode (default) or path]),