aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm/rpm-reloc-macros.patch
blob: 59fe524df3bfc8985e54da45d790b59423c4fa08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
macros: Use dyanmic config vs hard coded settings

When the dynamic, runtime relocation is enables we need to make sure that the 
RPM macro file does not override the dynamic settings.  Fix this by forcing the
dynamic version to be used in all cases.

Upstream-Status: Inappropriate (OpenEmbedded specific)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>

Index: rpm-5.4.14/macros/macros.in
===================================================================
--- rpm-5.4.14.orig/macros/macros.in
+++ rpm-5.4.14/macros/macros.in
@@ -27,11 +27,12 @@
 #==============================================================================
 # ---- filesystem macros.
 #
-%_usr			@usrprefix@
+%_usr			%{_usrlibrpm}/../..
 %_usrsrc		%{_usr}/src
-%_var			@varprefix@
-%_usrlibrpm		@USRLIBRPM@
-%_etcrpm		@SYSCONFIGDIR@
+%_var			%{_usr}/../var
+# The dynamic relocation code sets the following two items
+#%_usrlibrpm		@USRLIBRPM@
+#%_etcrpm		@SYSCONFIGDIR@
 
 %__objext		@objext@
 %__libext		@libext@