diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch b/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch index 89c23f8197..c5caa7dc5e 100644 --- a/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch +++ b/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e53c0e2586bc6f4677db3c6898a6428283a6b785 Mon Sep 17 00:00:00 2001 | 1 | From d7143dc4e75c8bcc5cc4c852a4b972942b7e4d07 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 20 Jan 2017 13:33:05 +0200 | 3 | Date: Fri, 20 Jan 2017 13:33:05 +0200 |
4 | Subject: [PATCH] Add support for prefixing /etc from RPM_ETCCONFIGDIR | 4 | Subject: [PATCH] Add support for prefixing /etc from RPM_ETCCONFIGDIR |
@@ -9,16 +9,15 @@ from target rootfs instead of its own native sysroot. | |||
9 | 9 | ||
10 | Upstream-Status: Inappropriate [oe-core specific] | 10 | Upstream-Status: Inappropriate [oe-core specific] |
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
12 | |||
13 | --- | 12 | --- |
14 | lib/rpmrc.c | 19 ++++++++++++++----- | 13 | lib/rpmrc.c | 19 ++++++++++++++----- |
15 | 1 file changed, 14 insertions(+), 5 deletions(-) | 14 | 1 file changed, 14 insertions(+), 5 deletions(-) |
16 | 15 | ||
17 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c | 16 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c |
18 | index f39dcfc11..f27f88753 100644 | 17 | index 483585ae4..ea858c290 100644 |
19 | --- a/lib/rpmrc.c | 18 | --- a/lib/rpmrc.c |
20 | +++ b/lib/rpmrc.c | 19 | +++ b/lib/rpmrc.c |
21 | @@ -455,10 +455,14 @@ const char * lookupInDefaultTable(const char * name, | 20 | @@ -456,10 +456,14 @@ const char * lookupInDefaultTable(const char * name, |
22 | static void setDefaults(void) | 21 | static void setDefaults(void) |
23 | { | 22 | { |
24 | const char *confdir = rpmConfigDir(); | 23 | const char *confdir = rpmConfigDir(); |
@@ -34,7 +33,7 @@ index f39dcfc11..f27f88753 100644 | |||
34 | } | 33 | } |
35 | 34 | ||
36 | #ifndef MACROFILES | 35 | #ifndef MACROFILES |
37 | @@ -468,9 +472,9 @@ static void setDefaults(void) | 36 | @@ -469,9 +473,9 @@ static void setDefaults(void) |
38 | confdir, "/platform/%{_target}/macros", ":", | 37 | confdir, "/platform/%{_target}/macros", ":", |
39 | confdir, "/fileattrs/*.attr", ":", | 38 | confdir, "/fileattrs/*.attr", ":", |
40 | confdir, "/" RPM_VENDOR "/macros", ":", | 39 | confdir, "/" RPM_VENDOR "/macros", ":", |
@@ -47,7 +46,7 @@ index f39dcfc11..f27f88753 100644 | |||
47 | } | 46 | } |
48 | #else | 47 | #else |
49 | macrofiles = MACROFILES; | 48 | macrofiles = MACROFILES; |
50 | @@ -1114,7 +1118,11 @@ static void read_auxv(void) | 49 | @@ -1115,7 +1119,11 @@ static void read_auxv(void) |
51 | */ | 50 | */ |
52 | static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) | 51 | static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) |
53 | { | 52 | { |
@@ -60,7 +59,7 @@ index f39dcfc11..f27f88753 100644 | |||
60 | static struct utsname un; | 59 | static struct utsname un; |
61 | char * chptr; | 60 | char * chptr; |
62 | canonEntry canon; | 61 | canonEntry canon; |
63 | @@ -1434,6 +1442,7 @@ static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) | 62 | @@ -1435,6 +1443,7 @@ static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) |
64 | 63 | ||
65 | if (arch) *arch = un.machine; | 64 | if (arch) *arch = un.machine; |
66 | if (os) *os = un.sysname; | 65 | if (os) *os = un.sysname; |