blob: 6d236ac400f77c3c105630d0aa43a2dd4cbdcda2 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From 8d013fe154a162305f76141151baf767dd04b598 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 27 Feb 2017 09:43:30 +0200
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004Subject: [PATCH] Do not hardcode "lib/rpm" as the installation path for
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005 default configuration and macros.
6
Brad Bishop316dfdd2018-06-25 12:45:53 -04007Upstream-Status: Denied [https://github.com/rpm-software-management/rpm/pull/263]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
9
10---
11 configure.ac | 2 +-
12 macros.in | 2 +-
13 rpm.am | 4 ++--
14 3 files changed, 4 insertions(+), 4 deletions(-)
15
16diff --git a/configure.ac b/configure.ac
Andrew Geisslereff27472021-10-29 15:35:00 -050017index eb7d6941b..10a889b5d 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018--- a/configure.ac
19+++ b/configure.ac
Andrew Geisslereff27472021-10-29 15:35:00 -050020@@ -871,7 +871,7 @@ else
Brad Bishop6e60e8b2018-02-01 10:27:11 -050021 usrprefix=$prefix
22 fi
23
24-RPMCONFIGDIR="`echo ${usrprefix}/lib/rpm`"
25+RPMCONFIGDIR="`echo ${libdir}/rpm`"
26 AC_SUBST(RPMCONFIGDIR)
27
28 AC_SUBST(OBJDUMP)
29diff --git a/macros.in b/macros.in
Andrew Geisslereff27472021-10-29 15:35:00 -050030index a1f795e5f..689e784ef 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031--- a/macros.in
32+++ b/macros.in
Andrew Geisslereff27472021-10-29 15:35:00 -050033@@ -933,7 +933,7 @@ package or when debugging this package.\
Brad Bishop6e60e8b2018-02-01 10:27:11 -050034 %_sharedstatedir %{_prefix}/com
35 %_localstatedir %{_prefix}/var
36 %_lib lib
37-%_libdir %{_exec_prefix}/%{_lib}
38+%_libdir @libdir@
39 %_includedir %{_prefix}/include
40 %_infodir %{_datadir}/info
41 %_mandir %{_datadir}/man
42diff --git a/rpm.am b/rpm.am
Andrew Geisslereff27472021-10-29 15:35:00 -050043index 7b57f433b..9bbb9ee96 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050044--- a/rpm.am
45+++ b/rpm.am
46@@ -1,10 +1,10 @@
47 # Internal binaries
48 ## HACK: It probably should be $(libexecdir)/rpm or $(libdir)/rpm
49-rpmlibexecdir = $(prefix)/lib/rpm
50+rpmlibexecdir = $(libdir)/rpm
51
52 # Host independent config files
53 ## HACK: it probably should be $(datadir)/rpm
54-rpmconfigdir = $(prefix)/lib/rpm
55+rpmconfigdir = $(libdir)/rpm
56
57 # Libtool version (current-revision-age) for all our libraries
Andrew Geisslereff27472021-10-29 15:35:00 -050058 rpm_version_info = 11:0:2