diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpmatch.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpmatch.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpmatch.patch b/meta/recipes-devtools/rpm/rpm/rpmatch.patch deleted file mode 100644 index 9bbf580e46..0000000000 --- a/meta/recipes-devtools/rpm/rpm/rpmatch.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | Create a compatable macro if rpmatch() is not provided by the C library. | ||
2 | |||
3 | This uses an existing configure check. | ||
4 | |||
5 | This is needed for uclibc since it does not have the above function | ||
6 | implemented. | ||
7 | |||
8 | Upstream-Status: Submitted [RPM5 maintainer] | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | |||
12 | Updated to rpm 5.4.15+. | ||
13 | |||
14 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
15 | |||
16 | Index: rpm/system.h | ||
17 | =================================================================== | ||
18 | --- rpm.orig/system.h | ||
19 | +++ rpm/system.h | ||
20 | @@ -358,6 +358,14 @@ extern int _tolower(int) __THROW /*@*/; | ||
21 | #include <libgen.h> | ||
22 | #endif | ||
23 | |||
24 | +#ifndef HAVE_RPMATCH | ||
25 | +#define rpmatch(line) \ | ||
26 | + ( (line == NULL)? -1 : \ | ||
27 | + (*line == 'y' || *line == 'Y')? 1 : \ | ||
28 | + (*line == 'n' || *line == 'N')? 0 : \ | ||
29 | + -1 ) | ||
30 | +#endif | ||
31 | + | ||
32 | /* -- Retrofit glibc __progname */ | ||
33 | #if defined __GLIBC__ && __GLIBC__ >= 2 | ||
34 | #if __GLIBC_MINOR__ >= 1 | ||