Skip to contentSkip to conversation

file /etc/ethertypes conflicts between netbase-1:6.2-r0.corei7_64 and ebtables-2.0.10+4-r4.corei7_64

PATCH In review Outback Dingo 3 participants 6 messages Dec 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 file /etc/ethertypes conflicts between netbase-1:6.2-r0.corei7_64 and ebtables-2.0.10+4-r4.corei7_64

---
 meta/recipes-core/netbase/netbase_6.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/netbase/netbase_6.2.bb +0 -1
index a54d2e7764..262b2cf1bc 100644
@@ -19,5 +19,4 @@ do_install () {
 	install -m 0644 ${S}/etc/rpc ${D}${sysconfdir}/rpc
 	install -m 0644 ${S}/etc/protocols ${D}${sysconfdir}/protocols
 	install -m 0644 ${S}/etc/services ${D}${sysconfdir}/services
-	install -m 0644 ${S}/etc/ethertypes ${D}${sysconfdir}/ethertypes
 }
Signature · 1 line
2.20.1
#1 lore raw

Sorry, but you need to explain why the file from from ebtables (an optional package from a 3rd party layer) takes precedence over file from netbase (which is a core item).

Alex

Quoted 22 lines · Outback Dingo
---
 meta/recipes-core/netbase/netbase_6.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/netbase/netbase_6.2.bb +0 -2
index a54d2e7764..262b2cf1bc 100644
@@ -19,5 +19,4 @@ do_install () {
        install -m 0644 ${S}/etc/rpc ${D}${sysconfdir}/rpc
        install -m 0644 ${S}/etc/protocols ${D}${sysconfdir}/protocols
        install -m 0644 ${S}/etc/services ${D}${sysconfdir}/services
-       install -m 0644 ${S}/etc/ethertypes ${D}${sysconfdir}/ethertypes
 }
--

2.20.1

#2 lore raw

I agree. Netbase is the required for all installs. ebtables is only used in some installs.

So unless ebtables has a more up-to-date version of the file, it seems like the bug is that ebtables needs to either remove the file or sync to the netbase version.

(You won't get a conflict if both files are identical, md5sum/shasum)

--Mark

Quoted 35 lines · Alexander Kanavin

Sorry, but you need to explain why the file from from ebtables (an optional package from a 3rd party layer) takes precedence over file from netbase (which is a core item).

Alex

On Mon, 14 Dec 2020 at 11:33, Outback Dingo <[email protected] <mailto:[email protected]>> wrote:

    ---
     meta/recipes-core/netbase/netbase_6.2.bb <http://netbase_6.2.bb> | 1 -
     1 file changed, 1 deletion(-)

    diff --git a/meta/recipes-core/netbase/netbase_6.2.bb
    <http://netbase_6.2.bb> b/meta/recipes-core/netbase/netbase_6.2.bb
    <http://netbase_6.2.bb>
    index a54d2e7764..262b2cf1bc 100644
    --- a/meta/recipes-core/netbase/netbase_6.2.bb <http://netbase_6.2.bb>
    +++ b/meta/recipes-core/netbase/netbase_6.2.bb <http://netbase_6.2.bb>
    @@ -19,5 +19,4 @@ do_install () {
            install -m 0644 ${S}/etc/rpc ${D}${sysconfdir}/rpc
            install -m 0644 ${S}/etc/protocols ${D}${sysconfdir}/protocols
            install -m 0644 ${S}/etc/services ${D}${sysconfdir}/services
    -       install -m 0644 ${S}/etc/ethertypes ${D}${sysconfdir}/ethertypes
     }
    -- 
    2.20.1
#3 lore raw
In reply to Alexander Kanavin
Quoted 2 lines · Alexander Kanavin

Sorry, but you need to explain why the file from from ebtables (an optional package from a 3rd party layer) takes precedence over file from netbase (which is a core item).

I happened to run across it using poky and it was suggested i send a patch, the fact it conflicts with an optional package, well i guess Ill have to look at both, might just be that
it should come out of ebtables, either way i hit it due to the recent change commit in netbase_6.2.bb telling me it was not previously there until you actually added that line this month!

git show ba069a5a3dae374744f68a57ab9e7869167beb2b

-SRC_URI = "${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}~bpo10+1.tar.xz" -S = "${WORKDIR}/${BPN}-${PV}~bpo10+1"
+SRC_URI = "${DEBIAN_MIRROR}/main/n/${BPN}/${BPN}_${PV}.tar.xz"

-SRC_URI[md5sum] = "4fa7517285b4045ac0dc8dbf6730dd7a" -SRC_URI[sha256sum] = "4e9c3082dff8896cb6b6bea9bb2200d82fb0d7c8d8c8fc9b18704fe553316237" +inherit allarch
+
+SRC_URI[sha256sum] = "309a24146a06347d654b261e9e07a82fab844b173674a42e223803dd8258541e"

UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/n/netbase/"
-do_install () {

- install -d ${D}/${mandir}/man8 ${D}${sysconfdir}
+do_install () {
+ install -d ${D}${sysconfdir}

        install -m 0644 ${S}/etc/rpc ${D}${sysconfdir}/rpc
        install -m 0644 ${S}/etc/protocols ${D}${sysconfdir}/protocols
        install -m 0644 ${S}/etc/services ${D}${sysconfdir}/services

+ install -m 0644 ${S}/etc/ethertypes ${D}${sysconfdir}/ethertypes
}

Quoted 25 lines

Alex

Quoted 21 lines · Outback Dingo
---
 meta/recipes-core/netbase/netbase_6.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/netbase/netbase_6.2.bb +0 -2
index a54d2e7764..262b2cf1bc 100644
@@ -19,5 +19,4 @@ do_install () {
        install -m 0644 ${S}/etc/rpc ${D}${sysconfdir}/rpc
        install -m 0644 ${S}/etc/protocols ${D}${sysconfdir}/protocols
        install -m 0644 ${S}/etc/services ${D}${sysconfdir}/services
-       install -m 0644 ${S}/etc/ethertypes ${D}${sysconfdir}/ethertypes
 }
--

2.20.1

#4 lore raw
In reply to Alexander Kanavin
Quoted 2 lines · Alexander Kanavin

Sorry, but you need to explain why the file from from ebtables (an optional package from a 3rd party layer) takes precedence over file from netbase (which is a core item).

further to the previous note, it conflicts with ebtables in meta-oe from what i can tell

commit c71a08cea8477f69ee3bc511f1f14d99e09c0a49

Author: Paul Eggleton <[email protected]>
Date:   Mon Dec 3 15:30:40 2012 +0000

ebtables: add from OE-Classic, update and tidy up

* Update to 2.0.10-4
* Handle hardcoded paths in initscript
* Add LIC_FILES_CHKSUM
* Set SUMMARY (which sets DESCRIPTION)
* Drop PRIORITY
* Minor formatting/ordering tweaks

Based on a patch by Vladimir Redzhepoff <[email protected]>

Quoted 25 lines

Alex

Quoted 21 lines · Outback Dingo
---
 meta/recipes-core/netbase/netbase_6.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/netbase/netbase_6.2.bb +0 -2
index a54d2e7764..262b2cf1bc 100644
@@ -19,5 +19,4 @@ do_install () {
        install -m 0644 ${S}/etc/rpc ${D}${sysconfdir}/rpc
        install -m 0644 ${S}/etc/protocols ${D}${sysconfdir}/protocols
        install -m 0644 ${S}/etc/services ${D}${sysconfdir}/services
-       install -m 0644 ${S}/etc/ethertypes ${D}${sysconfdir}/ethertypes
 }
--

2.20.1

#5 lore raw

The version in netbase is the correct one.

For a comparison, see the followng for the netbase version:

https://salsa.debian.org/md/netbase/-/blob/master/etc/ethertypes

and see the following for the ebtables version:

http://git.netfilter.org/ebtables/tree/ethertypes?h=ebtables-2.0.10-4

So the correct fix for this would be to remove ethertypes from the ebtables recipe in meta-oe.

Additionally, it looks like there is a MUCH newer version of ebtables. (2.0.10 was released 6 year ago, while 2.0.11 was released about 1 year ago.)

(Even 2.0.11 has an older version of the ethertypes file then what netbase has.)

--Mark

Quoted 55 lines · Outback Dingo
Quoted 2 lines · Alexander Kanavin

Sorry, but you need to explain why the file from from ebtables (an optional package from a 3rd party layer) takes precedence over file from netbase (which is a core item).

further to the previous note, it conflicts with ebtables in meta-oe from what i can tell

commit c71a08cea8477f69ee3bc511f1f14d99e09c0a49

Author: Paul Eggleton <[email protected]>
Date:   Mon Dec 3 15:30:40 2012 +0000

ebtables: add from OE-Classic, update and tidy up

* Update to 2.0.10-4
* Handle hardcoded paths in initscript
* Add LIC_FILES_CHKSUM
* Set SUMMARY (which sets DESCRIPTION)
* Drop PRIORITY
* Minor formatting/ordering tweaks

Based on a patch by Vladimir Redzhepoff <[email protected]>

Quoted 29 lines

Alex

Quoted 25 lines · Outback Dingo
---
 meta/recipes-core/netbase/netbase_6.2.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-core/netbase/netbase_6.2.bb +0 -2
index a54d2e7764..262b2cf1bc 100644
@@ -19,5 +19,4 @@ do_install () {
        install -m 0644 ${S}/etc/rpc ${D}${sysconfdir}/rpc
        install -m 0644 ${S}/etc/protocols ${D}${sysconfdir}/protocols
        install -m 0644 ${S}/etc/services ${D}${sysconfdir}/services
-       install -m 0644 ${S}/etc/ethertypes ${D}${sysconfdir}/ethertypes
 }
--

2.20.1