-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bookworm container upgrade for lldp, net-snmp (#18150)
* bookworm container upgrade for lldp, net-snmp * Add patch 0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.patch Co-authored-by: Kalimuthu Velappan <[email protected]>
- Loading branch information
1 parent
e95994f
commit df499b6
Showing
12 changed files
with
153 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/snmpd/patch-5.9.3+dfsg/0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 8bb8849524aba2124be3279a5197ad5fbfe166b2 Mon Sep 17 00:00:00 2001 | ||
From: pavel-shirshov <[email protected]> | ||
Date: Mon, 27 Aug 2018 16:50:16 +0800 | ||
Subject: [PATCH] [SNMP] Stop spamming logs with statfs permission denied log | ||
|
||
--- | ||
agent/mibgroup/hardware/fsys/fsys_mntctl.c | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/agent/mibgroup/hardware/fsys/fsys_mntctl.c b/agent/mibgroup/hardware/fsys/fsys_mntctl.c | ||
index 782c8ed..7819fe4 100644 | ||
--- a/agent/mibgroup/hardware/fsys/fsys_mntctl.c | ||
+++ b/agent/mibgroup/hardware/fsys/fsys_mntctl.c | ||
@@ -167,8 +167,6 @@ netsnmp_fsys_arch_load( void ) | ||
continue; | ||
|
||
if ( statfs( entry->path, &stat_buf ) < 0 ) { | ||
- snprintf( tmpbuf, sizeof(tmpbuf), "Cannot statfs %s", entry->path ); | ||
- snmp_log_perror( tmpbuf ); | ||
continue; | ||
} | ||
entry->units = stat_buf.f_bsize; | ||
-- | ||
2.18.0 | ||
|
25 changes: 25 additions & 0 deletions
25
src/snmpd/patch-5.9.3+dfsg/0008-Enable-macro-DEB_BUILD_ARCH_OS-in-order-to-build-ipv.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From bd7d6d79217da6b5a2eb3a3ee1d409c175a61e41 Mon Sep 17 00:00:00 2001 | ||
From: Qi Luo <[email protected]> | ||
Date: Fri, 20 Sep 2019 00:42:19 +0000 | ||
Subject: [PATCH] Enable macro DEB_BUILD_ARCH_OS in order to build ipv6 feature | ||
|
||
--- | ||
debian/rules | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/debian/rules b/debian/rules | ||
index 34d8509..496be59 100755 | ||
--- a/debian/rules | ||
+++ b/debian/rules | ||
@@ -4,6 +4,8 @@ | ||
export DEB_BUILD_MAINT_OPTIONS := hardening=+all | ||
include /usr/share/dpkg/architecture.mk | ||
include /usr/share/dpkg/buildtools.mk | ||
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) | ||
+DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) | ||
|
||
LIB_VERSION = 40 | ||
|
||
-- | ||
2.18.0 | ||
|
30 changes: 30 additions & 0 deletions
30
src/snmpd/patch-5.9.3+dfsg/0012-agent-Makefile.in-Unbreak-the-enable-minimalist-buil.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 0d3e33ff197d1d15c0036b69cca5198e54781efe Mon Sep 17 00:00:00 2001 | ||
From: Bart Van Assche <[email protected]> | ||
Date: Sun, 24 Jul 2022 16:45:05 -0700 | ||
Subject: [PATCH] agent/Makefile.in: Unbreak the --enable-minimalist build | ||
|
||
Build the features rules in the mibgroup directory before building the | ||
features rules in the helpers directory. | ||
|
||
Fixes: 51128ad09507 ("agent/Makefile.in: Build the MIB module code once") | ||
Fixes: https://github.com/net-snmp/net-snmp/issues/438 | ||
--- | ||
agent/Makefile.in | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/agent/Makefile.in b/agent/Makefile.in | ||
index 047d880..44f8818 100644 | ||
--- a/agent/Makefile.in | ||
+++ b/agent/Makefile.in | ||
@@ -16,7 +16,7 @@ mysubdir=agent | ||
# what to install | ||
# | ||
SUBDIRS=helpers | ||
-FTSUBDIRS=helpers | ||
+FTSUBDIRS=mibgroup helpers | ||
|
||
INSTALLSBINPROGS= @SNMPD@ | ||
INSTALLLIBS = libnetsnmpagent.$(LIB_EXTENSION)$(LIB_VERSION) | ||
-- | ||
2.18.0 | ||
|
18 changes: 18 additions & 0 deletions
18
src/snmpd/patch-5.9.3+dfsg/0013-enable-parallel-build-for-net-snmp.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/debian/rules b/debian/rules | ||
index 496be59..939e1a4 100755 | ||
--- a/debian/rules | ||
+++ b/debian/rules | ||
@@ -37,10 +37,6 @@ endif | ||
%: | ||
dh $@ | ||
|
||
-# The net-snmp Makefiles cannot handle parallel builds | ||
-override_dh_auto_build: | ||
- dh_auto_build --no-parallel | ||
- | ||
override_dh_auto_configure: | ||
dh_auto_configure -- --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man \ | ||
--with-persistent-directory=/var/lib/snmp \ | ||
-- | ||
2.18.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/debian/rules b/debian/rules | ||
index 939e1a4..efd323e 100755 | ||
--- a/debian/rules | ||
+++ b/debian/rules | ||
@@ -7,6 +7,12 @@ include /usr/share/dpkg/buildtools.mk | ||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) | ||
DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS) | ||
|
||
+DEB_BUILD_MULTIARCH ?= $(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) | ||
+ | ||
+ifneq ($(DEB_BUILD_MULTIARCH),$(DEB_HOST_MULTIARCH)) | ||
+export PERL5OPT := -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config | ||
+endif | ||
+ | ||
LIB_VERSION = 40 | ||
|
||
MIB_MODULES = smux ucd-snmp/dlmod mibII/mta_sendmail disman/event-mib | ||
-- | ||
2.18.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.patch | ||
0008-Enable-macro-DEB_BUILD_ARCH_OS-in-order-to-build-ipv.patch | ||
0012-agent-Makefile.in-Unbreak-the-enable-minimalist-buil.patch | ||
0013-enable-parallel-build-for-net-snmp.patch | ||
cross-compile-changes.patch |