- added dir-macros-relative patch (hardcode base dir macros, derived as relative...
[packages/rpm.git] / rpm-dir-macros-relative.patch
1 Force base dir macros to arbitrary values, derived as relative to base ones.
2 Now redefining _prefix affects _{bin,sbin,lib,libexec,include,data,dataroot,info,man,doc}dir values.
3
4 --- rpm-4.16.1.3/platform.in.orig       2021-03-28 18:12:24.786830780 +0200
5 +++ rpm-4.16.1.3/platform.in    2021-03-28 18:23:20.670665669 +0200
6 @@ -25,23 +25,23 @@
7  #==============================================================================
8  # ---- configure macros.
9  #
10 -%_prefix               @prefix@
11 -%_exec_prefix          @exec_prefix@
12 -%_bindir               @bindir@
13 -%_sbindir              @sbindir@
14 -%_libexecdir           @libexecdir@
15 -%_datarootdir          @datarootdir@
16 -%_datadir              @datadir@
17 -%_sysconfdir           @sysconfdir@
18 -%_sharedstatedir       @sharedstatedir@
19 -%_localstatedir                @localstatedir@
20 +%_prefix               /usr
21 +%_exec_prefix          %{_prefix}
22 +%_bindir               %{_prefix}/bin
23 +%_sbindir              %{_prefix}/sbin
24 +%_libexecdir           %{_prefix}/libexec
25 +%_datarootdir          %{_prefix}/share
26 +%_datadir              %{_datarootdir}
27 +%_sysconfdir           /etc
28 +%_sharedstatedir       /var/lib
29 +%_localstatedir                /var
30  %_lib                  @LIB@
31 -%_libdir               @exec_prefix@/@LIB@
32 -%_includedir           @includedir@
33 -%_oldincludedir                @oldincludedir@
34 -%_infodir              @infodir@
35 -%_mandir               @mandir@
36 -%_initddir             %{_sysconfdir}/rc.d/init.d
37 +%_libdir               %{_exec_prefix}/@LIB@
38 +%_includedir           %{_prefix}/include
39 +%_oldincludedir                %{_prefix}/include
40 +%_infodir              %{_datarootdir}/info
41 +%_mandir               %{_datarootdir}/man
42 +%_initddir             /etc/rc.d/init.d
43  # Deprecated misspelling, present for backwards compatibility.
44  %_initrddir            %{_initddir}
45  %_rundir               @RUNDIR@
This page took 0.051591 seconds and 3 git commands to generate.