- added dir-macros-relative patch (hardcode base dir macros, derived as relative...
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Mar 2021 19:50:44 +0000 (21:50 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Mar 2021 19:50:44 +0000 (21:50 +0200)
rpm-dir-macros-relative.patch [new file with mode: 0644]
rpm.spec

diff --git a/rpm-dir-macros-relative.patch b/rpm-dir-macros-relative.patch
new file mode 100644 (file)
index 0000000..7478bb2
--- /dev/null
@@ -0,0 +1,45 @@
+Force base dir macros to arbitrary values, derived as relative to base ones.
+Now redefining _prefix affects _{bin,sbin,lib,libexec,include,data,dataroot,info,man,doc}dir values.
+
+--- rpm-4.16.1.3/platform.in.orig      2021-03-28 18:12:24.786830780 +0200
++++ rpm-4.16.1.3/platform.in   2021-03-28 18:23:20.670665669 +0200
+@@ -25,23 +25,23 @@
+ #==============================================================================
+ # ---- configure macros.
+ #
+-%_prefix              @prefix@
+-%_exec_prefix         @exec_prefix@
+-%_bindir              @bindir@
+-%_sbindir             @sbindir@
+-%_libexecdir          @libexecdir@
+-%_datarootdir         @datarootdir@
+-%_datadir             @datadir@
+-%_sysconfdir          @sysconfdir@
+-%_sharedstatedir      @sharedstatedir@
+-%_localstatedir               @localstatedir@
++%_prefix              /usr
++%_exec_prefix         %{_prefix}
++%_bindir              %{_prefix}/bin
++%_sbindir             %{_prefix}/sbin
++%_libexecdir          %{_prefix}/libexec
++%_datarootdir         %{_prefix}/share
++%_datadir             %{_datarootdir}
++%_sysconfdir          /etc
++%_sharedstatedir      /var/lib
++%_localstatedir               /var
+ %_lib                 @LIB@
+-%_libdir              @exec_prefix@/@LIB@
+-%_includedir          @includedir@
+-%_oldincludedir               @oldincludedir@
+-%_infodir             @infodir@
+-%_mandir              @mandir@
+-%_initddir            %{_sysconfdir}/rc.d/init.d
++%_libdir              %{_exec_prefix}/@LIB@
++%_includedir          %{_prefix}/include
++%_oldincludedir               %{_prefix}/include
++%_infodir             %{_datarootdir}/info
++%_mandir              %{_datarootdir}/man
++%_initddir            /etc/rc.d/init.d
+ # Deprecated misspelling, present for backwards compatibility.
+ %_initrddir           %{_initddir}
+ %_rundir              @RUNDIR@
index 0203463f777b41ce4008c6c96e22e7fa23e9af54..f4a423631f1244cfd52895a9c41eac260e6606e0 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -61,6 +61,7 @@ Patch1:               %{name}-popt-aliases.patch
 Patch2:                %{name}-perl-macros.patch
 Patch3:                %{name}-perl-req-perlfile.patch
 Patch4:                %{name}-scripts-closefds.patch
+Patch5:                %{name}-dir-macros-relative.patch
 Patch6:                %{name}-perl_req-INC_dirs.patch
 Patch7:                %{name}-debuginfo.patch
 Patch8:                %{name}-libtool-deps.patch
@@ -598,6 +599,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 %patch6 -p0
 %patch7 -p1
 %patch8 -p1
This page took 0.050408 seconds and 4 git commands to generate.