diff options
| -rw-r--r-- | meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-devtools/libdnf/libdnf_0.74.0.bb | 1 |
2 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch b/meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch deleted file mode 100644 index 6fc05d9ff8..0000000000 --- a/meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | From 870f50ba4761317f2db018ac130a42087230dded Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Joe Slater <joe.slater@windriver.com> | ||
| 3 | Date: Wed, 22 Jul 2020 13:31:11 -0700 | ||
| 4 | Subject: [PATCH] libdnf: allow reproducible binary builds | ||
| 5 | |||
| 6 | Use a dummy directory for test data if not built WITH_TESTS. Allow for overriding | ||
| 7 | TESTDATADIR, since the default is guaranteed to be wrong for target builds. | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Signed-off-by: Joe Slater <joe.slater@windriver.com> | ||
| 12 | --- | ||
| 13 | CMakeLists.txt | 7 ++++++- | ||
| 14 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 17 | index b1daacb..f461e54 100644 | ||
| 18 | --- a/CMakeLists.txt | ||
| 19 | +++ b/CMakeLists.txt | ||
| 20 | @@ -131,7 +131,12 @@ add_definitions(-DGETTEXT_DOMAIN="libdnf") | ||
| 21 | add_definitions(-DG_LOG_DOMAIN="libdnf") | ||
| 22 | |||
| 23 | # tests | ||
| 24 | -add_definitions(-DTESTDATADIR="${CMAKE_SOURCE_DIR}/data/tests") | ||
| 25 | +if(NOT WITH_TESTS) | ||
| 26 | + set(TEST_DATA_DIR "/notests") | ||
| 27 | +elseif(NOT DEFINED TEST_DATA_DIR) | ||
| 28 | + set(TEST_DATA_DIR "${CMAKE_SOURCE_DIR}/data/tests") | ||
| 29 | +endif() | ||
| 30 | +add_definitions(-DTESTDATADIR=\\"${TEST_DATA_DIR}\\") | ||
| 31 | |||
| 32 | # librhsm | ||
| 33 | if(ENABLE_RHSM_SUPPORT) | ||
| 34 | -- | ||
| 35 | 2.43.0 | ||
| 36 | |||
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb index fafd8c5905..720e7d6e6f 100644 --- a/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb +++ b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb | |||
| @@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
| 7 | SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;protocol=https \ | 7 | SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;protocol=https \ |
| 8 | file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \ | 8 | file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \ |
| 9 | file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \ | 9 | file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \ |
| 10 | file://enable_test_data_dir_set.patch \ | ||
| 11 | file://0001-drop-FindPythonInstDir.cmake.patch \ | 10 | file://0001-drop-FindPythonInstDir.cmake.patch \ |
| 12 | file://armarch.patch \ | 11 | file://armarch.patch \ |
| 13 | file://optional-check.patch \ | 12 | file://optional-check.patch \ |
