Wind River Support Network

HomeDefectsLIN8-3298
Fixed

LIN8-3298 : impossible to remove net-snmp-server package from target with smart/rpm

Created: Apr 18, 2016    Updated: Dec 3, 2018
Resolved Date: Apr 20, 2016
Found In Version: 8.0.0.4
Fix Version: 8.0.0.5
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

The net-snmp-server package is a meta-package requiring net-snmp-server-snmpd and net-snmp-server-snmptrapd package. The net-snmp-server-snmpd
package provides the startup scripts not the meta net-snmp-server package.  

Workaround

From 2b2e382d91765b5c63270572af1b1bb438754abf Mon Sep 17 00:00:00 2001
Message-Id: <2b2e382d91765b5c63270572af1b1bb438754abf.1460991723.git.anders.wallin@windriver.com>
From: Anders Wallin <anders.wallin@windriver.com>
Date: Mon, 18 Apr 2016 17:01:53 +0200
Subject: [PATCH 1/1] net-snmp: initscripts are located in net-snmp-server-snmp
 package

Signed-off-by: Anders Wallin <anders.wallin@windriver.com>
---
 .../recipes-networking/net-snmp/net-snmp_5.7.3.bb                   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/layers/meta-wr-rcs-custom/recipes-networking/net-snmp/net-snmp_5.7.3.bb b/layers/meta-wr-rcs-custom/recipes-networking/net-snmp/net-snmp_5.7.3.bb
index 232e018..7b45296 100644
--- a/layers/meta-wr-rcs-custom/recipes-networking/net-snmp/net-snmp_5.7.3.bb
+++ b/layers/meta-wr-rcs-custom/recipes-networking/net-snmp/net-snmp_5.7.3.bb
@@ -139,9 +139,9 @@ FILES_${PN}-dev += "${bindir}/mib2c ${bindir}/mib2c-update"
 CONFFILES_${PN}-server-snmpd = "${sysconfdir}/snmp/snmpd.conf"
 CONFFILES_${PN}-server-snmptrapd = "${sysconfdir}/snmp/snmptrapd.conf"
 
-INITSCRIPT_PACKAGES = "${PN}-server"
-INITSCRIPT_NAME_${PN}-server = "snmpd"
-INITSCRIPT_PARAMS_${PN}-server = "start 90 2 3 4 5 . stop 60 0 1 6 ."
+INITSCRIPT_PACKAGES = "${PN}-server-snmpd"
+INITSCRIPT_NAME_${PN}-server-snmpd = "snmpd"
+INITSCRIPT_PARAMS_${PN}-server-snmpd = "start 90 2 3 4 5 . stop 60 0 1 6 ."
 
 EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemd', '--without-systemd', d)}"
 
-- 
2.8.1

Steps to Reproduce

rpm -e net-snmp-server

Other Downloads


Live chat
Online