GNU bug report logs -
#31531
Update monero to 0.12.0.0.
Previous Next
Full log
View this message in rfc822 format
Hi Theodoros,
> * gnu/packages/patches/monero-fix-version.patch: New file.
> * gnu/local.mk: Add it.
I think that this patch is better implemented using “substitute*” in a
build phase.
> * gnu/packages/finance.scm: Update to 0.12.0.0.
> [source]: Add patch.
> [inputs]: Add zeromq, cppzmq, libsodium.
> [arguments]: Change build-type to "release".
> Add argument on unit-tests phase.
> Substitute system* with invoke.
The last step (using “invoke”) is better done in a separate patch.
> -;;; Copyright © 2017 Theodoros Foradis <theodoros <at> foradis.org>
> +;;; Copyright © 2017,2018 Theodoros Foradis <theodoros <at> foradis.org>
Please add a space after the comma.
> - (zero?
> - (system* "tests/unit_tests/unit_tests"
> - (string-append "--gtest_filter=-"
> - excluded-unit-tests))))))
> + (invoke "tests/unit_tests/unit_tests"
> + (string-append "--gtest_filter=-"
> + excluded-unit-tests)
> + ;; Fix for data dir should be upstream by next update.
> + ;; TODO: Delete next command line argument.
> + (string-append "--data-dir=tests/data")))))
Wha does the TODO comment mean?
> + function (write_static_version_header hash)
> + set(VERSIONTAG "${hash}")
> +- configure_file("src/version.cpp.in" "version.cpp")
> ++ configure_file("${CMAKE_SOURCE_DIR}/src/version.cpp.in" "${CMAKE_BINARY_DIR}/version.cpp")
> + endfunction ()
I’d prefer this to be a short substitute* snippet instead of a patch file.
--
Ricardo
This bug report was last modified 7 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.