Skip to contentSkip to conversation

syslog-ng: Drop an obsolete patch to add --enable-libnet

PATCH In review Yi Fan Yu 3 participants 3 messages Apr 16, 2021 – Apr 17, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Yi Fan Yu

author
#1 lore raw

PATCH v2 1/1 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.

---
 ...onfigure.ac-add-libnet-enable-option.patch | 77 -------------------
 .../recipes-support/syslog-ng/syslog-ng.inc   |  2 +-
 .../syslog-ng/syslog-ng_3.31.2.bb             |  1 -
 3 files changed, 1 insertion(+), 79 deletions(-)
 delete mode 100644 meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch
meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch deleted +0 -77
deleted file mode 100644
index c9eec65e8..000000000
@@ -1,77 +0,0 @@
-From 57b509adfb7c62bbf55ea1709aac3383cab660fa Mon Sep 17 00:00:00 2001
-From: Ming Liu <[email protected]>
-Date: Thu, 17 Jul 2014 05:37:08 -0400
-Subject: [PATCH] configure.ac: add libnet enable option
-
-This would avoid a implicit auto-detecting result
-
-Signed-off-by: Ming Liu <[email protected]>
-Signed-off-by: Jackie Huang <[email protected]>
-
-Update for 3.24.1.
-Signed-off-by: Zheng Ruoqin <[email protected]>
-
-Set it to default yes
-
-Upstream-Status: Submitted [https://github.com/syslog-ng/syslog-ng/pull/3650]
-
-Signed-off-by: Yi Fan Yu <[email protected]>
----
- configure.ac | 35 ++++++++++++++++++++---------------
- 1 file changed, 20 insertions(+), 15 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 7aad75f..d575cba 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -144,6 +144,9 @@ AC_CONFIG_HEADERS(config.h)
- dnl ***************************************************************************
- dnl Arguments
- 
-+AC_ARG_ENABLE(libnet,
-+              [  --enable-libnet      Enable libnet support (default: yes)],, enable_libnet="yes")
-+
- AC_ARG_WITH(libnet,
-    [  --with-libnet=path      use path to libnet-config script],
-    ,
-@@ -1073,23 +1076,25 @@ dnl ***************************************************************************
- dnl libnet headers/libraries
- dnl ***************************************************************************
- AC_MSG_CHECKING(for LIBNET)
--if test "x$with_libnet" = "x"; then
--        LIBNET_CONFIG="`which libnet-config`"
--else
--        LIBNET_CONFIG="$with_libnet/libnet-config"
--fi
-+if test "x$enable_libnet" = xyes; then
-+    if test "x$with_libnet" = "x"; then
-+            LIBNET_CONFIG="`which libnet-config`"
-+    else
-+            LIBNET_CONFIG="$with_libnet/libnet-config"
-+    fi
- 
--if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then
--        LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`"
--        LIBNET_LIBS="`$LIBNET_CONFIG --libs`"
--        AC_MSG_RESULT(yes)
--dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build
--dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till
--        LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE"
-+    if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then
-+            LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`"
-+            LIBNET_LIBS="`$LIBNET_CONFIG --libs`"
-+            AC_MSG_RESULT(yes)
-+    dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build
-+    dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till
-+            LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE"
- 
--else
--        LIBNET_LIBS=
--        AC_MSG_RESULT(no)
-+    else
-+            LIBNET_LIBS=
-+            AC_MSG_RESULT(no)
-+    fi
- fi
- 
- 
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +1 -1
index e48e5d5e2..80c509973 100644
@@ -50,7 +50,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,,"
 PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd,"
 PACKAGECONFIG[linux-caps] = "--enable-linux-caps,--disable-linux-caps,libcap,"
 PACKAGECONFIG[dbi] = "--enable-sql,--disable-sql,libdbi,"
-PACKAGECONFIG[libnet] = "--enable-libnet --with-libnet=${STAGING_BINDIR_CROSS},--disable-libnet,libnet,"
+PACKAGECONFIG[spoof-source] = "--enable-spoof-source --with-libnet=${STAGING_BINDIR_CROSS},--disable-spoof-source,libnet,"
 PACKAGECONFIG[http] = "--enable-http,--disable-http,curl,"
 PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp,"
 PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c,"
meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb +0 -1
index cbd218c95..5d2b7f77e 100644
@@ -10,7 +10,6 @@ SRC_URI += "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.t
            file://syslog-ng-tmp.conf \
            file://syslog-ng.service-the-syslog-ng-service.patch \
            file://0002-scl-fix-wrong-ownership-during-installation.patch \
-           file://0004-configure.ac-add-libnet-enable-option.patch \
            file://0005-.py-s-python-python3-exclude-tests.patch \
            "
 SRC_URI[md5sum] = "69ef4dc5628d5e603e9e4a1b937592f8"
Signature · 1 line
2.29.2
#2 lore raw
Quoted 8 lines · Yi Fan Yu

libnet is a dependency to --enable-spoof-source.

The correct flag to enable/disable in ./configure
is --enable-spoof-source.

Adjust PACKAGECONFIG accordingly.

These syslog-ng patches are in master now.

Yi Fan please send a request to get them into hardknott. The old version has load of memory leaks so it's really not usable ...

Armin, Khem,
Did I miss an email about when y'all plan to declare hardknott released and will stop accepting most package uprevs?

../Randy

Quoted 120 lines
---
  ...onfigure.ac-add-libnet-enable-option.patch | 77 -------------------
  .../recipes-support/syslog-ng/syslog-ng.inc   |  2 +-
  .../syslog-ng/syslog-ng_3.31.2.bb             |  1 -
  3 files changed, 1 insertion(+), 79 deletions(-)

delete mode 100644 meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch

meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch deleted +0 -77
deleted file mode 100644
index c9eec65e8..000000000
@@ -1,77 +0,0 @@
-From 57b509adfb7c62bbf55ea1709aac3383cab660fa Mon Sep 17 00:00:00 2001
-From: Ming Liu <[email protected]>
-Date: Thu, 17 Jul 2014 05:37:08 -0400
-Subject: [PATCH] configure.ac: add libnet enable option
-
-This would avoid a implicit auto-detecting result
-
-Signed-off-by: Ming Liu <[email protected]>
-Signed-off-by: Jackie Huang <[email protected]>
-
-Update for 3.24.1.
-Signed-off-by: Zheng Ruoqin <[email protected]>
-
-Set it to default yes
-
-Upstream-Status: Submitted [https://github.com/syslog-ng/syslog-ng/pull/3650]
-
-Signed-off-by: Yi Fan Yu <[email protected]>
----
- configure.ac | 35 ++++++++++++++++++++---------------
- 1 file changed, 20 insertions(+), 15 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 7aad75f..d575cba 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -144,6 +144,9 @@ AC_CONFIG_HEADERS(config.h)
- dnl ***************************************************************************
- dnl Arguments
-
-+AC_ARG_ENABLE(libnet,
-+              [  --enable-libnet      Enable libnet support (default: yes)],, enable_libnet="yes")
-+
- AC_ARG_WITH(libnet,
-    [  --with-libnet=path      use path to libnet-config script],
-    ,
-@@ -1073,23 +1076,25 @@ dnl ***************************************************************************
- dnl libnet headers/libraries
- dnl ***************************************************************************
- AC_MSG_CHECKING(for LIBNET)
--if test "x$with_libnet" = "x"; then
--        LIBNET_CONFIG="`which libnet-config`"
--else
--        LIBNET_CONFIG="$with_libnet/libnet-config"
--fi
-+if test "x$enable_libnet" = xyes; then
-+    if test "x$with_libnet" = "x"; then
-+            LIBNET_CONFIG="`which libnet-config`"
-+    else
-+            LIBNET_CONFIG="$with_libnet/libnet-config"
-+    fi
-
--if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then
--        LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`"
--        LIBNET_LIBS="`$LIBNET_CONFIG --libs`"
--        AC_MSG_RESULT(yes)
--dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build
--dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till
--        LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE"
-+    if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then
-+            LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`"
-+            LIBNET_LIBS="`$LIBNET_CONFIG --libs`"
-+            AC_MSG_RESULT(yes)
-+    dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build
-+    dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till
-+            LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE"
-
--else
--        LIBNET_LIBS=
--        AC_MSG_RESULT(no)
-+    else
-+            LIBNET_LIBS=
-+            AC_MSG_RESULT(no)
-+    fi
- fi
-
-
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +1 -1
index e48e5d5e2..80c509973 100644
@@ -50,7 +50,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,,"
  PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd,"
  PACKAGECONFIG[linux-caps] = "--enable-linux-caps,--disable-linux-caps,libcap,"
  PACKAGECONFIG[dbi] = "--enable-sql,--disable-sql,libdbi,"
-PACKAGECONFIG[libnet] = "--enable-libnet --with-libnet=${STAGING_BINDIR_CROSS},--disable-libnet,libnet,"
+PACKAGECONFIG[spoof-source] = "--enable-spoof-source --with-libnet=${STAGING_BINDIR_CROSS},--disable-spoof-source,libnet,"
  PACKAGECONFIG[http] = "--enable-http,--disable-http,curl,"
  PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp,"
  PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c,"
meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb +0 -1
index cbd218c95..5d2b7f77e 100644
@@ -10,7 +10,6 @@ SRC_URI += "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.t
             file://syslog-ng-tmp.conf \
             file://syslog-ng.service-the-syslog-ng-service.patch \
             file://0002-scl-fix-wrong-ownership-during-installation.patch \
-           file://0004-configure.ac-add-libnet-enable-option.patch \
             file://0005-.py-s-python-python3-exclude-tests.patch \
             "
  SRC_URI[md5sum] = "69ef4dc5628d5e603e9e4a1b937592f8"
Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#3 lore raw
Quoted 7 lines · Randy MacLeod
Quoted 5 lines · Yi Fan Yu

libnet is a dependency to --enable-spoof-source.

The correct flag to enable/disable in ./configure
is --enable-spoof-source.

Quoted 9 lines
Quoted 3 lines

Adjust PACKAGECONFIG accordingly.

These syslog-ng patches are in master now.

Yi Fan please send a request to get them into hardknott. The old version has load of memory leaks so it's really not usable ...

they are still in master-next

Quoted 3 lines

Armin, Khem,
Did I miss an email about when y'all plan to declare hardknott released and will stop accepting most package uprevs?

I think Armin has final all on that.

Quoted 128 lines

../Randy

Quoted 113 lines
---
  ...onfigure.ac-add-libnet-enable-option.patch | 77 -------------------
  .../recipes-support/syslog-ng/syslog-ng.inc   |  2 +-
  .../syslog-ng/syslog-ng_3.31.2.bb             |  1 -
  3 files changed, 1 insertion(+), 79 deletions(-)

delete mode 100644 meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch

meta-oe/recipes-support/syslog-ng/files/0004-configure.ac-add-libnet-enable-option.patch deleted +0 -77
deleted file mode 100644
index c9eec65e8..000000000
@@ -1,77 +0,0 @@
-From 57b509adfb7c62bbf55ea1709aac3383cab660fa Mon Sep 17 00:00:00 2001
-From: Ming Liu <[email protected]>
-Date: Thu, 17 Jul 2014 05:37:08 -0400
-Subject: [PATCH] configure.ac: add libnet enable option
-
-This would avoid a implicit auto-detecting result
-
-Signed-off-by: Ming Liu <[email protected]>
-Signed-off-by: Jackie Huang <[email protected]>
-
-Update for 3.24.1.
-Signed-off-by: Zheng Ruoqin <[email protected]>
-
-Set it to default yes
-
-Upstream-Status: Submitted [https://github.com/syslog-ng/syslog-ng/pull/3650]
-
-Signed-off-by: Yi Fan Yu <[email protected]>
----
- configure.ac | 35 ++++++++++++++++++++---------------
- 1 file changed, 20 insertions(+), 15 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 7aad75f..d575cba 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -144,6 +144,9 @@ AC_CONFIG_HEADERS(config.h)
- dnl ***************************************************************************
- dnl Arguments
-
-+AC_ARG_ENABLE(libnet,
-+              [  --enable-libnet      Enable libnet support (default: yes)],, enable_libnet="yes")
-+
- AC_ARG_WITH(libnet,
-    [  --with-libnet=path      use path to libnet-config script],
-    ,
-@@ -1073,23 +1076,25 @@ dnl ***************************************************************************
- dnl libnet headers/libraries
- dnl ***************************************************************************
- AC_MSG_CHECKING(for LIBNET)
--if test "x$with_libnet" = "x"; then
--        LIBNET_CONFIG="`which libnet-config`"
--else
--        LIBNET_CONFIG="$with_libnet/libnet-config"
--fi
-+if test "x$enable_libnet" = xyes; then
-+    if test "x$with_libnet" = "x"; then
-+            LIBNET_CONFIG="`which libnet-config`"
-+    else
-+            LIBNET_CONFIG="$with_libnet/libnet-config"
-+    fi
-
--if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then
--        LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`"
--        LIBNET_LIBS="`$LIBNET_CONFIG --libs`"
--        AC_MSG_RESULT(yes)
--dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build
--dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till
--        LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE"
-+    if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then
-+            LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`"
-+            LIBNET_LIBS="`$LIBNET_CONFIG --libs`"
-+            AC_MSG_RESULT(yes)
-+    dnl libnet-config does not provide the _DEFAULT_SOURCE define, that can cause warning during build
-+    dnl as upstream libnet-config does uses _DEFAULT_SOURCE this is just a fix till
-+            LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE"
-
--else
--        LIBNET_LIBS=
--        AC_MSG_RESULT(no)
-+    else
-+            LIBNET_LIBS=
-+            AC_MSG_RESULT(no)
-+    fi
- fi
-
-
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +1 -1
index e48e5d5e2..80c509973 100644
@@ -50,7 +50,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,,"
  PACKAGECONFIG[systemd] = "--enable-systemd --with-systemdsystemunitdir=${systemd_unitdir}/system/,--disable-systemd --without-systemdsystemunitdir,systemd,"
  PACKAGECONFIG[linux-caps] = "--enable-linux-caps,--disable-linux-caps,libcap,"
  PACKAGECONFIG[dbi] = "--enable-sql,--disable-sql,libdbi,"
-PACKAGECONFIG[libnet] = "--enable-libnet --with-libnet=${STAGING_BINDIR_CROSS},--disable-libnet,libnet,"
+PACKAGECONFIG[spoof-source] = "--enable-spoof-source --with-libnet=${STAGING_BINDIR_CROSS},--disable-spoof-source,libnet,"
  PACKAGECONFIG[http] = "--enable-http,--disable-http,curl,"
  PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp,"
  PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c,"
meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb +0 -0
index cbd218c95..5d2b7f77e 100644

meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb SRC_URI += "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.t · line 15

Quoted 7 lines
meta-oe/recipes-support/syslog-ng/syslog-ng_3.31.2.bb +0 -1
@@ -10,7 +10,6 @@ SRC_URI += "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.t
             file://syslog-ng-tmp.conf \
             file://syslog-ng.service-the-syslog-ng-service.patch \
             file://0002-scl-fix-wrong-ownership-during-installation.patch \
-           file://0004-configure.ac-add-libnet-enable-option.patch \
             file://0005-.py-s-python-python3-exclude-tests.patch \
             "
  SRC_URI[md5sum] = "69ef4dc5628d5e603e9e4a1b937592f8"

--
# Randy MacLeod
# Wind River Linux