summaryrefslogtreecommitdiff
path: root/gnu/packages/linux.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r--gnu/packages/linux.scm84
1 files changed, 73 insertions, 11 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 262c5bdb341..1b220c4e32a 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1,6 +1,6 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr> 3;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
4;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> 4;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> 5;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
6;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> 6;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch>
@@ -55,6 +55,8 @@
55 #:use-module (gnu packages gtk) 55 #:use-module (gnu packages gtk)
56 #:use-module (gnu packages docbook) 56 #:use-module (gnu packages docbook)
57 #:use-module (gnu packages asciidoc) 57 #:use-module (gnu packages asciidoc)
58 #:use-module (gnu packages readline)
59 #:use-module (gnu packages calendar)
58 #:use-module (guix packages) 60 #:use-module (guix packages)
59 #:use-module (guix download) 61 #:use-module (guix download)
60 #:use-module (guix utils) 62 #:use-module (guix utils)
@@ -208,7 +210,7 @@ for SYSTEM, or #f if there is no configuration for SYSTEM."
208 #f))) 210 #f)))
209 211
210(define-public linux-libre 212(define-public linux-libre
211 (let* ((version "4.0") 213 (let* ((version "4.0.5")
212 (build-phase 214 (build-phase
213 '(lambda* (#:key system inputs #:allow-other-keys #:rest args) 215 '(lambda* (#:key system inputs #:allow-other-keys #:rest args)
214 ;; Apply the neat patch. 216 ;; Apply the neat patch.
@@ -281,9 +283,7 @@ for SYSTEM, or #f if there is no configuration for SYSTEM."
281 (uri (linux-libre-urls version)) 283 (uri (linux-libre-urls version))
282 (sha256 284 (sha256
283 (base32 285 (base32
284 "12nkzn1n4si2zcp10b645qri83m2y7iwp29vs2rjmy612azdab8f")) 286 "0g8a4h8gjw51pp02hjfrp6bk2nkrclm3krp9mpjh3iwbf4vfh2al"))))
285 (patches
286 (list (search-patch "linux-libre-libreboot-fix.patch")))))
287 (build-system gnu-build-system) 287 (build-system gnu-build-system)
288 (native-inputs `(("perl" ,perl) 288 (native-inputs `(("perl" ,perl)
289 ("bc" ,bc) 289 ("bc" ,bc)
@@ -318,7 +318,7 @@ It has been modified to remove all non-free binary blobs.")
318 (license gpl2) 318 (license gpl2)
319 (home-page "http://www.gnu.org/software/linux-libre/")))) 319 (home-page "http://www.gnu.org/software/linux-libre/"))))
320 320
321 321
322;;; 322;;;
323;;; Pluggable authentication modules (PAM). 323;;; Pluggable authentication modules (PAM).
324;;; 324;;;
@@ -364,7 +364,7 @@ be used through the PAM API to perform tasks, like authenticating a user
364at login. Local and dynamic reconfiguration are its key features") 364at login. Local and dynamic reconfiguration are its key features")
365 (license bsd-3))) 365 (license bsd-3)))
366 366
367 367
368;;; 368;;;
369;;; Miscellaneous. 369;;; Miscellaneous.
370;;; 370;;;
@@ -587,8 +587,21 @@ slabtop, and skill.")
587 (string-append "#!" (which "sh"))))) 587 (string-append "#!" (which "sh")))))
588 (alist-cons-after 588 (alist-cons-after
589 'install 'install-libs 589 'install 'install-libs
590 (lambda _ 590 (lambda* (#:key outputs #:allow-other-keys)
591 (zero? (system* "make" "install-libs"))) 591 (let* ((out (assoc-ref outputs "out"))
592 (lib (string-append out "/lib")))
593 (and (zero? (system* "make" "install-libs"))
594
595 ;; Make the .a writable so that 'strip' works.
596 ;; Failing to do that, due to debug symbols, we
597 ;; retain a reference to the final
598 ;; linux-libre-headers, which refer to the
599 ;; bootstrap binaries.
600 (let ((archives (find-files lib "\\.a$")))
601 (for-each (lambda (file)
602 (chmod file #o666))
603 archives)
604 #t))))
592 %standard-phases)) 605 %standard-phases))
593 606
594 ;; FIXME: Tests work by comparing the stdout/stderr of programs, that 607 ;; FIXME: Tests work by comparing the stdout/stderr of programs, that
@@ -1041,6 +1054,17 @@ Linux-based operating systems.")
1041 '(#:phases (alist-cons-after 1054 '(#:phases (alist-cons-after
1042 'unpack 'bootstrap 1055 'unpack 'bootstrap
1043 (lambda _ 1056 (lambda _
1057 ;; Fix "field ‘ip6’ has incomplete type" errors.
1058 (substitute* "libbridge/libbridge.h"
1059 (("#include <linux/if_bridge.h>")
1060 "#include <linux/in6.h>\n#include <linux/if_bridge.h>"))
1061
1062 ;; Ensure that the entire build fails if one of the
1063 ;; sub-Makefiles fails.
1064 (substitute* "Makefile.in"
1065 (("\\$\\(MAKE\\) \\$\\(MFLAGS\\) -C \\$\\$x ;")
1066 "$(MAKE) $(MFLAGS) -C $$x || exit 1;"))
1067
1044 (zero? (system* "autoreconf" "-vf"))) 1068 (zero? (system* "autoreconf" "-vf")))
1045 %standard-phases) 1069 %standard-phases)
1046 #:tests? #f)) ; no 'check' target 1070 #:tests? #f)) ; no 'check' target
@@ -1198,7 +1222,8 @@ processes currently causing I/O.")
1198 version ".tar.gz")) 1222 version ".tar.gz"))
1199 (sha256 1223 (sha256
1200 (base32 1224 (base32
1201 "071r6xjgssy8vwdn6m28qq1bqxsd2bphcd2mzhq0grf5ybm87sqb")))) 1225 "071r6xjgssy8vwdn6m28qq1bqxsd2bphcd2mzhq0grf5ybm87sqb"))
1226 (patches (list (search-patch "fuse-CVE-2015-3202.patch")))))
1202 (build-system gnu-build-system) 1227 (build-system gnu-build-system)
1203 (inputs `(("util-linux" ,util-linux))) 1228 (inputs `(("util-linux" ,util-linux)))
1204 (arguments 1229 (arguments
@@ -1567,7 +1592,7 @@ from the module-init-tools project.")
1567 ;; Work around undefined reference to 1592 ;; Work around undefined reference to
1568 ;; 'mq_getattr' in sc-daemon.c. 1593 ;; 'mq_getattr' in sc-daemon.c.
1569 "LDFLAGS=-lrt") 1594 "LDFLAGS=-lrt")
1570 #:phases 1595 #:phases
1571 (alist-cons-before 1596 (alist-cons-before
1572 'build 'pre-build 1597 'build 'pre-build
1573 ;; The program 'g-ir-scanner' (part of the package 1598 ;; The program 'g-ir-scanner' (part of the package
@@ -2171,3 +2196,40 @@ arrays when needed.")
2171system calls, important for the performance of databases and other advanced 2196system calls, important for the performance of databases and other advanced
2172applications.") 2197applications.")
2173 (license lgpl2.1+))) 2198 (license lgpl2.1+)))
2199
2200(define-public bluez
2201 (package
2202 (name "bluez")
2203 (version "5.30")
2204 (source (origin
2205 (method url-fetch)
2206 (uri (string-append
2207 "https://www.kernel.org/pub/linux/bluetooth/bluez-"
2208 version ".tar.xz"))
2209 (sha256
2210 (base32
2211 "0b1qbnq1xzcdw5rajg9yyg31bf21jnff0n6gnf1snz89bbdllfhy"))))
2212 (build-system gnu-build-system)
2213 (arguments
2214 '(#:configure-flags
2215 (let ((out (assoc-ref %outputs "out")))
2216 (list "--enable-library"
2217 "--disable-systemd"
2218 ;; Install dbus/udev files to the correct location.
2219 (string-append "--with-dbusconfdir=" out "/etc")
2220 (string-append "--with-udevdir=" out "/lib/udev")))))
2221 (native-inputs
2222 `(("pkg-config" ,pkg-config)
2223 ("gettext" ,gnu-gettext)))
2224 (inputs
2225 `(("glib" ,glib)
2226 ("dbus" ,dbus)
2227 ("eudev" ,eudev)
2228 ("libical" ,libical)
2229 ("readline" ,readline)))
2230 (home-page "http://www.bluez.org/")
2231 (synopsis "Linux Bluetooth protocol stack")
2232 (description
2233 "BlueZ provides support for the core Bluetooth layers and protocols. It
2234is flexible, efficient and uses a modular implementation.")
2235 (license gpl2+)))