diff options
| author | Yi Fan Yu <yifan.yu@windriver.com> | 2021-04-16 19:36:54 -0400 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-04-18 13:49:13 -0700 |
| commit | a56b4e9c48fdb04b8dcad13dd45583c9a1c1296c (patch) | |
| tree | 879f138c0aae2c875fb16ebf6689510a657ffad1 | |
| parent | f5d3ba9fec8e4d5a261f2ce470a785c50e4615ca (diff) | |
| download | meta-openembedded-a56b4e9c48fdb04b8dcad13dd45583c9a1c1296c.tar.gz | |
syslog-ng: Drop an obsolete patch to add --enable-libnet
libnet is a dependency to --enable-spoof-source.
The correct flag to enable/disable in ./configure
is --enable-spoof-source.
Adjust PACKAGECONFIG accordingly.
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit c126dcd1f91236d7effdb64df7fd9a3e2029543d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
3 files changed, 1 insertions, 79 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch b/meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch deleted file mode 100644 index c9eec65e87..0000000000 --- a/meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch +++ /dev/null | |||
| @@ -1,77 +0,0 @@ | |||
| 1 | From 57b509adfb7c62bbf55ea1709aac3383cab660fa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ming Liu <ming.liu@windriver.com> | ||
| 3 | Date: Thu, 17 Jul 2014 05:37:08 -0400 | ||
| 4 | Subject: [PATCH] configure.ac: add libnet enable option | ||
| 5 | |||
| 6 | This would avoid a implicit auto-detecting result | ||
| 7 | |||
| 8 | Signed-off-by: Ming Liu <ming.liu@windriver.com> | ||
| 9 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
| 10 | |||
| 11 | Update for 3.24.1. | ||
| 12 | Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> | ||
| 13 | |||
| 14 | Set it to default yes | ||
| 15 | |||
| 16 | Upstream-Status: Submitted [https://github.com/syslog-ng/syslog-ng/pull/3650] | ||
| 17 | |||
| 18 | Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> | ||
| 19 | --- | ||
| 20 | configure.ac | 35 ++++++++++++++++++++--------------- | ||
| 21 | 1 file changed, 20 insertions(+), 15 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/configure.ac b/configure.ac | ||
| 24 | index 7aad75f..d575cba 100644 | ||
| 25 | --- a/configure.ac | ||
| 26 | +++ b/configure.ac | ||
| 27 | @@ -144,6 +144,9 @@ AC_CONFIG_HEADERS(config.h) | ||
| 28 | dnl *************************************************************************** | ||
| 29 | dnl Arguments | ||
| 30 | |||
| 31 | +AC_ARG_ENABLE(libnet, | ||
| 32 | + [ --enable-libnet Enable libnet support (default: yes)],, enable_libnet="yes") | ||
| 33 | + | ||
| 34 | AC_ARG_WITH(libnet, | ||
| 35 | [ --with-libnet=path use path to libnet-config script], | ||
| 36 | , | ||
| 37 | @@ -1073,23 +1076,25 @@ dnl *************************************************************************** | ||
| 38 | dnl libnet headers/libraries | ||
| 39 | dnl *************************************************************************** | ||
| 40 | AC_MSG_CHECKING(for LIBNET) | ||
| 41 | -if test "x$with_libnet" = "x"; then | ||
| 42 | - LIBNET_CONFIG="`which libnet-config`" | ||
| 43 | -else | ||
| 44 | - LIBNET_CONFIG="$with_libnet/libnet-config" | ||
| 45 | -fi | ||
| 46 | +if test "x$enable_libnet" = xyes; then | ||
| 47 | + if test "x$with_libnet" = "x"; then | ||
| 48 | + LIBNET_CONFIG="`which libnet-config`" | ||
| 49 | + else | ||
| 50 | + LIBNET_CONFIG="$with_libnet/libnet-config" | ||
| 51 | + fi | ||
| 52 | |||
| 53 | -if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then | ||
| 54 | - LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`" | ||
| 55 | - LIBNET_LIBS="`$LIBNET_CONFIG --libs`" | ||
| 56 | - AC_MSG_RESULT(yes) | ||
| 57 | -dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build | ||
| 58 | -dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till | ||
| 59 | - LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE" | ||
| 60 | + if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then | ||
| 61 | + LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`" | ||
| 62 | + LIBNET_LIBS="`$LIBNET_CONFIG --libs`" | ||
| 63 | + AC_MSG_RESULT(yes) | ||
| 64 | + dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build | ||
| 65 | + dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till | ||
| 66 | + LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE" | ||
| 67 | |||
| 68 | -else | ||
| 69 | - LIBNET_LIBS= | ||
| 70 | - AC_MSG_RESULT(no) | ||
| 71 | + else | ||
| 72 | + LIBNET_LIBS= | ||
| 73 | + AC_MSG_RESULT(no) | ||
| 74 | + fi | ||
| 75 | fi | ||
| 76 | |||
| 77 | |||
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc index e48e5d5e2f..80c5099731 100644 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc | |||
| @@ -50,7 +50,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,," | |||
| 50 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd," | 50 | PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd," |
| 51 | PACKAGECONFIG[linux-caps] = "--enable-linux-caps,--disable-linux-caps,libcap," | 51 | PACKAGECONFIG[linux-caps] = "--enable-linux-caps,--disable-linux-caps,libcap," |
| 52 | PACKAGECONFIG[dbi] = "--enable-sql,--disable-sql,libdbi," | 52 | PACKAGECONFIG[dbi] = "--enable-sql,--disable-sql,libdbi," |
| 53 | PACKAGECONFIG[libnet] = "--enable-libnet --with-libnet=${STAGING_BINDIR_CROSS},--disable-libnet,libnet," | 53 | PACKAGECONFIG[spoof-source] = "--enable-spoof-source --with-libnet=${STAGING_BINDIR_CROSS},--disable-spoof-source,libnet," |
| 54 | PACKAGECONFIG[http] = "--enable-http,--disable-http,curl," | 54 | PACKAGECONFIG[http] = "--enable-http,--disable-http,curl," |
| 55 | PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp," | 55 | PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp," |
| 56 | PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c," | 56 | PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c," |
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb index cbd218c95b..5d2b7f77ea 100644 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb | |||
| @@ -10,7 +10,6 @@ SRC_URI += "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.t | |||
| 10 | file://syslog-ng-tmp.conf \ | 10 | file://syslog-ng-tmp.conf \ |
| 11 | file://syslog-ng.service-the-syslog-ng-service.patch \ | 11 | file://syslog-ng.service-the-syslog-ng-service.patch \ |
| 12 | file://0002-scl-fix-wrong-ownership-during-installation.patch \ | 12 | file://0002-scl-fix-wrong-ownership-during-installation.patch \ |
| 13 | file://0004-configure.ac-add-libnet-enable-option.patch \ | ||
| 14 | file://0005-.py-s-python-python3-exclude-tests.patch \ | 13 | file://0005-.py-s-python-python3-exclude-tests.patch \ |
| 15 | " | 14 | " |
| 16 | SRC_URI[md5sum] = "69ef4dc5628d5e603e9e4a1b937592f8" | 15 | SRC_URI[md5sum] = "69ef4dc5628d5e603e9e4a1b937592f8" |
