diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 9b0c4f1857d..abae481dab9 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -18,7 +18,7 @@ ;;; Copyright © 2020 Martin Becze ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2021 Ivan Gankevich -;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer +;;; Copyright © 2021, 2022, 2023, 2025 Maxim Cournoyer ;;; Copyright © 2021 John Kehayias ;;; Copyright © 2022, 2023 Zhu Zihao ;;; Copyright © 2023 jgart @@ -1043,7 +1043,7 @@ features of Stow with some extensions.") (build-system cmake-build-system) (arguments (list - #:tests? #f ; TEST need fhs envirnment. + #:tests? #f ;tests require FHS environment #:configure-flags #~(list ;; TODO: Add rpm-sequoia @@ -1073,7 +1073,16 @@ features of Stow with some extensions.") site))) (substitute* "plugins/CMakeLists.txt" (("\\$[{]dbus-1_DATADIR[}]") - (string-append #$output "/share")))))))) + (string-append #$output "/share"))))) + (add-after 'install 'install-macros-file + (lambda _ + (define macros (string-append #$output "/etc/rpm/macros")) + (mkdir-p (dirname macros)) + (call-with-output-file macros + (lambda (p) + (format p "\ +%_var /var +%_localstatedir /var~%")))))))) (native-inputs (list pkg-config python