me
/
guix
Archived
1
0
Fork 0

gnu: drbd-utils: Enable building on more architectures.

* gnu/packages/cluster.scm (drbd-utils)[arguments]: Only generate the
man-pages on systems which support ruby-asciidoctor.
[native-inputs]: Only include docbook-xml, docbook-xml-4.4, docbook-xsl,
libxml2, libxslt, ruby-asciidoctor on systems which support
ruby-asciidoctor.

Change-Id: I7d45a1fbcb87d3847dfd49b4efdb80961f1f6a22
master
Efraim Flashner 2023-11-08 21:42:45 +02:00
parent da6486010a
commit ae9fb02bb5
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 25 additions and 18 deletions

View File

@ -4,6 +4,7 @@
;;; Copyright © 2019 Andrew Miloradovsky <andrew@interpretmath.pw> ;;; Copyright © 2019 Andrew Miloradovsky <andrew@interpretmath.pw>
;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org> ;;; Copyright © 2020, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2021 Dion Mendel <guix@dm9.info> ;;; Copyright © 2021 Dion Mendel <guix@dm9.info>
;;; Copyright © 2023 Efraim Flashner <efraim@flashner.co.il>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -74,14 +75,18 @@
(arguments (arguments
(list (list
#:configure-flags #:configure-flags
#~(list "--sysconfdir=/etc" #~(append
"--localstatedir=/var" (list "--sysconfdir=/etc"
;; Do not install sysv or systemd init scripts. "--localstatedir=/var"
"--with-initscripttype=none" ;; Do not install sysv or systemd init scripts.
;; Disable support for DRBD 8.3 as it is only for "--with-initscripttype=none"
;; Linux-Libre versions < 3.8. 8.4 is the latest ;; Disable support for DRBD 8.3 as it is only for
;; kernel driver as of Linux 5.18. ;; Linux-Libre versions < 3.8. 8.4 is the latest
"--without-83support") ;; kernel driver as of Linux 5.18.
"--without-83support")
#$(if (this-package-native-input "ruby-asciidoctor")
#~'()
#~(list "--without-manual")))
#:test-target "test" #:test-target "test"
#:make-flags #~(list "WANT_DRBD_REPRODUCIBLE_BUILD=yesplease") #:make-flags #~(list "WANT_DRBD_REPRODUCIBLE_BUILD=yesplease")
#:phases #:phases
@ -126,16 +131,18 @@
(("\\$\\(DESTDIR\\)\\$\\(DRBD_LIB_DIR\\)") (("\\$\\(DESTDIR\\)\\$\\(DRBD_LIB_DIR\\)")
"$(DESTDIR)$(prefix)$(DRBD_LIB_DIR)"))))))) "$(DESTDIR)$(prefix)$(DRBD_LIB_DIR)")))))))
(native-inputs (native-inputs
(list clitest (append (list clitest
eudev ;just to satisfy a configure check eudev ;just to satisfy a configure check
flex flex)
;; For the documentation. ;; For the documentation.
docbook-xml (if (supported-package? ruby-asciidoctor)
docbook-xml-4.4 ;used by documentation/ra2refentry.xsl (list docbook-xml
docbook-xsl docbook-xml-4.4 ;used by documentation/ra2refentry.xsl
libxml2 ;for XML_CATALOG_FILES docbook-xsl
libxslt ;for xsltproc libxml2 ;for XML_CATALOG_FILES
ruby-asciidoctor)) libxslt ;for xsltproc
ruby-asciidoctor)
'())))
(home-page "https://www.linbit.com/drbd/") (home-page "https://www.linbit.com/drbd/")
(synopsis "Replicate block devices between machines") (synopsis "Replicate block devices between machines")
(description (description