Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build zfs-linux 2.2.7 #93

Closed
funboytwo opened this issue Dec 12, 2024 · 3 comments
Closed

Unable to build zfs-linux 2.2.7 #93

funboytwo opened this issue Dec 12, 2024 · 3 comments

Comments

@funboytwo
Copy link

With the latest openzfs release 2.2.7, my zfs-linux build keeps failing during the stage "./build.sh std make" which creates the zfs-linux package and I suspect ccm is the cause.

Here is the relevant log:

$ sudo ccm64 s
----> Attempting to build package...
==> Synchronizing chroot copy [/home/buildbot/zfs/root] -> [buildbot]...done
:: Synchronizing package databases...
 core is up to date
 extra                                                7.6 MiB  15.2 MiB/s 00:00 [#############################################] 100%
:: Starting full system upgrade...
 there is nothing to do
==> Making package: zfs-linux 2.2.7_6.12.4.arch1.1-1 (Fri Dec 13 03:48:02 2024)
==> Retrieving sources...
  -> Found zfs-2.2.7.tar.gz
==> Validating source files with sha256sums...
    zfs-2.2.7.tar.gz ... Passed
==> Making package: zfs-linux 2.2.7_6.12.4.arch1.1-1 (Thu Dec 12 22:18:06 2024)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: zfs-utils=2.2.7
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> zfs-utils=2.2.7
  -> linux=6.12.4.arch1-1
==> Checking buildtime dependencies...
==> Installing missing dependencies...
...
==> ERROR: Could not resolve all dependencies.
==> ERROR: Build failed, check /home/buildbot/zfs/buildbot/build

This occurs despite zfs-utils being present in the repo:

$ sudo ccm64 l
==> Listing out packages in buildroot repo...
total 77M
-rw-r--r-- 1 buildbot users  30M Dec 13 03:42 zfs-utils-2.2.7-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 buildbot users 8.6M Dec 13 03:42 zfs-utils-debug-2.2.7-1-x86_64.pkg.tar.zst

I'm unsure of how to debug further and help would be much appreciated, TIA!

@graysky2
Copy link
Owner

graysky2 commented Dec 13, 2024

I get no errors after first building zfs-utils then patching the PKGBUILD for the kernel. What version of ccm are you using (just run ccm an dlook at the first line)? Make sure you are using the latest.

diff --git a/PKGBUILD b/PKGBUILD
index d33f9f7dc761..17a87f457ca6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,9 +17,9 @@
 #
 pkgbase="zfs-linux"
 pkgname=("zfs-linux" "zfs-linux-headers")
-_zfsver="2.2.6"
-_kernelver="6.10.10.arch1-1"
-_kernelver_full="6.10.10.arch1-1"
+_zfsver="2.2.7"
+_kernelver="6.12.4.arch1-1"
+_kernelver_full="6.12.4.arch1-1"
 _extramodules="${_kernelver_full/.arch/-arch}"
 
 pkgver="${_zfsver}_$(echo ${_kernelver} | sed s/-/./g)"
@@ -28,7 +28,7 @@ makedepends=("linux-headers=${_kernelver}")
 arch=("x86_64")
 url="https://openzfs.org/"
 source=("https://github.com/openzfs/zfs/releases/download/zfs-${_zfsver}/zfs-${_zfsver}.tar.gz")
-sha256sums=("c92e02103ac5dd77bf01d7209eabdca55c7b3356aa747bb2357ec4222652a2a7")
+sha256sums=('b2b8e3bfabf2a6407a0132243726cb6762547a5bd095b1b1f37eaf2a9d8f7672')
 license=("CDDL")
 depends=("kmod" "zfs-utils=${_zfsver}" "linux=${_kernelver}")

@funboytwo
Copy link
Author

Hey graysky2 thanks for checking it out! I did a diff with a much older buildbot that I hadn't updated in a long while and discovered that the chroot pacman.conf doesn't add the [chroot_local] repo because I had removed [core-testing] for a custom repo of mine. After returning pacman.conf to its original form I nuked the build folder and it built without issue!

@graysky2
Copy link
Owner

enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants