libosinfo: add runtime dependency osinfo-db
PATCH 1/1 libosinfo: add runtime dependency osinfo-db
From: Kai Kang <[email protected]>
osinfo-db is required by libosinfo to list os info. So add the recipes osinfo-db and its dependency osinfo-db-tools-native. Then add osinfo-db to RDEPENDS of libosinfo.
Signed-off-by Kai Kang <[email protected]>
--- .../libosinfo/libosinfo_1.11.0.bb | 2 +- .../0001-Make-xmlError-structs-constant.patch | 56 +++++++++++++++++++ .../libosinfo/osinfo-db-tools_1.11.0.bb | 18 ++++++ .../libosinfo/osinfo-db_20240701.bb | 21 +++++++ 4 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-support/libosinfo/osinfo-db-tools/0001-Make-xmlError-structs-constant.patch create mode 100644 meta-oe/recipes-support/libosinfo/osinfo-db-tools_1.11.0.bb create mode 100644 meta-oe/recipes-support/libosinfo/osinfo-db_20240701.bb
meta-oe/recipes-support/libosinfo/libosinfo_1.11.0.bb +1 -1
@@ -32,4 +32,4 @@ EXTRA_OEMESON += " \ -Dwith-usb-ids-path=${datadir}/hwdata/usb.ids \ " -RDEPENDS:${PN} = "hwdata" +RDEPENDS:${PN} = "hwdata osinfo-db"
meta-oe/recipes-support/libosinfo/osinfo-db-tools/0001-Make-xmlError-structs-constant.patch new file +56 -0
56 lines not on this page · raw message
meta-oe/recipes-support/libosinfo/osinfo-db-tools_1.11.0.bb new file +18 -0
@@ -0,0 +1,18 @@ +SUMMARY = "Tools for managing the libosinfo database files" +HOMEPAGE = "https://libosinfo.org" + +LICENSE = "GPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" + +DEPENDS = "glib-2.0 json-glib libarchive libsoup-2.4" + +SRC_URI = "git://gitlab.com/libosinfo/osinfo-db-tools.git;branch=main;protocol=https \ + file://0001-Make-xmlError-structs-constant.patch \ + " +SRCREV = "85a1788c6977419b6facad11dbfbf823e739eb3b" + +S = "${WORKDIR}/git" + +inherit meson pkgconfig + +BBCLASSEXTEND = "native"
meta-oe/recipes-support/libosinfo/osinfo-db_20240701.bb new file +21 -0
@@ -0,0 +1,21 @@ +SUMMARY = "osinfo-db provides the database files for use with the libosinfo library" +HOMEPAGE = "https://libosinfo.org" + +LICENSE = "GPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" + +DEPENDS = "osinfo-db-tools-native" + +SRC_URI = "git://gitlab.com/libosinfo/osinfo-db.git;branch=main;protocol=https" + +SRCREV = "cde78484ab747c87532d47cf3f09b76f280c0b74" + +S = "${WORKDIR}/git" + +inherit allarch autotools-brokensep + +EXTRA_OEMAKE = "OSINFO_DB_TARGET='--dir ${datadir}/osinfo'" + +do_configure[noexec] = "1" + +FILES:${PN} = "${datadir}/osinfo"
Signature · 1 line
2.34.1