diff options
3 files changed, 145 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/satyr/files/0001-do-not-support-python2.patch b/meta-oe/recipes-support/satyr/files/0001-do-not-support-python2.patch new file mode 100644 index 0000000000..9e95a3f9d1 --- /dev/null +++ b/meta-oe/recipes-support/satyr/files/0001-do-not-support-python2.patch | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | From 206f334d62da17093e784094c9d9e80c853f704f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Fri, 12 May 2017 03:03:46 -0400 | ||
| 4 | Subject: [PATCH] do not support python2 | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [oe specific] | ||
| 7 | |||
| 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 9 | --- | ||
| 10 | configure.ac | 16 ---------------- | ||
| 11 | python/Makefile.am | 24 ------------------------ | ||
| 12 | 2 files changed, 40 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/configure.ac b/configure.ac | ||
| 15 | index 200a7cc..8431c51 100644 | ||
| 16 | --- a/configure.ac | ||
| 17 | +++ b/configure.ac | ||
| 18 | @@ -22,22 +22,6 @@ AM_MISSING_PROG([AUTOM4TE], [autom4te]) | ||
| 19 | # Needed by tests/atlocal.in. | ||
| 20 | AC_SUBST([O0CFLAGS], [`echo $CFLAGS | sed 's/-O[[0-9]] *//'`]) | ||
| 21 | |||
| 22 | -AM_PATH_PYTHON | ||
| 23 | -AM_CONDITIONAL([HAVE_PYTHON], test -n "$PYTHON") | ||
| 24 | -[if test -z "$PYTHON"; then] | ||
| 25 | - [echo "The python interpreter was not found in the search path. The Python language bindings"] | ||
| 26 | - [echo "will not be built. If you want to build the Python language bindings, please ensure"] | ||
| 27 | - [echo "that python is installed and its directory is included in the search path."] | ||
| 28 | - [echo "Then run configure again before attempting to build Satyr."] | ||
| 29 | -[fi] | ||
| 30 | - | ||
| 31 | -# Just PKG_CHECK_MODULES([PYTHON], [python]) works only with python2.7+ | ||
| 32 | -# Below, if python is not found, we set up for python2.6 w/o checking: | ||
| 33 | -PKG_CHECK_MODULES([PYTHON], [python2],,[ | ||
| 34 | - PYTHON_LIBS='-L/usr/lib64 -lpython2.6' | ||
| 35 | - PYTHON_CFLAGS='-I/usr/include/python2.6' | ||
| 36 | -]) | ||
| 37 | - | ||
| 38 | AC_ARG_ENABLE([python-manpage], | ||
| 39 | [AS_HELP_STRING([--disable-python-manpage], | ||
| 40 | [Disable python bindings manpage build])], | ||
| 41 | diff --git a/python/Makefile.am b/python/Makefile.am | ||
| 42 | index 36fc2e9..0b73f66 100644 | ||
| 43 | --- a/python/Makefile.am | ||
| 44 | +++ b/python/Makefile.am | ||
| 45 | @@ -1,12 +1,5 @@ | ||
| 46 | SUBDIRS = . doc | ||
| 47 | |||
| 48 | -py2satyrdir = $(pyexecdir)/satyr | ||
| 49 | - | ||
| 50 | -py2satyr_PYTHON = \ | ||
| 51 | - __init__.py | ||
| 52 | - | ||
| 53 | -py2satyr_LTLIBRARIES = _satyr.la | ||
| 54 | - | ||
| 55 | PYEXTFILES = \ | ||
| 56 | py_cluster.h \ | ||
| 57 | py_cluster.c \ | ||
| 58 | @@ -75,23 +68,6 @@ PYEXTLDFLAGS = \ | ||
| 59 | -module \ | ||
| 60 | -avoid-version | ||
| 61 | |||
| 62 | -_satyr_la_SOURCES = $(PYEXTFILES) | ||
| 63 | -_satyr_la_CPPFLAGS = \ | ||
| 64 | - $(PYEXTCPPFLAGS) \ | ||
| 65 | - $(PYTHON_CFLAGS) | ||
| 66 | -_satyr_la_LDFLAGS = \ | ||
| 67 | - $(PYEXTLDFLAGS) \ | ||
| 68 | - -export-symbols-regex init_satyr | ||
| 69 | - | ||
| 70 | -# Depending on the configure option, we either link libsatyr.so dynamically (as | ||
| 71 | -# is usual), or directly include its object files (by including the | ||
| 72 | -# convenience library). | ||
| 73 | -if ENABLE_STATIC_PYTHON_MODULE | ||
| 74 | -_satyr_la_LIBADD = ../lib/libsatyr_conv.la | ||
| 75 | -else | ||
| 76 | -_satyr_la_LIBADD = ../lib/libsatyr.la | ||
| 77 | -endif | ||
| 78 | - | ||
| 79 | if WITH_PYTHON3 | ||
| 80 | py3satyrdir = $(py3execdir)/satyr | ||
| 81 | |||
| 82 | -- | ||
| 83 | 2.8.1 | ||
| 84 | |||
diff --git a/meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch b/meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch new file mode 100644 index 0000000000..5827eb4d18 --- /dev/null +++ b/meta-oe/recipes-support/satyr/files/0002-fix-compile-failure-against-musl-C-library.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 23f827ea94284656972652f61f2c6aad96092cc8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Thu, 20 Jul 2017 23:00:29 -0400 | ||
| 4 | Subject: [PATCH] fix compile failure against musl C library | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 9 | --- | ||
| 10 | lib/rpm.c | 2 +- | ||
| 11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/lib/rpm.c b/lib/rpm.c | ||
| 14 | index 920e145..58140bf 100644 | ||
| 15 | --- a/lib/rpm.c | ||
| 16 | +++ b/lib/rpm.c | ||
| 17 | @@ -188,7 +188,7 @@ sr_rpm_package_sort(struct sr_rpm_package *packages) | ||
| 18 | } | ||
| 19 | |||
| 20 | /* Sort the array. */ | ||
| 21 | - qsort(array, count, sizeof(struct sr_rpm_package*), (comparison_fn_t)cmp_nevra_qsort_wrapper); | ||
| 22 | + qsort(array, count, sizeof(struct sr_rpm_package*), cmp_nevra_qsort_wrapper); | ||
| 23 | |||
| 24 | /* Create a linked list from the sorted array. */ | ||
| 25 | for (size_t loop = 0; loop < count; ++loop) | ||
| 26 | -- | ||
| 27 | 2.8.1 | ||
| 28 | |||
diff --git a/meta-oe/recipes-support/satyr/satyr_0.23.bb b/meta-oe/recipes-support/satyr/satyr_0.23.bb new file mode 100644 index 0000000000..f795c3717b --- /dev/null +++ b/meta-oe/recipes-support/satyr/satyr_0.23.bb | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | DESCRIPTION = "Satyr is a collection of low-level algorithms for program \ | ||
| 2 | failure processing, analysis, and reporting supporting kernel space, user \ | ||
| 3 | space, Python, and Java programs" | ||
| 4 | |||
| 5 | HOMEPAGE = "https://github.com/abrt/satyr" | ||
| 6 | LICENSE = "GPLv2" | ||
| 7 | |||
| 8 | inherit autotools-brokensep python3native pkgconfig | ||
| 9 | |||
| 10 | SRC_URI = "git://github.com/abrt/satyr.git \ | ||
| 11 | file://0001-do-not-support-python2.patch \ | ||
| 12 | file://0002-fix-compile-failure-against-musl-C-library.patch \ | ||
| 13 | " | ||
| 14 | SRCREV = "4742fd4857c446b96f712d52e2e4cd0b6cfe7398" | ||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | |||
| 17 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
| 18 | |||
| 19 | DEPENDS += " \ | ||
| 20 | gdb \ | ||
| 21 | " | ||
| 22 | |||
| 23 | PACKAGES += "python3-${PN}" | ||
| 24 | FILES_python3-${PN} = "${PYTHON_SITEPACKAGES_DIR}/${BPN}" | ||
| 25 | |||
| 26 | PACKAGECONFIG ??= "python3 rpm" | ||
| 27 | PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3" | ||
| 28 | PACKAGECONFIG[pythonmanpage] = "--enable-python-manpage, --disable-python-manpage" | ||
| 29 | PACKAGECONFIG[rpm] = "--with-rpm, --without-rpm, rpm" | ||
| 30 | |||
| 31 | do_configure_prepend() { | ||
| 32 | ${S}/gen-version | ||
| 33 | } | ||
