blob: 763462aa04b72d040043b82050c4613a6fb6e45a (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
$FreeBSD: /tmp/pcvs/ports/japanese/mailman/files/patch-configure.in,v 1.1 2012-03-04 06:00:38 tota Exp $
Mailman tests for existence of users during configure -- unfortunately
this creates a problem; we create the users just before install.
We remove the testing part.
--- configure.in.orig 2011-12-11 16:56:23.000000000 +0900
+++ configure.in 2012-02-15 06:11:05.000000000 +0900
@@ -341,28 +341,7 @@
# $2 == user id to check for
AC_SUBST($1)
changequote(,)
-if test -z "$$1"
-then
- cat > conftest.py <<EOF
-import grp
-gid = ''
-for group in "$2".split():
- try:
- try:
- gname = grp.getgrgid(int(group))[0]
- break
- except ValueError:
- gname = grp.getgrnam(group)[0]
- break
- except KeyError:
- gname = ''
-fp = open("conftest.out", "w")
-fp.write("%s\n" % gname)
-fp.close()
-EOF
- $PYTHON conftest.py
- $1=`cat conftest.out`
-fi
+$1=$2
changequote([, ])
rm -f conftest.out conftest.py])
@@ -373,28 +352,7 @@
# $2 == user id to check for
AC_SUBST($1)
changequote(,)
-if test -z "$$1"
-then
- cat > conftest.py <<EOF
-import pwd
-uid = ''
-for user in "$2".split():
- try:
- try:
- uname = pwd.getpwuid(int(user))[0]
- break
- except ValueError:
- uname = pwd.getpwnam(user)[0]
- break
- except KeyError:
- uname = ''
-fp = open("conftest.out", "w")
-fp.write("%s\n" % uname)
-fp.close()
-EOF
- $PYTHON conftest.py
- $1=`cat conftest.out`
-fi
+$1=$2
changequote([, ])
rm -f conftest.out conftest.py])
|