|
Panu Matilainen |
033b63 |
From 24f974cff9e9559f3ab308661572740ea432f2a3 Mon Sep 17 00:00:00 2001
|
|
Panu Matilainen |
033b63 |
Message-ID: <24f974cff9e9559f3ab308661572740ea432f2a3.1692703067.git.pmatilai@redhat.com>
|
|
Panu Matilainen |
033b63 |
From: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
033b63 |
Date: Tue, 22 Aug 2023 13:42:27 +0300
|
|
Panu Matilainen |
033b63 |
Subject: [PATCH] Revert recent %_root_prefix macro addition (RhBug:2233454)
|
|
Panu Matilainen |
033b63 |
|
|
Panu Matilainen |
033b63 |
Commit cececfb6851234aca3e8d102de1c192c6bdf3e67 introduced %_root_prefix
|
|
Panu Matilainen |
033b63 |
macro but this clashes with pre-existing use in scl-utils:
|
|
Panu Matilainen |
033b63 |
https://bugzilla.redhat.com/show_bug.cgi?id=223345:
|
|
Panu Matilainen |
033b63 |
|
|
Panu Matilainen |
033b63 |
Just query the value from pkg-config if available and otherwise use
|
|
Panu Matilainen |
033b63 |
hardcoded value pointing to /usr instead. We don't need an intermediate
|
|
Panu Matilainen |
033b63 |
global macro for this.
|
|
Panu Matilainen |
033b63 |
---
|
|
Panu Matilainen |
033b63 |
CMakeLists.txt | 6 +++++-
|
|
Panu Matilainen |
033b63 |
macros.in | 3 +--
|
|
Panu Matilainen |
033b63 |
2 files changed, 6 insertions(+), 3 deletions(-)
|
|
Panu Matilainen |
033b63 |
|
|
Panu Matilainen |
033b63 |
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
Panu Matilainen |
033b63 |
index e40e889f6..9ff85fa99 100644
|
|
Panu Matilainen |
033b63 |
--- a/CMakeLists.txt
|
|
Panu Matilainen |
033b63 |
+++ b/CMakeLists.txt
|
|
Panu Matilainen |
033b63 |
@@ -86,7 +86,11 @@ function(makemacros)
|
|
Panu Matilainen |
033b63 |
set(infodir "\${prefix}/${CMAKE_INSTALL_INFODIR}")
|
|
Panu Matilainen |
033b63 |
set(mandir "\${prefix}/${CMAKE_INSTALL_MANDIR}")
|
|
Panu Matilainen |
033b63 |
set(rundir /run)
|
|
Panu Matilainen |
033b63 |
- set(root_prefix /usr)
|
|
Panu Matilainen |
033b63 |
+
|
|
Panu Matilainen |
033b63 |
+ pkg_get_variable(sysusersdir systemd sysusersdir)
|
|
Panu Matilainen |
033b63 |
+ if (NOT sysusersdir)
|
|
Panu Matilainen |
033b63 |
+ set(sysusersdir /usr/lib/sysusers.d)
|
|
Panu Matilainen |
033b63 |
+ endif()
|
|
Panu Matilainen |
033b63 |
|
|
Panu Matilainen |
033b63 |
findutil(__7ZIP "7za;7z")
|
|
Panu Matilainen |
033b63 |
findutil(__BZIP2 bzip2)
|
|
Panu Matilainen |
033b63 |
diff --git a/macros.in b/macros.in
|
|
Panu Matilainen |
033b63 |
index 070aa8348..175e475e7 100644
|
|
Panu Matilainen |
033b63 |
--- a/macros.in
|
|
Panu Matilainen |
033b63 |
+++ b/macros.in
|
|
Panu Matilainen |
033b63 |
@@ -957,7 +957,6 @@ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\
|
|
Panu Matilainen |
033b63 |
# Macro(s) slavishly copied from autoconf's config.status.
|
|
Panu Matilainen |
033b63 |
#
|
|
Panu Matilainen |
033b63 |
%_prefix @prefix@
|
|
Panu Matilainen |
033b63 |
-%_root_prefix @root_prefix@
|
|
Panu Matilainen |
033b63 |
%_exec_prefix %{_prefix}
|
|
Panu Matilainen |
033b63 |
%_bindir %{_exec_prefix}/bin
|
|
Panu Matilainen |
033b63 |
%_sbindir %{_exec_prefix}/sbin
|
|
Panu Matilainen |
033b63 |
@@ -971,7 +970,7 @@ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\
|
|
Panu Matilainen |
033b63 |
%_includedir %{_prefix}/include
|
|
Panu Matilainen |
033b63 |
%_infodir %{_datadir}/info
|
|
Panu Matilainen |
033b63 |
%_mandir %{_datadir}/man
|
|
Panu Matilainen |
033b63 |
-%_sysusersdir %{_root_prefix}/lib/sysusers.d
|
|
Panu Matilainen |
033b63 |
+%_sysusersdir @sysusersdir@
|
|
Panu Matilainen |
033b63 |
|
|
Panu Matilainen |
033b63 |
#==============================================================================
|
|
Panu Matilainen |
033b63 |
# ---- config.guess platform macros.
|
|
Panu Matilainen |
033b63 |
--
|
|
Panu Matilainen |
033b63 |
2.41.0
|
|
Panu Matilainen |
033b63 |
|