aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/servers/openafs/1.9/tsmbac.patch
blob: f68c777b6f09d0f9115035764e6feecf2cfe7f4f (plain)
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
diff -ru openafs-1.8.0/src/butc/afsxbsa.c openafs-1.8.0.new/src/butc/afsxbsa.c
--- openafs-1.8.0/src/butc/afsxbsa.c	2018-04-06 03:21:12.000000000 +0200
+++ openafs-1.8.0.new/src/butc/afsxbsa.c	2018-06-12 16:26:26.272522305 +0200
@@ -651,7 +651,7 @@
 #if defined(AFS_AIX_ENV)
         dynlib = dlopen("/usr/lib/libApiDS.a(dsmapish.o)", RTLD_NOW | RTLD_LOCAL | RTLD_MEMBER);
 #elif defined (AFS_AMD64_LINUX26_ENV)
-	dynlib = dlopen("/usr/lib64/libApiTSM64.so", RTLD_NOW | RTLD_LOCAL);
+	dynlib = dlopen(XBSA_TSMLIB, RTLD_NOW | RTLD_LOCAL);
 #elif defined(AFS_SUN5_ENV) || defined(AFS_LINUX26_ENV)
         dynlib = dlopen("/usr/lib/libApiDS.so", RTLD_NOW | RTLD_LOCAL);
 #else
diff -ru openafs-1.8.0/src/cf/tivoli.m4 openafs-1.8.0.new/src/cf/tivoli.m4
--- openafs-1.8.0/src/cf/tivoli.m4	2018-04-06 03:21:12.000000000 +0200
+++ openafs-1.8.0.new/src/cf/tivoli.m4	2018-06-12 16:26:26.072522485 +0200
@@ -1,45 +1,7 @@
 AC_DEFUN([OPENAFS_TIVOLI_TESTS],[
 dnl check for tivoli
 AC_MSG_CHECKING(for tivoli tsm butc support)
-XBSA_CFLAGS=""
-if test "$enable_tivoli_tsm" = "yes"; then
-        XBSADIR1=/usr/tivoli/tsm/client/api/bin/xopen
-        XBSADIR2=/opt/tivoli/tsm/client/api/bin/xopen
-        XBSADIR3=/usr/tivoli/tsm/client/api/bin/sample
-        XBSADIR4=/opt/tivoli/tsm/client/api/bin/sample
-        XBSADIR5=/usr/tivoli/tsm/client/api/bin64/sample
-        XBSADIR6=/opt/tivoli/tsm/client/api/bin64/sample
-
-        if test -r "$XBSADIR3/dsmapifp.h"; then
-                XBSA_CFLAGS="-Dxbsa -DNEW_XBSA -I$XBSADIR3"
-                XBSA_XLIBS="-ldl"
-                AC_MSG_RESULT([yes, $XBSA_CFLAGS])
-        elif test -r "$XBSADIR4/dsmapifp.h"; then
-                XBSA_CFLAGS="-Dxbsa -DNEW_XBSA -I$XBSADIR4"
-                XBSA_XLIBS="-ldl"
-                AC_MSG_RESULT([yes, $XBSA_CFLAGS])
-        elif test -r "$XBSADIR5/dsmapifp.h"; then
-                XBSA_CFLAGS="-Dxbsa -DNEW_XBSA -I$XBSADIR5"
-                XBSA_XLIBS="-ldl"
-                AC_MSG_RESULT([yes, $XBSA_CFLAGS])
-        elif test -r "$XBSADIR6/dsmapifp.h"; then
-                XBSA_CFLAGS="-Dxbsa -DNEW_XBSA -I$XBSADIR6"
-                XBSA_XLIBS="-ldl"
-                AC_MSG_RESULT([yes, $XBSA_CFLAGS])
-        elif test -r "$XBSADIR1/xbsa.h"; then
-                XBSA_CFLAGS="-Dxbsa -I$XBSADIR1"
-                XBSA_XLIBS=""
-                AC_MSG_RESULT([yes, $XBSA_CFLAGS])
-        elif test -r "$XBSADIR2/xbsa.h"; then
-                XBSA_CFLAGS="-Dxbsa -I$XBSADIR2"
-                XBSA_XLIBS=""
-                AC_MSG_RESULT([yes, $XBSA_CFLAGS])
-        else
-                AC_MSG_RESULT([no, missing xbsa.h and dsmapifp.h header files])
-        fi
-else
-        AC_MSG_RESULT([no])
-fi
+AC_MSG_RESULT([yes])
 AC_SUBST(XBSA_CFLAGS)
 AC_SUBST(XBSA_XLIBS)
 XLIBS="$XBSA_XLIBS $XLIBS"