From ee0b4733e1a186048983ac6b6ba0bae23b3f567d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 16 Jun 2019 20:34:13 +0300 Subject: gnu: toybox: Don't install files to usr. * gnu/packages/busybox.scm (toybox)[arguments]: Add custom phase to remove any files installed in $PREFIX/usr. --- gnu/packages/busybox.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/busybox.scm b/gnu/packages/busybox.scm index cc6257ba35..182b8ac618 100644 --- a/gnu/packages/busybox.scm +++ b/gnu/packages/busybox.scm @@ -1,8 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 John Darrington -;;; Copyright © 2016, 2017, 2018 Efraim Flashner +;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice -;;; Copyright © 2018 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -133,7 +132,12 @@ any small or embedded system.") (let ((out (assoc-ref outputs "out"))) (invoke "make" (string-append "PREFIX=" out) - "install"))))) + "install")))) + (add-after 'install 'remove-usr-directory + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (delete-file-recursively (string-append out "/usr")) + #t)))) #:test-target "tests")) (native-inputs `(("bc" ,bc))) (synopsis "Many common UNIX utilities in a single executable") -- cgit v1.2.3