[PATCH] data: workaround for hardcoded absolute path data in variables
authorFrédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>
Sat, 28 Nov 2020 22:00:31 +0000 (23:00 +0100)
committerLuca Boccassi <bluca@debian.org>
Sat, 29 Jun 2024 19:38:56 +0000 (20:38 +0100)
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

CMakeLists.txt

index 852cafe9e3d312444dad65a8c4cd56d1ec1c2326..1f19cc0777961b54e843edec9f48658ac418b46f 100644 (file)
@@ -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)