-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bookworm container upgrade for lldp, net-snmp #18150
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c028a96
bookworm container upgrade for lldp
mohan-selvaraj cdc6491
Fix for build hooks debian permission error
Kalimuthu-Velappan 486e018
Changes for building community master in broadcom LSF servers-Jan'24
Kalimuthu-Velappan bd3032a
Changes for building community master in broadcom LSF servers
Kalimuthu-Velappan 8ac21a4
bookworm container upgrade for net-snmp
mohan-selvaraj 1c93393
bookworm container upgrade for net-snmp
mohan-selvaraj cb6b78a
Merge branch 'lldp_bkwm' of github.com:mohan-selvaraj/sonic-buildimag…
mohan-selvaraj 0dcf92a
Merge branch 'lldp_bkwm' of github.com:mohan-selvaraj/sonic-buildimag…
mohan-selvaraj 4c22c94
Merge branch 'lldp_bkwm' of github.com:mohan-selvaraj/sonic-buildimag…
mohan-selvaraj eee618a
Merge branch 'lldp_bkwm' of github.com:mohan-selvaraj/sonic-buildimag…
mohan-selvaraj c0f193c
Merge branch 'lldp_bkwm' of github.com:mohan-selvaraj/sonic-buildimag…
mohan-selvaraj 1c7ef70
bookworm container upgrade for lldp, net-snmp
mohan-selvaraj 5b3195e
Merge branch 'lldp_bkwm' of github.com:mohan-selvaraj/sonic-buildimag…
mohan-selvaraj a6a135f
bookworm container upgrade for lldp, net-snmp
mohan-selvaraj 786843d
bookworm container upgrade for lldp, net-snmp
mohan-selvaraj 16ff1a9
bookworm container upgrade for lldp, net-snmp
mohan-selvaraj 82a79ae
Merge branch 'sonic-net:master' into lldp_bkwm
mohan-selvaraj a167f06
update supervisord.conf file to use correct stdout and stderr flags
mohan-selvaraj 35b3a91
Merge branch 'sonic-net:master' into lldp_bkwm
mohan-selvaraj 3ee040f
Merge branch 'sonic-net:master' into lldp_bkwm
mohan-selvaraj 1e4942e
Add patch 0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.p…
mohan-selvaraj e137b62
Merge branch 'master' into lldp_bkwm
mohan-selvaraj f2d05dd
Merge branch 'lldp_bkwm' of github.com:mohan-selvaraj/sonic-buildimag…
mohan-selvaraj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <pavelsh@microsoft.com> | ||
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 <qiluo-msft@users.noreply.github.com> | ||
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 <bvanassche@acm.org> | ||
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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see
0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.patch
,0009-Makefile.in-agent-Makefile.in-Fix-parallel-compilati.patch
,0010-Makefile.in-Make-sure-that-sedscript-is-built-before.patch
,0011-agent-Makefile.in-Build-the-MIB-module-code-once.patch
, and0012-agent-Makefile.in-Unbreak-the-enable-minimalist-buil.patch
were dropped. But it doesn't seem like the changes in those patches are in 5.9.3. Is there a reason these patches were dropped?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you confirm if the code in the dropped patches aren't present in the 5.9.3 codebase.
I had an earlier comment on which patches were required and which can be ignored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.patch
is needed,0008-Enable-macro-DEB_BUILD_ARCH_OS-in-order-to-build-ipv.patch
can be optionally dropped (since that logic is now coming frominclude /usr/share/dpkg/architecture.mk
indebian/rules
),0012-agent-Makefile.in-Unbreak-the-enable-minimalist-buil.patch
is needed. The others are correct.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saiarcot895
As I understand, the only reason why we build snmp packages (libsnmp-base, snmptrapd, snmp, snmpd, libsnmp40, libsnmp-dev, libsnmp-perl, tkmib) from source is
0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.patch
. Maybe it's possible to find another solution without modifyng source code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Based on what's in sonic-net/sonic-snmpagent#22, there might not be any changes needed at all. For now, I prefer to let this get merged in, and then look at removing the snmp build (either in time for 202405 release or after the branch cutoff).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saiarcot895
We should remove
0001-SNMP-Stop-spamming-logs-with-statfs-permission-denie.patch
fsys_mntctl.c
is for AIX: https://github.com/net-snmp/net-snmp/blob/59acd6e6fcfccfd3456ec8a65816ca76036e142f/agent/mibgroup/hardware/fsys.h#L2Original bug in
fsys_mntent.c
has been already fixed in upstream: bvanassche/net-snmp@5f1986c