summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2022-01-19 14:39:59 +0100
committerLars-Dominik Braun <lars@6xq.net>2022-01-19 14:41:38 +0100
commit71421529d8521eb48c707ed5cdb7ea7a75e52663 (patch)
treeb4dbe8796347b516fb48350f39a60d646d981f63 /gnu
parent873b2eca94cb5da13602abe651c6707fe99ff14b (diff)
downloadguix-71421529d8521eb48c707ed5cdb7ea7a75e52663.tar.gz
gnu: python-xdo: Hard-code path to libc.
Fixes: <https://issues.guix.gnu.org/53183>

* gnu/packages/python-xyz.scm (python-xdo)[arguments]: Also substitute*
reference of libc.
[inputs]: Add glibc.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 28019bcd2b..757afbbba5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14313,16 +14313,22 @@ in pure Python.")
            (lambda* (#:key inputs #:allow-other-keys)
              (let ((libxdo (string-append
                             (assoc-ref inputs "xdotool")
-                            "/lib/libxdo.so")))
+                            "/lib/libxdo.so"))
+                   (libc (string-append
+                          (assoc-ref inputs "glibc")
+                          "/lib/libc.so.6")))
                (substitute* "xdo/_xdo.py"
                  (("find_library\\(\"xdo\"\\)")
-                  (simple-format #f "\"~a\"" libxdo)))
+                  (simple-format #f "\"~a\"" libxdo))
+                 (("ctypes\\.util\\.find_library\\('libc'\\)")
+                  (simple-format #f "\"~a\"" libc)))
                #t))))
        #:tests? #f))  ; no tests provided
     (propagated-inputs
      (list python-six))
     (inputs
      `(("xdotool" ,xdotool)
+       ("glibc" ,glibc)
        ("libX11" ,libx11)))
     (home-page "https://tracker.debian.org/pkg/python-xdo")
     (synopsis "Python library for simulating X11 keyboard/mouse input")