summary refs log tree commit diff
path: root/gnu/packages/netpbm.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-04-01 19:44:05 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2020-04-01 19:45:44 +0200
commit204d55c9800b146ef8e8b249cb5be0ab8a028998 (patch)
tree75270f35612a125a2087ed73f6ae27d35b5a59b8 /gnu/packages/netpbm.scm
parent63406c0bfd0d016098ef593dcc8bfc412df36bea (diff)
downloadguix-204d55c9800b146ef8e8b249cb5be0ab8a028998.tar.gz
gnu: netpbm: Install an unversioned library link.
* gnu/packages/netpbm.scm (netpbm)[arguments]: Symlink libnetpbm.so.*.*
to libnetpbm.so.

Reported by R Veera Kumar <vkor@vkten.in>.
Diffstat (limited to 'gnu/packages/netpbm.scm')
-rw-r--r--gnu/packages/netpbm.scm16
1 files changed, 13 insertions, 3 deletions
diff --git a/gnu/packages/netpbm.scm b/gnu/packages/netpbm.scm
index c88b5a9dff..126f29f06f 100644
--- a/gnu/packages/netpbm.scm
+++ b/gnu/packages/netpbm.scm
@@ -114,7 +114,10 @@
        ("pkg-config" ,pkg-config)
        ("python" ,python-wrapper)))
    (arguments
-    `(#:phases
+    `(#:modules ((guix build gnu-build-system)
+                 (guix build utils)
+                 (ice-9 match))
+      #:phases
       (modify-phases %standard-phases
        (replace 'configure
          (lambda* (#:key inputs outputs #:allow-other-keys)
@@ -174,8 +177,15 @@
              (with-directory-excursion out
                (for-each delete-file-recursively
                          '("config_template" "pkginfo" "README" "VERSION"
-                           "link/" "misc/")))
-             #t))))))
+                           "link/" "misc/"))
+               ;; Install the required ‘libnetpbm.so’ link.
+               ;; See <https://issues.guix.gnu.org/issue/40376>.
+               (with-directory-excursion "lib"
+                 (symlink
+                  (match (find-files "." "^libnetpbm\\.so\\.[^.]*\\.[^.]*$")
+                         ((head _ ...) head))
+                  "libnetpbm.so"))
+               #t)))))))
    (synopsis "Toolkit for manipulation of images")
    (description
     "Netpbm is a toolkit for the manipulation of graphic images, including