Blame packages/o/open-vm-tools/detect-suse-location.patch

6f244e
diff --git a/open-vm-tools/configure.ac b/open-vm-tools/configure.ac
6f244e
index 3c058135..203fdc6f 100644
6f244e
--- a/open-vm-tools/configure.ac
6f244e
+++ b/open-vm-tools/configure.ac
6f244e
@@ -726,12 +726,18 @@ AC_DEFUN([AC_VMW_CONTAINERINFO_MSG],[
6f244e
 #
6f244e
 # proto files needed by containerd grpc client.
6f244e
 #
6f244e
-   shared_prefix=/usr/share/gocode/src/github.com
6f244e
+   for d in /usr/share/gocode/src /usr/share/go/1.*/contrib/src; do
6f244e
+      if test -d "$d"/github.com; then
6f244e
+         src_prefix="$d"
6f244e
+         break
6f244e
+      fi
6f244e
+   done
6f244e
+   shared_prefix=$src_prefix/github.com
6f244e
    AC_SUBST(TYPES_DIR, github.com/containerd/containerd/api/types)
6f244e
    AC_SUBST(TASKS_PROTOPATH, $shared_prefix/containerd/containerd/api/services/tasks/v1)
6f244e
-   AC_SUBST(DEP_PROTOPATH, /usr/share/gocode/src)
6f244e
+   AC_SUBST(DEP_PROTOPATH, $src_prefix)
6f244e
    AC_SUBST(CONTAINERD_PROTOPATH, $shared_prefix/containerd/containerd/api/services/containers/v1)
6f244e
-   AC_SUBST(GOGO_PROTOPATH, $shared_prefix/gogo/protobuf)
6f244e
+   AC_SUBST(GOGO_PROTOPATH, $shared_prefix/containerd/containerd/vendor/github.com/gogo/protobuf)
6f244e
    AC_CHECK_FILE([${CONTAINERD_PROTOPATH}/containers.proto],
6f244e
                  [],
6f244e
                  [AC_VMW_CONTAINERINFO_MSG(["containerd package"])])