diff options
author | Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com> | 2016-04-03 21:36:29 +0200 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-04-14 21:41:41 -0400 |
commit | 7cad981dfc4ed4d68c1b42c489ca8b945df35e36 (patch) | |
tree | 96c56961307db505dd7696566a58462134c3133f /gnu/packages/linux.scm | |
parent | dd581e9ab360a3fcb589d07780a299fc76aaadac (diff) | |
download | guix-7cad981dfc4ed4d68c1b42c489ca8b945df35e36.tar.gz |
gnu: btrfs-progs: Add "static" output.
* gnu/packages/linux.scm (btrfs-progs)[outputs]: New field. [inputs]: Add "static" outputs of util-linux for libuuid and libblkid. [arguments]: Add 'build-static' and 'install-static' phases. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r-- | gnu/packages/linux.scm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 30ab138a5e..59258af15f 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2509,12 +2509,26 @@ and copy/paste text in the console and in xterm.") (base32 "1z5882zx9jx02vyg067siws0irsl8pg37myx17hr4imn9ypf6r4r")))) (build-system gnu-build-system) + (outputs '("out" + "static")) ; static versions of binaries in "out" (~16MiB!) (arguments - '(#:test-target "test" + '(#:phases (modify-phases %standard-phases + (add-after 'build 'build-static + (lambda _ (zero? (system* "make" "static")))) + (add-after 'install 'install-static + (let ((staticbin (string-append (assoc-ref %outputs "static") + "/bin"))) + (lambda _ + (zero? (system* "make" + (string-append "bindir=" staticbin) + "install-static")))))) + #:test-target "test" #:parallel-tests? #f)) ; tests fail when run in parallel (inputs `(("e2fsprogs" ,e2fsprogs) ("libblkid" ,util-linux) + ("libblkid:static" ,util-linux "static") ("libuuid" ,util-linux) + ("libuuid:static" ,util-linux "static") ("zlib" ,zlib) ("lzo" ,lzo))) (native-inputs `(("pkg-config" ,pkg-config) |