From: Frédéric Pierret (fepitre) Date: Sat, 28 Nov 2020 22:00:31 +0000 (+0100) Subject: [PATCH] data: workaround for hardcoded absolute path data in variables X-Git-Tag: archive/raspbian/0.73.1-3+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8b9764979e2e762807a8b9949eb9a7cd1a69c759;p=libdnf.git [PATCH] data: workaround for hardcoded absolute path data in variables We use clean env for each build to use /tmp as location. This is a temporary solution until upstream/we found a better way for that. Gbp-Pq: Name 0012-data-workaround-for-hardcoded-absolute-path-data-in-.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 852cafe..1f19cc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ add_definitions(-DGETTEXT_DOMAIN=\\"libdnf\\") add_definitions(-DG_LOG_DOMAIN=\\"libdnf\\") # tests -add_definitions(-DTESTDATADIR=\\"${CMAKE_SOURCE_DIR}/data/tests\\") +add_definitions(-DTESTDATADIR=\\"/tmp/data/tests\\") # librhsm if(ENABLE_RHSM_SUPPORT) @@ -188,3 +188,4 @@ endif() add_subdirectory(etc) +file(COPY data DESTINATION /tmp)