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.69.0-2+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b32968c5bf1e59b9503c66e7d8ecb13ce7a95b31;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 b3fc5cd..7080434 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ add_definitions(-DG_LOG_DOMAIN=\\"libdnf\\") add_definitions(-D_FILE_OFFSET_BITS=64) # tests -add_definitions(-DTESTDATADIR=\\"${CMAKE_SOURCE_DIR}/data/tests\\") +add_definitions(-DTESTDATADIR=\\"/tmp/data/tests\\") # librhsm if(ENABLE_RHSM_SUPPORT) @@ -182,3 +182,4 @@ endif() add_subdirectory(etc) +file(COPY data DESTINATION /tmp)