efraim pushed a commit to branch master
in repository guix.

commit 2ff17f06e7afc733b2459d563b0173f3fa346611
Author: Efraim Flashner <[email protected]>
AuthorDate: Mon Jan 6 11:43:23 2020 +0200

    gnu: perl-net-patricia: Fix build.
    
    * gnu/packages/networking.scm (perl-net-patricia)[arguments]: Add custom
    phase to prevent linking with 'nsl'.
---
 gnu/packages/networking.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index bbcae8f..5a8019a 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -14,7 +14,7 @@
 ;;; Copyright © 2016, 2017 Pjotr Prins <[email protected]>
 ;;; Copyright © 2017 Mathieu Othacehe <[email protected]>
 ;;; Copyright © 2017 Leo Famulari <[email protected]>
-;;; Copyright © 2017, 2018, 2019 Efraim Flashner <[email protected]>
+;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <[email protected]>
 ;;; Copyright © 2017, 2018, 2019 Rutger Helling <[email protected]>
 ;;; Copyright © 2017, 2019 Gábor Boskovits <[email protected]>
 ;;; Copyright © 2017 Thomas Danckaert <[email protected]>
@@ -1237,6 +1237,14 @@ It is intended primarily for use in testing.")
         (base32
           "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh"))))
   (build-system perl-build-system)
+  (arguments
+   '(#:phases
+     (modify-phases %standard-phases
+       (add-after 'unpack 'dont-link-with-nsl ; Borrowed from Debian.
+         (lambda _
+           (substitute* "Makefile.PL"
+             (("-lnsl") ""))
+           #t)))))
   (inputs
     `(("perl-net-cidr-lite" ,perl-net-cidr-lite)
       ("perl-socket6" ,perl-socket6)))

Reply via email to