diff mbox

gnu: Fix path to /etc/netconfig in libtirpc.

Message ID 1481121030-1923-1-git-send-email-jmd@gnu.org
State New
Headers show

Commit Message

John Darrington Dec. 7, 2016, 2:30 p.m. UTC
* gnu: gnu/packages/onc-rpc.scm (libtirpc) [arguments]: Replace "/etc/netconfig"
with (string-append %output "/etc/netconfig")
---
 gnu/packages/onc-rpc.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Ludovic Courtès Dec. 7, 2016, 9:41 p.m. UTC | #1
John Darrington <jmd@gnu.org> skribis:

> * gnu: gnu/packages/onc-rpc.scm (libtirpc) [arguments]: Replace "/etc/netconfig"
    ^^^^
Typo.

Otherwise LGTM, thanks!

Ludo’.
diff mbox

Patch

diff --git a/gnu/packages/onc-rpc.scm b/gnu/packages/onc-rpc.scm
index 0bcc885..8ef3e9f 100644
--- a/gnu/packages/onc-rpc.scm
+++ b/gnu/packages/onc-rpc.scm
@@ -43,6 +43,14 @@ 
        (modify-phases %standard-phases
          (add-after 'unpack 'remote-dangling-symlink
            (lambda _
+             (substitute* '("man/netconfig.5"
+                            "man/getnetconfig.3t"
+                            "man/getnetpath.3t"
+                            "man/rpc.3t"
+                            "src/getnetconfig.c"
+                            "tirpc/netconfig.h")
+               (("/etc/netconfig") (string-append %output "/etc/netconfig")))
+
              ;; Remove the dangling symlinks since it breaks the
              ;; 'patch-source-shebangs' file tree traversal.
              (delete-file "INSTALL"))))))