Hi Steinar,

Steinar H. Gunderson wrote:
> I intend to NMU for this bug and a few other bugs that I'd really like to see
> fixed before stretch. I've uploaded to DELAYED/7-day; let me know if you'd
> like anything changed. I've attached my own git diff on top of Steven's diff
> (which is on top of latest pkg-net-snmp git).

Many thanks for this.  But I found some issues when testing:

Commit deed97cc in pkg-net-snmp Git, changed debian/snmpd.postinst
SNMP_USER from "snmp" to "Debian-snmp".  I think a corresponding change
is missing from debian/snmpd.default as it fails to start snmpd with:

    Starting SNMP services::Bad user id: snmp

Also, `dpkg-buildpackage -S` fails in an already-built tree, because the
files below are generated during the build, and debian/rules clean does
not remove them:

  * pkg-net-snmp/dist/generation-scripts/gen-variables
  * pkg-net-snmp/perl/SNMP/t/snmptest.cmd
  * pkg-net-snmp/perl/TrapReceiver/const-c.inc
  * pkg-net-snmp/perl/TrapReceiver/const-xs.inc

I've attached a diff against your NMU to fix both of these things.
After that, the client and server both work nicely for me, IPv6 too.

Thanks again,
Regards,
-- 
Steven Chamberlain
[email protected]
diff --git a/debian/rules b/debian/rules
index d1da11e..d2e7ece 100755
--- a/debian/rules
+++ b/debian/rules
@@ -62,7 +64,11 @@ override_dh_clean:
 	dh_clean
 	rm -rf `find . -name .libs` \
 	       python/build         \
-	       python/netsnmp_python.egg-info
+	       python/netsnmp_python.egg-info \
+	       dist/generation-scripts/gen-variables \
+	       perl/SNMP/t/snmptest.cmd \
+	       perl/TrapReceiver/const-c.inc \
+	       perl/TrapReceiver/const-xs.inc
 
 override_dh_strip:
 	dh_strip -plibsnmp$(LIB_VERSION) --dbg-package=libsnmp$(LIB_VERSION)-dbg
diff --git a/debian/snmpd.default b/debian/snmpd.default
index e47dec8..f4ee7a7 100644
--- a/debian/snmpd.default
+++ b/debian/snmpd.default
@@ -8,4 +8,4 @@
 SNMPDRUN=yes
 
 # snmpd options (use syslog, close stdin/out/err).
-SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'
+SNMPDOPTS='-Lsd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

Attachment: signature.asc
Description: Digital signature

Reply via email to