diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/files/0001-Fix-build-with-musl-C-library.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/files/0001-Fix-build-with-musl-C-library.patch | 66 |
1 files changed, 20 insertions, 46 deletions
diff --git a/meta/recipes-devtools/rpm/files/0001-Fix-build-with-musl-C-library.patch b/meta/recipes-devtools/rpm/files/0001-Fix-build-with-musl-C-library.patch index edf9ec0894..0b1d6298a9 100644 --- a/meta/recipes-devtools/rpm/files/0001-Fix-build-with-musl-C-library.patch +++ b/meta/recipes-devtools/rpm/files/0001-Fix-build-with-musl-C-library.patch | |||
@@ -1,24 +1,21 @@ | |||
1 | From 211c2d11200e6657132c52e7ac68f8c118231262 Mon Sep 17 00:00:00 2001 | 1 | From d076de030deb9cafd9b2e82be5d506cebdefad0b 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: Mon, 27 Feb 2017 14:43:21 +0200 | 3 | Date: Mon, 27 Feb 2017 14:43:21 +0200 |
4 | Subject: [PATCH] Fix build with musl C library. | 4 | Subject: [PATCH 1/9] Fix build with musl C library. |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [problem already solved in master branch] | 6 | Upstream-Status: Pending |
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
8 | 8 | ||
9 | |||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | 9 | --- |
12 | configure.ac | 3 ++- | 10 | configure.ac | 3 ++- |
13 | misc/Makefile.am | 3 +-- | 11 | rpmio/digest_nss.c | 1 + |
14 | misc/rpmxprogname.c | 3 +-- | 12 | 2 files changed, 3 insertions(+), 1 deletion(-) |
15 | 3 files changed, 4 insertions(+), 5 deletions(-) | ||
16 | 13 | ||
17 | diff --git a/configure.ac b/configure.ac | 14 | diff --git a/configure.ac b/configure.ac |
18 | index 92ffd3d68..9c58467c1 100644 | 15 | index c04a2e8d1..c9d9ac16d 100644 |
19 | --- a/configure.ac | 16 | --- a/configure.ac |
20 | +++ b/configure.ac | 17 | +++ b/configure.ac |
21 | @@ -229,6 +229,7 @@ AC_SEARCH_LIBS(dlopen, [dl]) | 18 | @@ -255,6 +255,7 @@ AC_SEARCH_LIBS(dlopen, [dl]) |
22 | # Check for libelf library. Prefer external, otherwise none. | 19 | # Check for libelf library. Prefer external, otherwise none. |
23 | WITH_LIBELF_LIB= | 20 | WITH_LIBELF_LIB= |
24 | AC_CHECK_HEADER([libelf.h]) | 21 | AC_CHECK_HEADER([libelf.h]) |
@@ -26,7 +23,7 @@ index 92ffd3d68..9c58467c1 100644 | |||
26 | AC_CHECK_HEADERS([gelf.h], [ | 23 | AC_CHECK_HEADERS([gelf.h], [ |
27 | AC_CHECK_LIB(elf, gelf_getvernaux, [ | 24 | AC_CHECK_LIB(elf, gelf_getvernaux, [ |
28 | AC_DEFINE(HAVE_LIBELF, 1, [Define to 1 if you have the 'elf' library (-lelf).]) | 25 | AC_DEFINE(HAVE_LIBELF, 1, [Define to 1 if you have the 'elf' library (-lelf).]) |
29 | @@ -237,7 +238,7 @@ AC_CHECK_HEADERS([gelf.h], [ | 26 | @@ -263,7 +264,7 @@ AC_CHECK_HEADERS([gelf.h], [ |
30 | ]) | 27 | ]) |
31 | ]) | 28 | ]) |
32 | AC_SUBST(WITH_LIBELF_LIB) | 29 | AC_SUBST(WITH_LIBELF_LIB) |
@@ -35,40 +32,17 @@ index 92ffd3d68..9c58467c1 100644 | |||
35 | 32 | ||
36 | AC_CHECK_HEADERS([dwarf.h], [ | 33 | AC_CHECK_HEADERS([dwarf.h], [ |
37 | WITH_LIBDWARF=yes | 34 | WITH_LIBDWARF=yes |
38 | diff --git a/misc/Makefile.am b/misc/Makefile.am | 35 | diff --git a/rpmio/digest_nss.c b/rpmio/digest_nss.c |
39 | index 8bf0093d9..b9db3d31a 100644 | 36 | index 992d9acf6..e11920e3e 100644 |
40 | --- a/misc/Makefile.am | 37 | --- a/rpmio/digest_nss.c |
41 | +++ b/misc/Makefile.am | 38 | +++ b/rpmio/digest_nss.c |
42 | @@ -5,10 +5,9 @@ AM_CPPFLAGS += -I$(top_srcdir)/misc | 39 | @@ -1,5 +1,6 @@ |
43 | 40 | #include "system.h" | |
44 | EXTRA_DIST = \ | ||
45 | fnmatch.c fnmatch.h \ | ||
46 | - rpmxprogname.c rpmxprogname.h \ | ||
47 | stpcpy.c stpncpy.c | ||
48 | |||
49 | noinst_LTLIBRARIES = libmisc.la | ||
50 | |||
51 | -libmisc_la_SOURCES = fts.c fts.h | ||
52 | +libmisc_la_SOURCES = fts.c fts.h rpmxprogname.c rpmxprogname.h | ||
53 | libmisc_la_LIBADD = @LTLIBOBJS@ | ||
54 | diff --git a/misc/rpmxprogname.c b/misc/rpmxprogname.c | ||
55 | index f89600613..e94625ea8 100644 | ||
56 | --- a/misc/rpmxprogname.c | ||
57 | +++ b/misc/rpmxprogname.c | ||
58 | @@ -13,7 +13,7 @@ char *_rpmxgetprogname(void) | ||
59 | { | ||
60 | const char *empty = ""; | ||
61 | |||
62 | - if (_rpmxprognam != NULL) /* never return NULL string */ | ||
63 | + if (_rpmxprogname != NULL) /* never return NULL string */ | ||
64 | return _rpmxprogname; | ||
65 | else | ||
66 | return empty; | ||
67 | @@ -30,4 +30,3 @@ void _rpmxsetprogname(const char *pn) | ||
68 | } | ||
69 | } | ||
70 | 41 | ||
71 | -#endif /* _RPMXPROGNAME_H */ | 42 | +#include <signal.h> |
43 | #include <pthread.h> | ||
44 | #include <nss.h> | ||
45 | #include <sechash.h> | ||
72 | -- | 46 | -- |
73 | 2.11.0 | 47 | 2.14.2 |
74 | 48 | ||