Add zfs recipe
PATCH 1/1 Add zfs recipe
--- .../recipes-filesystems/zfs/zfs_2.1.4.bb | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +54 -0
@@ -0,0 +1,54 @@ + +SUMMARY = "OpenZFS on Linux and FreeBSD" +DESCRIPTION = "OpenZFS on Linux and FreeBSD" +LICENSE = "CDDL-1.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7087caaf1dc8a2856585619f4a787faa" +HOMEPAGE ="https://github.com/openzfs/zfs" + +SRC_URI = "https://github.com/openzfs/zfs/releases/download/${BPN}-${PV}/${BPN}-${PV}.tar.gz" +SRC_URI[sha256sum] = "3b52c0d493f806f638dca87dde809f53861cd318c1ebb0e60daeaa061cf1acf6" + +# Using both 'module' and 'autotools' classes seems a bit odd, they both +# define a do_compile function. +# That's why we opt for module-base, also this prevents module splitting. +inherit module-base pkgconfig autotools + +DEPENDS = "virtual/kernel zlib util-linux libtirpc openssl" + +PACKAGECONFIG[pam] = "--enable-pam --with-pamconfigsdir=${datadir}/pam-configs --with-pammoduledir=${libdir}/security, --disable-pam" + +EXTRA_OECONF:append = " \ + --disable-pyzfs \ + --with-linux=${STAGING_KERNEL_DIR} --with-linux-obj=${STAGING_KERNEL_BUILDDIR} \ + --with-mounthelperdir=${base_sbin} \ + --with-udevdir=${base_libdir}/udev \ + --enable-systemd \ + --disable-sysvinit \ + --without-dracutdir \ + " + +EXTRA_OEMAKE:append = " \ + INSTALL_MOD_PATH=${D}${root_prefix} \ + " + +do_install:append() { + # /usr/share/zfs contains the zfs-tests folder which we do not need: + rm -rf ${D}${datadir}/zfs + + rm -rf ${D}${datadir}/initramfs-tools +} + +FILES:${PN} += "\ + ${base_sbindir}/* \ + ${base_libdir}/* \ + ${sysconfdir}/* \ + ${sbindir}/* \ + ${bindir}/* \ + ${libexecdir}/${BPN}/* \ + ${libdir}/* \ + " + +FILES:${PN}-dev += "\ + ${prefix}/src/zfs-${PV}/* \ + ${prefix}/src/spl-${PV}/* \ + "
Signature · 1 line
2.25.1
I think it needs a dep on curl see
https://errors.yoctoproject.org/Errors/Details/656276/
Quoted 79 lines · Windel Bouwman
Signed-off-by Windel Bouwman <[email protected]>--- .../recipes-filesystems/zfs/zfs_2.1.4.bb | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bbmeta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +54
-1@@ -0,0 +1,54 @@ + +SUMMARY = "OpenZFS on Linux and FreeBSD" +DESCRIPTION = "OpenZFS on Linux and FreeBSD" +LICENSE = "CDDL-1.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7087caaf1dc8a2856585619f4a787faa" +HOMEPAGE ="https://github.com/openzfs/zfs" + +SRC_URI = "https://github.com/openzfs/zfs/releases/download/${BPN}-${PV}/${BPN}-${PV}.tar.gz" +SRC_URI[sha256sum] = "3b52c0d493f806f638dca87dde809f53861cd318c1ebb0e60daeaa061cf1acf6" + +# Using both 'module' and 'autotools' classes seems a bit odd, they both +# define a do_compile function. +# That's why we opt for module-base, also this prevents module splitting. +inherit module-base pkgconfig autotools + +DEPENDS = "virtual/kernel zlib util-linux libtirpc openssl" + +PACKAGECONFIG[pam] = "--enable-pam --with-pamconfigsdir=${datadir}/pam-configs --with-pammoduledir=${libdir}/security, --disable-pam" + +EXTRA_OECONF:append = " \ + --disable-pyzfs \ + --with-linux=${STAGING_KERNEL_DIR} --with-linux-obj=${STAGING_KERNEL_BUILDDIR} \ + --with-mounthelperdir=${base_sbin} \ + --with-udevdir=${base_libdir}/udev \ + --enable-systemd \ + --disable-sysvinit \ + --without-dracutdir \ + " + +EXTRA_OEMAKE:append = " \ + INSTALL_MOD_PATH=${D}${root_prefix} \ + " + +do_install:append() { + # /usr/share/zfs contains the zfs-tests folder which we do not need: + rm -rf ${D}${datadir}/zfs + + rm -rf ${D}${datadir}/initramfs-tools +} + +FILES:${PN} += "\ + ${base_sbindir}/* \ + ${base_libdir}/* \ + ${sysconfdir}/* \ + ${sbindir}/* \ + ${bindir}/* \ + ${libexecdir}/${BPN}/* \ + ${libdir}/* \ + " + +FILES:${PN}-dev += "\ + ${prefix}/src/zfs-${PV}/* \ + ${prefix}/src/spl-${PV}/* \ + " --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#96960): https://lists.openembedded.org/g/openembedded-devel/message/96960
Mute This Topic: https://lists.openembedded.org/mt/90833225/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
That's curious, but I guess you are right. I will add a depend on libcurl. On my system, it was not required, and it compiles without libcurl as well.
Quoted 97 lines · Khem Raj
I think it needs a dep on curl see
https://errors.yoctoproject.org/Errors/Details/656276/
Quoted 6 lines · Windel Bouwman
Signed-off-by Windel Bouwman <[email protected]>--- .../recipes-filesystems/zfs/zfs_2.1.4.bb | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb
Review
Quoted 2 lines
(quoted diff) +0
-0b/meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb line 8
Quoted 13 lines
new file mode 100644
index 000000000..ebe2ec39dmeta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +8
-0@@ -0,0 +1,54 @@ + +SUMMARY = "OpenZFS on Linux and FreeBSD" +DESCRIPTION = "OpenZFS on Linux and FreeBSD" +LICENSE = "CDDL-1.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=7087caaf1dc8a2856585619f4a787faa" +HOMEPAGE ="https://github.com/openzfs/zfs" + +SRC_URI = "https://github.com/openzfs/zfs/releases/download/${BPN}-${PV}/${BPN}-${PV}.tar.gz
"meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb line 9
Quoted 1 line
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +1
-0+SRC_URI[sha256sum] ="
3b52c0d493f806f638dca87dde809f53861cd318c1ebb0e60daeaa061cf1acf6"meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb
Quoted 4 lines
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +4
-0+ +# Using both 'module' and 'autotools' classes seems a bit odd, they both +# define a do_compile function. +# That's why we opt for module-base, also this prevents modulesplitting.
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb
Quoted 5 lines
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +5
-0+inherit module-base pkgconfig autotools + +DEPENDS = "virtual/kernel zlib util-linux libtirpc openssl" + +PACKAGECONFIG[pam] = "--enable-pam--with-pamconfigsdir=${datadir}/pam-configs --with-pammoduledir=${libdir}/security, --disable-pam"
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb
Quoted 4 lines
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +4
-0+ +EXTRA_OECONF:append = " \ + --disable-pyzfs \ + --with-linux=${STAGING_KERNEL_DIR}--with-linux-obj=${STAGING_KERNEL_BUILDDIR} \
Quoted 36 lines
meta-filesystems/recipes-filesystems/zfs/zfs_2.1.4.bb new file +32
-1+ --with-mounthelperdir=${base_sbin} \ + --with-udevdir=${base_libdir}/udev \ + --enable-systemd \ + --disable-sysvinit \ + --without-dracutdir \ + " + +EXTRA_OEMAKE:append = " \ + INSTALL_MOD_PATH=${D}${root_prefix} \ + " + +do_install:append() { + # /usr/share/zfs contains the zfs-tests folder which we do not need: + rm -rf ${D}${datadir}/zfs + + rm -rf ${D}${datadir}/initramfs-tools +} + +FILES:${PN} += "\ + ${base_sbindir}/* \ + ${base_libdir}/* \ + ${sysconfdir}/* \ + ${sbindir}/* \ + ${bindir}/* \ + ${libexecdir}/${BPN}/* \ + ${libdir}/* \ + " + +FILES:${PN}-dev += "\ + ${prefix}/src/zfs-${PV}/* \ + ${prefix}/src/spl-${PV}/* \ + " --2.25.1
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#96960):https://lists.openembedded.org/g/openembedded-devel/message/96960
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/90833225/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-