pb is with arguments.

This commit is contained in:
Yann Dupont 2021-10-24 21:59:38 +02:00
parent ccec708e02
commit 0bbbb6fc51

View file

@ -368,119 +368,119 @@ storage protocols (S3, NFS, and others) through the RADOS gateway.")
"src/boost")) "src/boost"))
#t)))) #t))))
; (build-system cmake-build-system) ; (build-system cmake-build-system)
; (arguments (arguments
; `(#:configure-flags `(#:configure-flags
; (let* ((out (assoc-ref %outputs "out")) (let* ((out (assoc-ref %outputs "out"))
; (lib (assoc-ref %outputs "lib")) (lib (assoc-ref %outputs "lib"))
; (libdir (string-append lib "/lib"))) (libdir (string-append lib "/lib")))
; (list (string-append "-DCMAKE_INSTALL_PREFIX=" out) (list (string-append "-DCMAKE_INSTALL_PREFIX=" out)
; (string-append "-DCMAKE_INSTALL_LIBDIR=" libdir) (string-append "-DCMAKE_INSTALL_LIBDIR=" libdir)
; (string-append "-DCMAKE_INSTALL_INCLUDEDIR=" (string-append "-DCMAKE_INSTALL_INCLUDEDIR="
; lib "/include") lib "/include")
; ;; We need both libdir and libdir/ceph in RUNPATH. ;; We need both libdir and libdir/ceph in RUNPATH.
; (string-append "-DCMAKE_INSTALL_RPATH=" (string-append "-DCMAKE_INSTALL_RPATH="
; libdir ";" libdir "/ceph") libdir ";" libdir "/ceph")
; (string-append "-DCMAKE_INSTALL_SYSCONFDIR=" out "/etc") (string-append "-DCMAKE_INSTALL_SYSCONFDIR=" out "/etc")
; (string-append "-DCMAKE_INSTALL_DATADIR=" lib "/share") (string-append "-DCMAKE_INSTALL_DATADIR=" lib "/share")
; (string-append "-DCMAKE_INSTALL_MANDIR=" out "/share/man") (string-append "-DCMAKE_INSTALL_MANDIR=" out "/share/man")
; (string-append "-DCMAKE_INSTALL_DOCDIR=" out "/share/ceph/doc") (string-append "-DCMAKE_INSTALL_DOCDIR=" out "/share/ceph/doc")
; (string-append "-DCMAKE_INSTALL_LIBEXECDIR=" out "/libexec") (string-append "-DCMAKE_INSTALL_LIBEXECDIR=" out "/libexec")
; (string-append "-DKEYUTILS_INCLUDE_DIR=" (string-append "-DKEYUTILS_INCLUDE_DIR="
; (assoc-ref %build-inputs "keyutils") "/include") (assoc-ref %build-inputs "keyutils") "/include")
; (string-append "-DXFS_INCLUDE_DIR=" (string-append "-DXFS_INCLUDE_DIR="
; (assoc-ref %build-inputs "xfsprogs") "/include") (assoc-ref %build-inputs "xfsprogs") "/include")
; "-DCMAKE_INSTALL_LOCALSTATEDIR=/var" "-DCMAKE_INSTALL_LOCALSTATEDIR=/var"
; "-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=ON"
; "-DWITH_SYSTEM_ROCKSDB=ON" "-DWITH_SYSTEM_ROCKSDB=ON"
; "-DWITH_SYSTEM_BOOST=ON" "-DWITH_SYSTEM_BOOST=ON"
; "-DWITH_PYTHON3=ON" "-DWITH_PYTHON3=ON"
; ;; TODO: Enable these when available in Guix. ;; TODO: Enable these when available in Guix.
; "-DWITH_MGR_DASHBOARD_FRONTEND=OFF" ;requires node + nodeenv "-DWITH_MGR_DASHBOARD_FRONTEND=OFF" ;requires node + nodeenv
; "-DWITH_BABELTRACE=OFF" "-DWITH_BABELTRACE=OFF"
; "-DWITH_LTTNG=OFF" "-DWITH_LTTNG=OFF"
; "-DWITH_SPDK=OFF" "-DWITH_SPDK=OFF"
; "-DWITH_RADOSGW_AMQP_ENDPOINT=OFF" "-DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
;
; ;; Use jemalloc instead of tcmalloc. ;; Use jemalloc instead of tcmalloc.
; "-DALLOCATOR=jemalloc" "-DALLOCATOR=jemalloc"
;
; ;; Do not bother building the tests; we are not currently running ;; Do not bother building the tests; we are not currently running
; ;; them, and they do not build with system googletest as of 14.2.5. ;; them, and they do not build with system googletest as of 14.2.5.
; "-DWITH_TESTS=OFF")) "-DWITH_TESTS=OFF"))
; ;; FIXME: Some of the tests leak Btrfs subvolumes on Btrfs. See ;; FIXME: Some of the tests leak Btrfs subvolumes on Btrfs. See
; ;; <https://bugs.gnu.org/29674> for details. Disable tests until ;; <https://bugs.gnu.org/29674> for details. Disable tests until
; ;; resolved. ;; resolved.
; #:tests? #f #:tests? #f
; #:phases #:phases
; (modify-phases %standard-phases (modify-phases %standard-phases
; (add-after 'unpack 'patch-source (add-after 'unpack 'patch-source
; (lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
; (let ((out (assoc-ref outputs "out")) (let ((out (assoc-ref outputs "out"))
; (lib (assoc-ref outputs "lib"))) (lib (assoc-ref outputs "lib")))
;
; (substitute* "cmake/modules/Distutils.cmake" (substitute* "cmake/modules/Distutils.cmake"
; ;; Prevent creation of Python eggs. ;; Prevent creation of Python eggs.
; (("setup.py install") (("setup.py install")
; "setup.py install --single-version-externally-managed --root=/")) "setup.py install --single-version-externally-managed --root=/"))
;
; (substitute* (find-files "src/pybind" "^setup\\.py$") (substitute* (find-files "src/pybind" "^setup\\.py$")
; ;; Here we inject an extra line to the `setup.py' of the ;; Here we inject an extra line to the `setup.py' of the
; ;; Python C libraries so RUNPATH gets set up correctly. ;; Python C libraries so RUNPATH gets set up correctly.
;; (("^([[:blank:]]+)extra_compile_args=(.*)$" _ indent args) ; (("^([[:blank:]]+)extra_compile_args=(.*)$" _ indent args)
;; (string-append indent "extra_compile_args=" args ; (string-append indent "extra_compile_args=" args
;; indent "extra_link_args=['-Wl,-rpath=" ; indent "extra_link_args=['-Wl,-rpath="
;; lib "/lib'],\n"))) ; lib "/lib'],\n")))
;
;
; (("^([[:blank:]]+)extra_link_args=(.*)$" _ indent args) (("^([[:blank:]]+)extra_link_args=(.*)$" _ indent args)
; (string-append indent "extra_link_args=(['-Wl,-rpath=" lib "/lib'] + distutils.sysconfig.get_config_var('LDFLAGS').split() + \n"))) (string-append indent "extra_link_args=(['-Wl,-rpath=" lib "/lib'] + distutils.sysconfig.get_config_var('LDFLAGS').split() + \n")))
;
;
; ;; Statically link libcrc32 because it does not get installed, ;; Statically link libcrc32 because it does not get installed,
; ;; yet several libraries end up referring to it. ;; yet several libraries end up referring to it.
; (substitute* "src/common/CMakeLists.txt" (substitute* "src/common/CMakeLists.txt"
; (("add_library\\(crc32") (("add_library\\(crc32")
; "add_library(crc32 STATIC")) "add_library(crc32 STATIC"))
;
; (substitute* "udev/50-rbd.rules" (substitute* "udev/50-rbd.rules"
; (("/usr/bin/ceph-rbdnamer") (("/usr/bin/ceph-rbdnamer")
; (string-append out "/bin/ceph-rbdnamer"))) (string-append out "/bin/ceph-rbdnamer")))
; #t))) #t)))
; (add-before 'install 'set-install-environment (add-before 'install 'set-install-environment
; (lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
; (let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
; (py3sitedir (py3sitedir
; (string-append out "/lib/python" (string-append out "/lib/python"
; ,(version-major+minor ,(version-major+minor
; (package-version python)) (package-version python))
;; "/site-packages"))) "/site-packages")))
; ;; The Python install scripts refuses to function if ;; The Python install scripts refuses to function if
; ;; the install directory is not on PYTHONPATH. ;; the install directory is not on PYTHONPATH.
; (setenv "PYTHONPATH" (setenv "PYTHONPATH"
; (string-append py3sitedir ":" (string-append py3sitedir ":"
; (getenv "PYTHONPATH"))) (getenv "PYTHONPATH")))
; #t))) #t)))
; (add-after 'install 'wrap-python-scripts (add-after 'install 'wrap-python-scripts
; (lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
; (let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
; (scripts '("ceph" "ceph-mgr" "ceph-volume")) (scripts '("ceph" "ceph-mgr" "ceph-volume"))
; (prettytable (assoc-ref inputs "python-prettytable")) (prettytable (assoc-ref inputs "python-prettytable"))
; (six (assoc-ref inputs "python-six")) (six (assoc-ref inputs "python-six"))
; (sitedir (lambda (package) (sitedir (lambda (package)
; (string-append package (string-append package
; "/lib/python" "/lib/python"
; ,(version-major+minor ,(version-major+minor
; (package-version python)) (package-version python))
; "/site-packages"))) "/site-packages")))
; (PYTHONPATH (string-append (PYTHONPATH (string-append
; (sitedir out) ":" (sitedir out) ":"
; (sitedir six) ":" (sitedir six) ":"
; (sitedir prettytable)))) (sitedir prettytable))))
; (for-each (lambda (executable) (for-each (lambda (executable)
; (wrap-program (string-append out "/bin/" executable) (wrap-program (string-append out "/bin/" executable)
; `("PYTHONPATH" ":" prefix (,PYTHONPATH)))) `("PYTHONPATH" ":" prefix (,PYTHONPATH))))
; scripts) scripts)
; #t)))))) #t))))))
; (outputs ; (outputs
; '("out" "lib")) ; '("out" "lib"))