Skip to contentSkip to conversation

net-snmp-native: dependency with libpci

PATCH Superseded Christos Gavros 2 participants 5 messages Jan 25, 2025 – Jan 28, 2025 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 net-snmp-native: dependency with libpci

Building of net-snmp-native aborted due to missing dependency with libpci-native. Fixed by changing the name to 'libpciaccess' which is recipe's name

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +1 -1
index 06decbe852..cde1c1dfe8 100644
@@ -268,7 +268,7 @@ RDEPENDS:${PN}-server-snmpd += "net-snmp-mibs"
 RDEPENDS:${PN}-server-snmptrapd += "net-snmp-server-snmpd ${PN}-lib-trapd"
 RDEPENDS:${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd"
 RDEPENDS:${PN}-client += "net-snmp-mibs net-snmp-libs"
-RDEPENDS:${PN}-libs += "libpci \
+RDEPENDS:${PN}-libs += "libpciaccess \
                         ${PN}-lib-netsnmp \
                         ${PN}-lib-agent \
                         ${PN}-lib-helpers \
Signature · 1 line
2.34.1
#2 lore raw

if its a build time issue then shouldn't it be added to DEPENDS ?

Quoted 36 lines · Christos Gavros via lists.openembedded.org

Building of net-snmp-native aborted due to
missing dependency with libpci-native.
Fixed by changing the name to 'libpciaccess'
which is recipe's name

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +1 -2
index 06decbe852..cde1c1dfe8 100644
@@ -268,7 +268,7 @@ RDEPENDS:${PN}-server-snmpd += "net-snmp-mibs"
 RDEPENDS:${PN}-server-snmptrapd += "net-snmp-server-snmpd ${PN}-lib-trapd"
 RDEPENDS:${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd"
 RDEPENDS:${PN}-client += "net-snmp-mibs net-snmp-libs"
-RDEPENDS:${PN}-libs += "libpci \
+RDEPENDS:${PN}-libs += "libpciaccess \
                         ${PN}-lib-netsnmp \
                         ${PN}-lib-agent \
                         ${PN}-lib-helpers \
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#115077): https://lists.openembedded.org/g/openembedded-devel/message/115077
Mute This Topic: https://lists.openembedded.org/mt/110805858/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 17 lines · Khem Raj

if its a build time issue then shouldn't it be added to DEPENDS ?

Quoted 11 lines · Christos Gavros via lists.openembedded.org

Building of net-snmp-native aborted due to
missing dependency with libpci-native.
Fixed by changing the name to 'libpciaccess'
which is recipe's name

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 10 lines

meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb RDEPENDS:${PN}-server-snmpd += "net-snmp-mibs" · line 271

Quoted 10 lines
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +1 -1
index 06decbe852..cde1c1dfe8 100644
@@ -268,7 +268,7 @@ RDEPENDS:${PN}-server-snmpd += "net-snmp-mibs"
 RDEPENDS:${PN}-server-snmptrapd += "net-snmp-server-snmpd ${PN}-lib-trapd"
 RDEPENDS:${PN}-server += "net-snmp-server-snmpd net-snmp-server-snmptrapd"
 RDEPENDS:${PN}-client += "net-snmp-mibs net-snmp-libs"
-RDEPENDS:${PN}-libs += "libpci \
+RDEPENDS:${PN}-libs += "libpciaccess \

looking further, libpci is a package built by pciutils recipe and its added to DEPENDS here but only
for target recipe. if we know this is not needed for native version then we should mark the rdepends
for target too. So remove it from RDEPENDS:${PN}-libs and Add something like this

RDEPENDS:append:${PN}-libs:class-target = " libpci"

Quoted 15 lines
Quoted 15 lines
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +0 -1
                         ${PN}-lib-netsnmp \
                         ${PN}-lib-agent \
                         ${PN}-lib-helpers \
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#115077): https://lists.openembedded.org/g/openembedded-devel/message/115077
Mute This Topic: https://lists.openembedded.org/mt/110805858/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

hi

I made the change you suggested and test it (bitbake net-snap-native) locally. The building is successful. Give me some time to discuss it with 'CC' fellows for my understanding  and I will submit a v2 during the week.

Thank you
Christos

#5 lore raw

hi Raj,

i have made some further investigation with the support of Yoann Congal about this issue.
It seems that 'net-snmp-native' started breaking after the following patch which includes changes in native.bbclass to handle recipes/packages with suffix:
https://git.yoctoproject.org/poky/commit/?id=d26c72b7dccaf4802914dafcc95911f4d166086d

Before patch -> RDEPENDS: net-snmp-native-libs = libpci-native net-snmp-lib-netsnmp-native ..... After patch ->    RDEPENDS: net-snmp-libs-native = libpci-native net-snmp-lib-netsnmp-native .....

It looks that the issue was already there but after the patch it is exposed.

I have tested the changes you proposed locally and build successfully 'net-snmp' and 'net-snmp-native'. I will prepare the v2 and send it unless you want me to test something more..

Br
Christos