From 0887b6af81781ae74f0a34c59f32ed098fa199dc Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 8 Mar 2018 21:41:13 +0100 Subject: [PATCH] gnu: net-tools: Move 'ifconfig' to "/sbin". * gnu/packages/linux.scm (net-tools)[arguments]: In REMOVE-REDUNDANT-COMMANDS-PHASE, use rename-file on ifconfig. --- gnu/packages/linux.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 875f11062..916309b79 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1286,6 +1286,11 @@ inadequately in modern network environments, and both should be deprecated.") '("^hostname" "^(yp|nis|dns)?domainname")))) (for-each delete-file dup) + ;; ifconfig from net-tools is somewhat incompatible with + ;; GNU ifconfig, so we keep it around. Move it to "/sbin" + ;; to prevent conflict in %base-packages. + (rename-file (string-append out "/bin/ifconfig") + (string-append out "/sbin/ifconfig")) #t)))) ;; Binaries that depend on libnet-tools.a don't declare that ;; dependency, making it parallel-unsafe. -- 2.16.2