guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: wireless-tools: Build shared library; remove non-free header


From: Mark H. Weaver
Subject: 01/01: gnu: wireless-tools: Build shared library; remove non-free headers.
Date: Fri, 14 Aug 2015 15:38:28 +0000

mhw pushed a commit to branch master
in repository guix.

commit c2099a4c82f8c88bbc2c8458e238c20bbb06a73c
Author: Mark H Weaver <address@hidden>
Date:   Fri Aug 14 11:31:15 2015 -0400

    gnu: wireless-tools: Build shared library; remove non-free headers.
    
    * gnu/packages/linux.scm (wireless-tools)[source]: Replace unneeded
      old snippet with a new one that removes non-free files.
      [arguments]: Use modify-phases.  Remove custom 'configure' phase.  Add
      make-flags.
      [license]: Change to (list gpl2 lgpl2.1+).
---
 gnu/packages/linux.scm |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 23562b9..ba2879f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1712,19 +1712,22 @@ mapper.  Kernel components are part of Linux-libre.")
               (sha256
                (base32
                 "0qscyd44jmhs4k32ggp107hlym1pcyjzihiai48xs7xzib4wbndb"))
-              (modules '((guix build utils)))
               (snippet
-               ;; Install the manual pages in the right place.
-               '(substitute* "Makefile"
-                  (("INSTALL_MAN= .*")
-                   "INSTALL_MAN= $(PREFIX)/share/man")))))
+               '(begin
+                  ;; Remove the older header files that are not free software.
+                  (for-each (lambda (n)
+                              (delete-file (format #f "wireless.~a.h" n)))
+                            '(10 11 12 13 14 15 16 17 18 19 20))
+                  #t))))
     (build-system gnu-build-system)
     (arguments
-     `(#:phases (alist-replace
-                 'configure
-                 (lambda* (#:key outputs #:allow-other-keys)
-                   (setenv "PREFIX" (assoc-ref outputs "out")))
-                 %standard-phases)
+     `(#:make-flags
+       (list (string-append "PREFIX=" %output)
+             (string-append "INSTALL_MAN=" %output "/share/man")
+             (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
+             "BUILD_STATIC=")
+       #:phases (modify-phases %standard-phases
+                  (delete 'configure))
        #:tests? #f))
     (synopsis "Tools for manipulating Linux Wireless Extensions")
     (description "Wireless Tools are used to manipulate the now-deprecated
@@ -1733,7 +1736,9 @@ Extension was an interface allowing you to set Wireless 
LAN specific
 parameters and get the specific stats.  It is deprecated in favor the nl80211
 interface.")
     (home-page 
"http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html";)
-    (license gpl2+)))
+    ;; wireless.21.h and wireless.22.h are distributed under lgpl2.1+, the
+    ;; other files are distributed under gpl2.
+    (license (list gpl2 lgpl2.1+))))
 
 (define-public crda
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]