Hi there,
I was curious lack of support of ZFS in LibreElec (is there any reason for that?) so i want to build my own.
Three days and still nothing.
Here is my package.md
PKG_NAME="zfs"
PKG_VERSION="2.3.0"
PKG_SHA256="6e8787eab55f24c6b9c317f3fe9b0da9a665eb34c31df88ff368d9a92e9356a6"
PKG_URL="https://github.com/openzfs/zfs/releases/download/zfs-$%7BPKG_VERSION%7D/zfs-$%7BPKG_VERSION%7D.tar.gz"
PKG_DEPENDS_TARGET="toolchain linux"
PKG_DESCRIPTION="ZFS filesystem support"
PKG_TOOLCHAIN="autotools"
pre_configure_target() {
cd $PKG_BUILD
if [ ! -f ./configure ]; then
echo "configure script missing after autoreconf!"
exit 1
fi
}
configure_target() {
cd $PKG_BUILD
./configure --host=$TARGET_NAME --prefix=/usr \
--with-linux=$LINUX_DIR \
--with-linux-obj=$LINUX_DIR \
--disable-dependency-tracking
# --disable-code-coverage
}
make_target() {
make
}
makeinstall_target() {
make install DESTDIR=$INSTALL
}
Which gives me error
Display More
config.status: creating module/Makefile
config.status: creating rpm/generic/zfs-dkms.spec
config.status: creating rpm/generic/zfs-kmod.spec
config.status: creating rpm/generic/zfs.spec
config.status: creating rpm/redhat/zfs-dkms.spec
config.status: creating rpm/redhat/zfs-kmod.spec
config.status: creating rpm/redhat/zfs.spec
config.status: creating tests/zfs-tests/tests/Makefile
config.status: creating zfs.release
config.status: creating zfs_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
make[1]: Entering directory '/home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/b
uild/zfs-2.3.0'
Makefile:14040: *** missing separator. Stop.
make[1]: Leaving directory '/home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/bu
ild/zfs-2.3.0'
FAILURE: scripts/build zfs:target during make_target (package.mk)
*********** FAILED COMMAND ***********
make
**************************************
*********** FAILED COMMAND ***********
${SCRIPTS}/build "${1}" "${PARENT_PKG}"
**************************************
FAILURE: scripts/install zfs:target has failed!
The following log for this failure is available:
/home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/.threads/logs/188.log
>>> zfs:target seq 188 >>>
[303/314] [FAIL] install zfs:target
The following log for this failure is available:
/home/work/SOFT/Linux/libreElec/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/.threads/logs/188.log
Parallel build failure - see log for details. Time of failure: Tue Feb 25 22:26:12 CST 2025
make: *** [Makefile:10: image] Error 1
In the zfs Makefile the line 14430 is
@CODE_COVERAGE_RULES@
I tried to disable --disable-dependency-tracking
But still it did not work as you see.
Any ideas?
Cheers,