diff options
| author | NoƩ Lopez <noelopez@free.fr> | 2026-02-26 01:29:23 +0100 |
|---|---|---|
| committer | Vagrant Cascadian <vagrant@debian.org> | 2026-04-10 18:24:46 -0700 |
| commit | cd006d069aa8836534db330a5546e81ba39122aa (patch) | |
| tree | b0a212e4e6a5ac851631f69110064d0aac32362f /gnu/packages/linux.scm | |
| parent | d0a9726a44c6b612c601bc752361d0c0fd5eae5e (diff) | |
gnu: fuse: Build static libraries.
* gnu/packages/linux.scm (fuse)
[outputs]: Add static output.
[arguments]<#:configure-flags>: Build static libraries.
<#:phases>: Add phase to install libraries in static output.
Change-Id: I9adfa4777174e700de2f5f0b2d43b286c7156313
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Diffstat (limited to 'gnu/packages/linux.scm')
| -rw-r--r-- | gnu/packages/linux.scm | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 2240c8a5493..3d3cb05b72c 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -5241,14 +5241,20 @@ or kill them altogether.") | |||
| 5241 | (base32 | 5241 | (base32 |
| 5242 | "0b1jp5gp2gv40gv6cvmv86rcr4l0mdh050qbvnxl0xcwya45qffx")))) | 5242 | "0b1jp5gp2gv40gv6cvmv86rcr4l0mdh050qbvnxl0xcwya45qffx")))) |
| 5243 | (build-system meson-build-system) | 5243 | (build-system meson-build-system) |
| 5244 | (outputs (list "out" "debug" "static")) | ||
| 5244 | (inputs | 5245 | (inputs |
| 5245 | (list bash-minimal util-linux)) | 5246 | (list bash-minimal util-linux)) |
| 5246 | (arguments | 5247 | (arguments |
| 5247 | `(#:configure-flags | 5248 | `(#:configure-flags |
| 5248 | ,#~(list | 5249 | ,#~(list |
| 5249 | (string-append "-Dudevrulesdir=" #$output "/udev/rules.d") | 5250 | (string-append "-Dudevrulesdir=" #$output "/udev/rules.d") |
| 5250 | "-Duseroot=false") | 5251 | "-Duseroot=false" |
| 5252 | ;; Build static libraries. | ||
| 5253 | "--default-library=both") | ||
| 5251 | #:tests? #f | 5254 | #:tests? #f |
| 5255 | #:modules ((guix build meson-build-system) | ||
| 5256 | (guix build utils) | ||
| 5257 | (ice-9 ftw)) | ||
| 5252 | #:phases | 5258 | #:phases |
| 5253 | ,#~(modify-phases %standard-phases | 5259 | ,#~(modify-phases %standard-phases |
| 5254 | (add-after 'unpack 'set-file-names | 5260 | (add-after 'unpack 'set-file-names |
| @@ -5286,7 +5292,20 @@ or kill them altogether.") | |||
| 5286 | (string-append #$output "/sbin")) | 5292 | (string-append #$output "/sbin")) |
| 5287 | (setenv "UDEV_RULES_PATH" | 5293 | (setenv "UDEV_RULES_PATH" |
| 5288 | (string-append #$output | 5294 | (string-append #$output |
| 5289 | "/lib/udev/rules.d")))))))) | 5295 | "/lib/udev/rules.d"))))) |
| 5296 | (add-after 'install 'install-static-libraries | ||
| 5297 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 5298 | (let ((out (assoc-ref outputs "out")) | ||
| 5299 | (static (assoc-ref outputs "static"))) | ||
| 5300 | (mkdir-p (string-append static "/lib")) | ||
| 5301 | (for-each | ||
| 5302 | (lambda (static-library) | ||
| 5303 | (rename-file | ||
| 5304 | (string-append out "/lib/" static-library) | ||
| 5305 | (string-append static "/lib/" static-library))) | ||
| 5306 | (scandir (string-append out "/lib") | ||
| 5307 | (lambda (file-name) | ||
| 5308 | (string-suffix? ".a" file-name)))))))))) | ||
| 5290 | (supported-systems (remove target-hurd? %supported-systems)) | 5309 | (supported-systems (remove target-hurd? %supported-systems)) |
| 5291 | (home-page "https://github.com/libfuse/libfuse") | 5310 | (home-page "https://github.com/libfuse/libfuse") |
| 5292 | (synopsis "Support file systems implemented in user space") | 5311 | (synopsis "Support file systems implemented in user space") |
