1

I have problems fetching MariaDB. Because I don't need this package I'm trying to remove it. First, I tried to understand what include it:

$ grep -nrw ../layers/ -e mariadb
Binary file ../layers/meta-openembedded/.git/index matches
../layers/meta-openembedded/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb:99:    leveldb libdbi mariadb mariadb-native \

Looking into packagegroup-meta-oe.bb I found:

RDEPENDS_packagegroup-meta-oe-dbs ="\
    leveldb libdbi mariadb mariadb-native \
    mysql-python postgresql psqlodbc rocksdb soci \
    sqlite \
    ${@bb.utils.contains("DISTRO_FEATURES", "bluez4", "mongodb", "", d)} \
    "

hence I tried to remove packagegroup-meta-oe-dbs in my <image>.bb:

IMAGE_INSTALL_remove = "packagegroup-meta-oe-dbs"

But it still insists to build it. Where is my fault?

Mark
  • 4,338
  • 7
  • 58
  • 120

1 Answers1

1

Since packagegroup-meta-oe-dbs is a runtime dependency of packagegroup-meta-oe-dbs, you cannot remove it without removing packagegroup-meta-oe-dbs.

What you need to do is create bbappend for packagegroup-meta-oe-dbs, and add the following line to it:

RDEPENDS_packagegroup-meta-oe-dbs_remove = "mariadb"
Oleksandr Kravchuk
  • 5,963
  • 1
  • 20
  • 31
  • You could also add the line to local.conf instead of creating a new bbappend file. RDEPENDS_packagegroup-meta-oe-dbs_remove = "mariadb" – evk1206 Dec 21 '21 at 08:41