diff options
| -rw-r--r-- | meta-oe/recipes-extended/cfengine/cfengine-masterfiles/python3.patch | 16 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/cfengine/cfengine-masterfiles_3.21.0.bb (renamed from meta-oe/recipes-extended/cfengine/cfengine-masterfiles_3.15.0.bb) | 7 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/cfengine/cfengine/0001-Fixed-with-libxml2-no-case-in-configure.ac.patch | 87 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/cfengine/cfengine_3.21.0.bb (renamed from meta-oe/recipes-extended/cfengine/cfengine_3.15.0.bb) | 10 |
4 files changed, 96 insertions, 24 deletions
diff --git a/meta-oe/recipes-extended/cfengine/cfengine-masterfiles/python3.patch b/meta-oe/recipes-extended/cfengine/cfengine-masterfiles/python3.patch deleted file mode 100644 index a6f6701261..0000000000 --- a/meta-oe/recipes-extended/cfengine/cfengine-masterfiles/python3.patch +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | --- a/modules/packages/apt_get | ||
| 2 | +++ b/modules/packages/apt_get | ||
| 3 | @@ -1,4 +1,4 @@ | ||
| 4 | -#!/var/cfengine/bin/python | ||
| 5 | +#!/var/cfengine/bin/python3 | ||
| 6 | |||
| 7 | import sys | ||
| 8 | import os | ||
| 9 | --- a/modules/packages/apt_get.in | ||
| 10 | +++ b/modules/packages/apt_get.in | ||
| 11 | @@ -1,4 +1,4 @@ | ||
| 12 | -#!@bindir@/python | ||
| 13 | +#!@bindir@/python3 | ||
| 14 | |||
| 15 | import sys | ||
| 16 | import os | ||
diff --git a/meta-oe/recipes-extended/cfengine/cfengine-masterfiles_3.15.0.bb b/meta-oe/recipes-extended/cfengine/cfengine-masterfiles_3.21.0.bb index 4ef3fc15ad..68d4042554 100644 --- a/meta-oe/recipes-extended/cfengine/cfengine-masterfiles_3.15.0.bb +++ b/meta-oe/recipes-extended/cfengine/cfengine-masterfiles_3.21.0.bb | |||
| @@ -18,13 +18,12 @@ or wherever `$(sys.masterdir)` points. \ | |||
| 18 | HOMEPAGE = "http://cfengine.com" | 18 | HOMEPAGE = "http://cfengine.com" |
| 19 | 19 | ||
| 20 | LICENSE = "MIT" | 20 | LICENSE = "MIT" |
| 21 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9f76426f9ef8c6f6739fadd21d817a4f" | 21 | LIC_FILES_CHKSUM = "file://LICENSE;md5=bb843e794feb6890f7697637b461c36e" |
| 22 | 22 | ||
| 23 | SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BP}.tar.gz \ | 23 | SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BP}.tar.gz \ |
| 24 | file://python3.patch \ | ||
| 25 | " | 24 | " |
| 26 | SRC_URI[md5sum] = "6d456fdd9bd24ff6617eeaa05efae602" | 25 | #SRC_URI[md5sum] = "5df2f85c75efc351ffadebcc11046a98" |
| 27 | SRC_URI[sha256sum] = "4a071c0c4ba7df9bad93144cff5fbc0566e5172afd66201072e3193b76c55a38" | 26 | SRC_URI[sha256sum] = "013ebe68599915cedb4bf753b471713d91901a991623358b9a967d9a779bcc16" |
| 28 | 27 | ||
| 29 | inherit autotools | 28 | inherit autotools |
| 30 | 29 | ||
diff --git a/meta-oe/recipes-extended/cfengine/cfengine/0001-Fixed-with-libxml2-no-case-in-configure.ac.patch b/meta-oe/recipes-extended/cfengine/cfengine/0001-Fixed-with-libxml2-no-case-in-configure.ac.patch new file mode 100644 index 0000000000..01d470b833 --- /dev/null +++ b/meta-oe/recipes-extended/cfengine/cfengine/0001-Fixed-with-libxml2-no-case-in-configure.ac.patch | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | From a08acdfadb5eba2a3201209c6da3ad6f2ca4ae79 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Craig Comstock <craig.comstock@northern.tech> | ||
| 3 | Date: Fri, 27 Jan 2023 15:19:48 -0600 | ||
| 4 | Subject: [PATCH] Fixed --with-libxml2=no case in configure.ac | ||
| 5 | |||
| 6 | The CF3_WITH_LIBRARY and AC_CHECK_HEADERS were moved to outside of the check for with-libxml2=no | ||
| 7 | |||
| 8 | Ticket: CFE-4023 | ||
| 9 | Changelog: title | ||
| 10 | --- | ||
| 11 | configure.ac | 21 +++++++++++---------- | ||
| 12 | libntech/configure.ac | 21 +++++++++++---------- | ||
| 13 | 2 files changed, 22 insertions(+), 20 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/configure.ac b/configure.ac | ||
| 16 | index e189b10..f6b8226 100644 | ||
| 17 | --- a/configure.ac | ||
| 18 | +++ b/configure.ac | ||
| 19 | @@ -659,19 +659,20 @@ if test "x$with_libxml2" != "xno"; then | ||
| 20 | LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2 | ||
| 21 | fi | ||
| 22 | fi | ||
| 23 | -fi | ||
| 24 | |||
| 25 | -CF3_WITH_LIBRARY(libxml2, | ||
| 26 | - [AC_CHECK_LIB(xml2, xmlFirstElementChild, | ||
| 27 | - [], | ||
| 28 | - [if test "x$with_libxml2" != xcheck; then | ||
| 29 | - AC_MSG_ERROR(Cannot find libxml2); fi] | ||
| 30 | - ) | ||
| 31 | - AC_CHECK_HEADERS([libxml/xmlwriter.h], [break], | ||
| 32 | + CF3_WITH_LIBRARY(libxml2, | ||
| 33 | + [AC_CHECK_LIB(xml2, xmlFirstElementChild, | ||
| 34 | + [], | ||
| 35 | [if test "x$with_libxml2" != xcheck; then | ||
| 36 | AC_MSG_ERROR(Cannot find libxml2); fi] | ||
| 37 | - )] | ||
| 38 | -) | ||
| 39 | + ) | ||
| 40 | + AC_CHECK_HEADERS([libxml/xmlwriter.h], [break], | ||
| 41 | + [if test "x$with_libxml2" != xcheck; then | ||
| 42 | + AC_MSG_ERROR(Cannot find libxml2); fi] | ||
| 43 | + )] | ||
| 44 | + ) | ||
| 45 | + | ||
| 46 | +fi | ||
| 47 | |||
| 48 | AM_CONDITIONAL([HAVE_LIBXML2], | ||
| 49 | [test "x$with_libxml2" != xno && | ||
| 50 | diff --git a/libntech/configure.ac b/libntech/configure.ac | ||
| 51 | index 7bb8787..28b3683 100644 | ||
| 52 | --- a/libntech/configure.ac | ||
| 53 | +++ b/libntech/configure.ac | ||
| 54 | @@ -571,19 +571,20 @@ if test "x$with_libxml2" != "xno"; then | ||
| 55 | LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2 | ||
| 56 | fi | ||
| 57 | fi | ||
| 58 | -fi | ||
| 59 | |||
| 60 | -CF3_WITH_LIBRARY(libxml2, | ||
| 61 | - [AC_CHECK_LIB(xml2, xmlFirstElementChild, | ||
| 62 | - [], | ||
| 63 | - [if test "x$with_libxml2" != xcheck; then | ||
| 64 | - AC_MSG_ERROR(Cannot find libxml2); fi] | ||
| 65 | - ) | ||
| 66 | - AC_CHECK_HEADERS([libxml/xmlwriter.h], [break], | ||
| 67 | + CF3_WITH_LIBRARY(libxml2, | ||
| 68 | + [AC_CHECK_LIB(xml2, xmlFirstElementChild, | ||
| 69 | + [], | ||
| 70 | [if test "x$with_libxml2" != xcheck; then | ||
| 71 | AC_MSG_ERROR(Cannot find libxml2); fi] | ||
| 72 | - )] | ||
| 73 | -) | ||
| 74 | + ) | ||
| 75 | + AC_CHECK_HEADERS([libxml/xmlwriter.h], [break], | ||
| 76 | + [if test "x$with_libxml2" != xcheck; then | ||
| 77 | + AC_MSG_ERROR(Cannot find libxml2); fi] | ||
| 78 | + )] | ||
| 79 | + ) | ||
| 80 | + | ||
| 81 | +fi | ||
| 82 | |||
| 83 | AM_CONDITIONAL([HAVE_LIBXML2], | ||
| 84 | [test "x$with_libxml2" != xno && | ||
| 85 | -- | ||
| 86 | 2.39.1 | ||
| 87 | |||
diff --git a/meta-oe/recipes-extended/cfengine/cfengine_3.15.0.bb b/meta-oe/recipes-extended/cfengine/cfengine_3.21.0.bb index 1566f8a88f..6fa5d2743a 100644 --- a/meta-oe/recipes-extended/cfengine/cfengine_3.15.0.bb +++ b/meta-oe/recipes-extended/cfengine/cfengine_3.21.0.bb | |||
| @@ -15,13 +15,15 @@ SKIP_RECIPE[cfengine] ?= "Needs porting to openssl 3.x" | |||
| 15 | LICENSE = "GPL-3.0-only" | 15 | LICENSE = "GPL-3.0-only" |
| 16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=233aa25e53983237cf0bd4c238af255f" | 16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=233aa25e53983237cf0bd4c238af255f" |
| 17 | 17 | ||
| 18 | DEPENDS = "attr tokyocabinet bison-native" | 18 | DEPENDS += "attr tokyocabinet bison-native libxml2" |
| 19 | #RDEPENDS:cfengine += "attr tokyocabinet bison-native libxml2" | ||
| 19 | 20 | ||
| 20 | SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BP}.tar.gz \ | 21 | SRC_URI = "https://cfengine-package-repos.s3.amazonaws.com/tarballs/${BPN}-community-${PV}.tar.gz \ |
| 22 | file://0001-Fixed-with-libxml2-no-case-in-configure.ac.patch \ | ||
| 21 | file://set-path-of-default-config-file.patch \ | 23 | file://set-path-of-default-config-file.patch \ |
| 22 | " | 24 | " |
| 23 | SRC_URI[md5sum] = "d4dabfa46d8afa151be5610f184354e7" | 25 | #SRC_URI[md5sum] = "5318e40702bc66a3ece44ec4ad77712b" |
| 24 | SRC_URI[sha256sum] = "fa53e137f850eb268a8e7ae4578b5db5dc383656341f5053dc1a353ed0288265" | 26 | SRC_URI[sha256sum] = "911778ddb0a4e03a3ddfc8fc0f033136e1551849ea2dcbdb3f0f14359dfe3126" |
| 25 | 27 | ||
| 26 | inherit autotools-brokensep systemd | 28 | inherit autotools-brokensep systemd |
| 27 | 29 | ||
