Skip to contentSkip to conversation

libisofs: add new recipe

PATCH New [email protected] 1 participant 4 messages May 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 libisofs: add new recipe

From: Ross Burton <[email protected]>

libisofs from the libburnia project is a library to construct ISO-9660 filesystems.

---
 .../recipes-filesystems/burnia/libisofs_1.5.4.bb  | 15 +++++++++++++++
 .../packagegroup-meta-filesystems.bb              |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 meta-filesystems/recipes-filesystems/burnia/libisofs_1.5.4.bb
meta-filesystems/recipes-filesystems/burnia/libisofs_1.5.4.bb new file +15 -0
new file mode 100644
index 0000000000..1754db7f70
@@ -0,0 +1,15 @@
+SUMMARY = "library to create an ISO-9660 filesystem"
+HOMEPAGE = "https://libburnia-project.org/"
+
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
+                    file://COPYRIGHT;md5=1c1e5a960562d65f6449bb1d21e1dffc"
+
+SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz"
+SRC_URI[sha256sum] = "aaa0ed80a7501979316f505b0b017f29cba0ea5463b751143bad2c360215a88e"
+
+DEPENDS = "acl zlib"
+
+inherit autotools
+
+BBCLASSEXTEND = "native"
meta-filesystems/recipes-filesystems/packageconfigs/packagegroup-meta-filesystems.bb +1 -0
index 1954b5979c..6c34b87fe1 100644
@@ -18,6 +18,7 @@ RDEPENDS:packagegroup-meta-filesystems = "\
 
 RDEPENDS:packagegroup-meta-filesystems = "\
     ifuse \
+    libisofs \
     logfsprogs \
     fuse-exfat \
     owfs \
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/4 libburn: move to meta-filesystems

From: Ross Burton <[email protected]>

This recipe is very much in the remit of meta-filesystems, so move the recipe and update it. It ships a cdrecord wrapper so inherit lib_package, and the license is GPLv2 or later not GPLv2 only, for example:

https://dev.lovelyhq.com/libburnia/libburn/src/branch/master/libburn/source.c

---
 .../recipes-filesystems/burnia/libburn_1.5.4.bb     | 13 +++++++++++++
 .../packageconfigs/packagegroup-meta-filesystems.bb |  1 +
 .../packagegroups/packagegroup-meta-oe.bb           |  1 -
 meta-oe/recipes-multimedia/libburn/libburn_1.5.4.bb | 11 -----------
 4 files changed, 14 insertions(+), 12 deletions(-)
 create mode 100644 meta-filesystems/recipes-filesystems/burnia/libburn_1.5.4.bb
 delete mode 100644 meta-oe/recipes-multimedia/libburn/libburn_1.5.4.bb
meta-filesystems/recipes-filesystems/burnia/libburn_1.5.4.bb new file +13 -0
new file mode 100644
index 0000000000..4f8c183f59
@@ -0,0 +1,13 @@
+SUMMARY = "library to write an ISO-9660 file system to physical media"
+HOMEPAGE = "https://libburnia-project.org/"
+
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
+                    file://COPYRIGHT;md5=a91b9b862895b64e68e5b321873c9111"
+
+SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz"
+SRC_URI[sha256sum] = "525059d10759c5cb8148eebc863bb510e311c663603da7bd2d21c46b7cf63b54"
+
+inherit autotools pkgconfig lib_package
+
+BBCLASSEXTEND = "native"
meta-filesystems/recipes-filesystems/packageconfigs/packagegroup-meta-filesystems.bb +1 -0
index 6c34b87fe1..c4e0a39e6b 100644
@@ -19,6 +19,7 @@ RDEPENDS:packagegroup-meta-filesystems = "\
 RDEPENDS:packagegroup-meta-filesystems = "\
     ifuse \
     libisofs \
+    libburn \
     logfsprogs \
     fuse-exfat \
     owfs \
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +0 -1
index 318872512e..4dcee089dc 100644
@@ -667,7 +667,6 @@ RDEPENDS:packagegroup-meta-oe-multimedia ="\
     jack-server \
     jack-utils \
     libass \
-    libburn \
     libcdio-paranoia \
     libcdio \
     ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "libmad", "", d)} \
meta-oe/recipes-multimedia/libburn/libburn_1.5.4.bb deleted +0 -11
deleted file mode 100644
index 99eda69643..0000000000
@@ -1,11 +0,0 @@
-SUMMARY = "Library for reading, mastering and writing optical discs"
-HOMEPAGE = "http://libburnia-project.org/"
-
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88"
-
-SRC_URI = "http://files.libburnia-project.org/releases/${BPN}-${PV}.tar.gz"
-SRC_URI[md5sum] = "454d03ce31addb5b7dca62d213c9660e"
-SRC_URI[sha256sum] = "525059d10759c5cb8148eebc863bb510e311c663603da7bd2d21c46b7cf63b54"
-
-inherit autotools pkgconfig
Signature · 1 line
2.34.1
#2 lore raw

PATCH 3/4 libisoburn: add new recipe

In reply to [email protected]

From: Ross Burton <[email protected]>

libisoburn is the library and command-line tool (xorriso) that can construct ISO-9660 images and write them to physical media.

---
 .../burnia/libisoburn_1.5.4.bb                | 27 +++++++++++++++++++
 .../packagegroup-meta-filesystems.bb          |  1 +
 2 files changed, 28 insertions(+)
 create mode 100644 meta-filesystems/recipes-filesystems/burnia/libisoburn_1.5.4.bb
meta-filesystems/recipes-filesystems/burnia/libisoburn_1.5.4.bb new file +27 -0
new file mode 100644
index 0000000000..f263b51350
@@ -0,0 +1,27 @@
+SUMMARY = "library and tool to create and burn ISO-9660 images"
+HOMEPAGE = "https://libburnia-project.org/"
+
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
+                    file://COPYRIGHT;md5=43cfe25a7e4a65f722d6253fa0649bb1"
+
+SRC_URI = "http://files.libburnia-project.org/releases/libisoburn-${PV}.tar.gz"
+SRC_URI[sha256sum] = "2d89846d43880f17fa591c53b3bea42ffb803628e4e630c680fc2c9184f79132"
+
+DEPENDS = "libisofs libburn"
+# This replaces the xorriso recipe
+PROVIDES += "xorriso"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--enable-pkg-check-modules"
+
+do_install:append() {
+    # This is a proof-of-concept UI using Tk, don't ship it
+    rm -f ${D}${bindir}/xorriso-tcltk
+}
+
+PACKAGE_BEFORE_PN = "xorriso"
+FILES:xorriso = "${bindir}"
+
+BBCLASSEXTEND = "native"
meta-filesystems/recipes-filesystems/packageconfigs/packagegroup-meta-filesystems.bb +1 -0
index c4e0a39e6b..361972a45b 100644
@@ -20,6 +20,7 @@ RDEPENDS:packagegroup-meta-filesystems = "\
     ifuse \
     libisofs \
     libburn \
+    libisoburn \
     logfsprogs \
     fuse-exfat \
     owfs \
Signature · 1 line
2.34.1
#3 lore raw

PATCH 4/4 xorriso: remove obsolete recipe

In reply to [email protected]

From: Ross Burton <[email protected]>

GNU xorriso is simply a bundling of libisofs+libburn+libisoburn which also "restricts itself to a technical form where the legal commitments of the libburnia project and the legal intentions of FSF match completely".[1] What this actually means is unclear.

We can follow upstream faster and have more modular recipes by packaging the pieces directly, instead of building the development snapshot of GNU xorriso 1.5.5.

---
 .../recipes-utils/xorriso/xorriso_1.5.5.bb    | 29 -------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 meta-filesystems/recipes-utils/xorriso/xorriso_1.5.5.bb
meta-filesystems/recipes-utils/xorriso/xorriso_1.5.5.bb deleted +0 -29
deleted file mode 100644
index a83950db82..0000000000
@@ -1,29 +0,0 @@
-DESCRIPTION = "xorriso copies file objects from POSIX compliant filesystems \
-into Rock Ridge enhanced ISO 9660 filesystems and allows session-wise \
-manipulation of such filesystems"
-
-LICENSE = "GPL-3.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
-
-SRC_URI = "http://www.gnu.org/software/${BPN}/${BPN}-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "a5e3dc4e0b92be6837f9ed6cbf7f9df5"
-SRC_URI[sha256sum] = "91663d61bee61ff790b3f6861fdf57c54af0e238ab14f297b55bae8ab5d17684"
-
-PACKAGECONFIG ??= "acl attr zlib bzip2 readline"
-PACKAGECONFIG[acl] = "--enable-libacl,--disable-libacl,acl,"
-PACKAGECONFIG[attr] = "--enable-xattr,--disable-xattr,attr,"
-PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib,"
-PACKAGECONFIG[bzip2] = "--enable-libbz2,--disable-libbz2,bzip2,"
-PACKAGECONFIG[readline] = "--enable-libreadline,--disable-libreadline,readline,"
-
-inherit autotools-brokensep pkgconfig features_check
-
-do_configure:prepend () {
-    touch NEWS
-}
-
-RDEPENDS:${PN} = "tk"
-REQUIRED_DISTRO_FEATURES = "x11"
-
-BBCLASSEXTEND = "native"
Signature · 1 line
2.34.1