diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-04-10 20:57:02 +0200 |
|---|---|---|
| committer | Vagrant Cascadian <vagrant@debian.org> | 2026-08-21 16:44:31 -0700 |
| commit | 3d7f691be8d7716ffcd10076c52526a0ea21be2e (patch) | |
| tree | 73fcf1c9270d6874bb18333a7fb1a724a89ec1be /gnu/packages/linux.scm | |
| parent | 58091d1b6e33d978b06ea05e3dedb3203720a64d (diff) | |
gnu: xfsprog: Improve style.
* gnu/packages/linux.scm (xfsprogs)
[source]: Run guix style.
[arguments]: Run guix style -S arguments.
<#:phases>: Rewrite them for G-expressions.
[inputs]: Drop input labels.
(xfsprogs-5.9)[arguments]: Refresh them accordingly.
(xfsprogs/static)[arguments]: Refresh them accordingly.
[inputs]: Drop input labels.
Change-Id: I8531730e244f9df570e3c8f8a385e71902cfead9
Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Diffstat (limited to 'gnu/packages/linux.scm')
| -rw-r--r-- | gnu/packages/linux.scm | 105 |
1 files changed, 49 insertions, 56 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d7bd0fde8bd..9e0b8d5e219 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -11145,44 +11145,40 @@ configuration files. It supports data files in ASCII, MBCS and Unicode.") | |||
| 11145 | (package | 11145 | (package |
| 11146 | (name "xfsprogs") | 11146 | (name "xfsprogs") |
| 11147 | (version "6.12.0") | 11147 | (version "6.12.0") |
| 11148 | (source (origin | 11148 | (source |
| 11149 | (method url-fetch) | 11149 | (origin |
| 11150 | (uri (string-append | 11150 | (method url-fetch) |
| 11151 | "mirror://kernel.org/linux/utils/fs/xfs/xfsprogs/" | 11151 | (uri (string-append "mirror://kernel.org/linux/utils/fs/xfs/xfsprogs/" |
| 11152 | "xfsprogs-" version ".tar.gz")) | 11152 | "xfsprogs-" version ".tar.gz")) |
| 11153 | (sha256 | 11153 | (sha256 |
| 11154 | (base32 | 11154 | (base32 "1n46n27fxx1137kni3drrhzhp1l8ksxabcsmi8yzxbhpbnl4q293")))) |
| 11155 | "1n46n27fxx1137kni3drrhzhp1l8ksxabcsmi8yzxbhpbnl4q293")))) | ||
| 11156 | (build-system gnu-build-system) | 11155 | (build-system gnu-build-system) |
| 11157 | (outputs (list "out" "python")) | 11156 | (outputs (list "out" "python")) |
| 11158 | (arguments | 11157 | (arguments |
| 11159 | `(#:tests? #f ; kernel/user integration tests are in package "xfstests" | 11158 | (list |
| 11160 | #:configure-flags | 11159 | #:tests? #f ;kernel/user integration tests are in package "xfstests" |
| 11161 | (list "--disable-static") | 11160 | #:configure-flags |
| 11162 | #:make-flags | 11161 | #~(list "--disable-static") |
| 11163 | (list "V=1") | 11162 | #:make-flags |
| 11164 | #:phases | 11163 | #~(list "V=1") |
| 11165 | (modify-phases %standard-phases | 11164 | #:phases |
| 11166 | (add-after 'install 'separate-python-output | 11165 | #~(modify-phases %standard-phases |
| 11167 | (lambda* (#:key outputs #:allow-other-keys) | 11166 | (add-after 'install 'separate-python-output |
| 11168 | (let ((out (assoc-ref outputs "out")) | 11167 | (lambda _ |
| 11169 | (python (assoc-ref outputs "python"))) | 11168 | (for-each |
| 11170 | (for-each | 11169 | (lambda (script) |
| 11171 | (lambda (script) | 11170 | (mkdir-p (string-append #$output:python (dirname script))) |
| 11172 | (mkdir-p (string-append python (dirname script))) | 11171 | (rename-file (string-append #$output script) |
| 11173 | (rename-file (string-append out script) | 11172 | (string-append #$output:python script))) |
| 11174 | (string-append python script))) | 11173 | (list "/sbin/xfs_scrub_all")))) |
| 11175 | (list "/sbin/xfs_scrub_all"))))) | 11174 | (add-after 'install 'install-headers |
| 11176 | (add-after 'install 'install-headers | 11175 | (lambda* (#:key make-flags #:allow-other-keys) |
| 11177 | (lambda* (#:key make-flags #:allow-other-keys) | 11176 | (apply invoke "make" "install-dev" make-flags)))))) |
| 11178 | (apply invoke "make" "install-dev" make-flags)))))) | 11177 | (native-inputs (list gettext-minimal)) |
| 11179 | (native-inputs | 11178 | (inputs (list libinih |
| 11180 | (list gettext-minimal)) | 11179 | liburcu |
| 11181 | (inputs | 11180 | (list util-linux "lib") |
| 11182 | `(("libinih" ,libinih) | 11181 | python-wrapper)) |
| 11183 | ("liburcu" ,liburcu) | ||
| 11184 | ("libuuid" ,util-linux "lib") | ||
| 11185 | ("python" ,python-wrapper))) | ||
| 11186 | (home-page "https://xfs.wiki.kernel.org/") | 11182 | (home-page "https://xfs.wiki.kernel.org/") |
| 11187 | (synopsis "XFS file system tools") | 11183 | (synopsis "XFS file system tools") |
| 11188 | (description "This package provides commands to create and check XFS | 11184 | (description "This package provides commands to create and check XFS |
| @@ -11206,9 +11202,8 @@ file systems.") | |||
| 11206 | "13xkn9jpmwp4fm9r68vhgznkmxhnv83n2b39mhy2qdaph90w2a1l")))) | 11202 | "13xkn9jpmwp4fm9r68vhgznkmxhnv83n2b39mhy2qdaph90w2a1l")))) |
| 11207 | (arguments | 11203 | (arguments |
| 11208 | (substitute-keyword-arguments arguments | 11204 | (substitute-keyword-arguments arguments |
| 11209 | ((#:configure-flags configure-flags '()) | 11205 | ((#:configure-flags configure-flags #~(list)) |
| 11210 | `(cons "--enable-gettext=no" | 11206 | #~(cons* "--enable-gettext=no" #$configure-flags)))) |
| 11211 | ,configure-flags)))) | ||
| 11212 | (native-inputs | 11207 | (native-inputs |
| 11213 | (modify-inputs native-inputs | 11208 | (modify-inputs native-inputs |
| 11214 | (delete "gettext-minimal"))))) | 11209 | (delete "gettext-minimal"))))) |
| @@ -11220,25 +11215,23 @@ file systems.") | |||
| 11220 | (outputs (list "out")) | 11215 | (outputs (list "out")) |
| 11221 | (arguments | 11216 | (arguments |
| 11222 | (substitute-keyword-arguments arguments | 11217 | (substitute-keyword-arguments arguments |
| 11223 | ((#:configure-flags configure-flags '()) | 11218 | ((#:configure-flags configure-flags #~(list)) |
| 11224 | `(append ,configure-flags | 11219 | #~(append #$configure-flags |
| 11225 | (list "--enable-static"))) | 11220 | (list "--enable-static"))) |
| 11226 | ((#:make-flags make-flags ''()) | 11221 | ((#:make-flags make-flags #~(list)) |
| 11227 | `(cons* "LLDFLAGS=-all-static" ,make-flags)) | 11222 | #~(cons* "LLDFLAGS=-all-static" #$make-flags)) |
| 11228 | ((#:phases _ ''()) | 11223 | ((#:phases _ #~%standard-phases) |
| 11229 | `(modify-phases %standard-phases | 11224 | #~(modify-phases %standard-phases |
| 11230 | (add-after 'install 'delete-useless-files | 11225 | (add-after 'install 'delete-useless-files |
| 11231 | (lambda* (#:key outputs #:allow-other-keys) | 11226 | (lambda _ |
| 11232 | (with-directory-excursion (assoc-ref outputs "out") | 11227 | (with-directory-excursion #$output |
| 11233 | (for-each delete-file-recursively | 11228 | (for-each delete-file-recursively |
| 11234 | (list "include" "lib"))))))))) | 11229 | (list "include" "lib"))))))))) |
| 11235 | (inputs | 11230 | (inputs |
| 11236 | `(("libinih:static" ,libinih "static") | 11231 | (modify-inputs inputs |
| 11237 | ("util-linux:static" ,util-linux "static") | 11232 | (delete "python-wrapper") |
| 11238 | ,@(remove (match-lambda | 11233 | (prepend (list libinih "static") |
| 11239 | ((label . _) | 11234 | (list util-linux "static")))) |
| 11240 | (member label '("python")))) | ||
| 11241 | (package-inputs xfsprogs)))) | ||
| 11242 | (synopsis "Statically linked XFS file system tools"))) | 11235 | (synopsis "Statically linked XFS file system tools"))) |
| 11243 | 11236 | ||
| 11244 | (define-public xfs_repair/static | 11237 | (define-public xfs_repair/static |
