From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] patches/net-snmp-5.9.5.2: Fix broken net-snmp linking with new libtool.
Date: Sat, 21 Nov 2026 17:45:09 +0100 [thread overview]
Message-ID: <20261121164509.1729811-1-christian.melki@t2data.com> (raw)
Add new patch when regenerating makefiles with libtool 2.6.2+.
This will probably be fixed in the upcoming revisions so it most likely
should be removed soon.
Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
...le.in-Fix-missing-library-dependency.patch | 25 +++++++++++++++++++
patches/net-snmp-5.9.5.2/series | 3 ++-
2 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 patches/net-snmp-5.9.5.2/0002-apps-Makefile.in-Fix-missing-library-dependency.patch
diff --git a/patches/net-snmp-5.9.5.2/0002-apps-Makefile.in-Fix-missing-library-dependency.patch b/patches/net-snmp-5.9.5.2/0002-apps-Makefile.in-Fix-missing-library-dependency.patch
new file mode 100644
index 000000000..8fcb38545
--- /dev/null
+++ b/patches/net-snmp-5.9.5.2/0002-apps-Makefile.in-Fix-missing-library-dependency.patch
@@ -0,0 +1,25 @@
+From: Christian Melki <christian.melki@t2data.com>
+Date: Sat, 21 Nov 2026 15:34:05 +0100
+Subject: [PATCH] apps/Makefile.in: Fix missing library dependency.
+
+Exposed by a libtool upgrade. Old libtool and linking must have
+silently ignored this.
+
+Signed-off-by: Christian Melki <christian.melki@t2data.com>
+---
+ apps/Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/apps/Makefile.in b/apps/Makefile.in
+index 57b8524a90d2..8966dbaf217a 100644
+--- a/apps/Makefile.in
++++ b/apps/Makefile.in
+@@ -235,7 +235,7 @@ snmppcap$(EXEEXT): snmppcap.$(OSUFFIX) $(USEAGENTLIBS)
+ $(LINK) ${CFLAGS} -o $@ snmppcap.$(OSUFFIX) ${LDFLAGS} ${USEAGENTLIBS} ${LIBS} -lpcap
+
+ libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION): $(LLIBTRAPD_OBJS)
+- $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(MYSQL_LIBS) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS)
++ $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(USEAGENTLIBS) $(MYSQL_LIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS)
+ $(RANLIB) $@
+
+ snmpinforminstall:
diff --git a/patches/net-snmp-5.9.5.2/series b/patches/net-snmp-5.9.5.2/series
index 50f3e9b73..81ae3aa76 100644
--- a/patches/net-snmp-5.9.5.2/series
+++ b/patches/net-snmp-5.9.5.2/series
@@ -1,4 +1,5 @@
# generated by git-ptx-patches
#tag:base --start-number 1
0001-Don-t-disable-udp-and-tcp-when-disable-agentx-dom-so.patch
-# b1db2da68fc49d98e70f533e3bf34909 - git-ptx-patches magic
+0002-apps-Makefile.in-Fix-missing-library-dependency.patch
+# f22ad19dff4a2f4af24a0bd76f6588c3 - git-ptx-patches magic
--
2.43.0
reply other threads:[~2026-11-21 16:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261121164509.1729811-1-christian.melki@t2data.com \
--to=christian.melki@t2data.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox