Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id F1ED9225CA9 for <~alpine/users@lists.alpinelinux.org>; Wed, 25 Sep 2024 06:53:15 +0000 (UTC) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a90349aa7e5so928157966b.0 for <~alpine/users@lists.alpinelinux.org>; Tue, 24 Sep 2024 23:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727247194; x=1727851994; darn=lists.alpinelinux.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=0zjeLGFnaBsf4RjCLn7MZInuhJUMBSyrvbeU3hFQ8X0=; b=molT56Ijhi+/aWjImkkiRL2vKpwjSlIqrUoQkCSseMU2rPnUU8z8iYfQo2XQE/xEWK rEmgIdQtxTmS+zShPiSygroMEKFDNK8FKzaneChQhLhOgTv0d35yY/87JLc16CVvFgWE fA3LsSQRxqQf+zqEDj6zrn/2DRfZ+BGlZ/1ZoP1+4x0eqAZyZTBmOq1KtjR7kWMq+8Uv y7NbtI7ggIk7fnvO6rE6okKQ+QW7V+tottse5Qyb4PQCuhobl/qGQNVkuuRBBFAfYPUs QYnY+JUq5QwFa0flwIlxvfBD/H7tAeVJiU97A8I6NLFrEDS1+YkF8RMJiea61WAdHd1C z5DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727247194; x=1727851994; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0zjeLGFnaBsf4RjCLn7MZInuhJUMBSyrvbeU3hFQ8X0=; b=fZCvhhKy2Dk1Tqc0vPzBLwNN5fPo90f7ZAZj2qWalhQZfTPB3Rk1EnRHPx0SgV+2re gS5xRvMSUn3jdvTJd8xYFd4kb507IZy9eh8tYgc6dh0vrxkAc1mkPc4GCUxxgXuXs9GJ tIDN6ZgZvWT1Bo+nyBPs6o2zYOEc60aWEK93BgD6Solg5cclWm9NUY/OyMP8LZkhm43C v6LodhSfvQbpa0aOgpBFXk0Ceu8Xh972jkwjEYRdco5rA7qDeBgYtb0W53xkJgZyuwN0 vYyC5fhjV6VvsouGYDtLpt1QCJZn22FJjc3218b2hDAasz2oSh+CFrvbToFun2OZ3uLb JPfQ== X-Gm-Message-State: AOJu0YxLCEge4J0pCWI905Gj2vC4vmk8l+NZHBYZLPK8PZ8lO9Wc8UZv NiHGp85DzZSBU5JTCKYGUaelAsJQGRlKuff+KxWWdohsu7VIJqxqW+ugQatsRC7bwa0SU0O7f59 t4dH0T/lWJlMSkWZQIx7f80FeB/EEjHG7 X-Google-Smtp-Source: AGHT+IEQ2oxXLdzmcxI/k8mxzBpvFVY3CMuQ6W2Fz6lLc4zUvGZ3C+M/A/aRMmBLgAdZCP0pfJxFBMkCQCNRIUNd7+4= X-Received: by 2002:a17:907:2ce5:b0:a8d:2ec3:94f4 with SMTP id a640c23a62f3a-a93a066f942mr154064366b.54.1727247192682; Tue, 24 Sep 2024 23:53:12 -0700 (PDT) MIME-Version: 1.0 From: Steve Woodward Date: Tue, 24 Sep 2024 20:53:01 -1000 Message-ID: Subject: zfs module for linux-edge To: ~alpine/users@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Hello, I have been trying to build a zfs module for the linux-edge kernel. I have hardware that is not supported by linux-lts. I get the following error: make[5]: *** No rule to make target '/home/user/abuild/aports/main /zfs-edge/src/zfs-2.2.6/6.11.0-0-edge/ module/os/linux/spl/spl-atomic.o', needed by '/home/user/abuild/aports/ main/zfs-edge/src/zfs-2.2.6/6.11.0-0-edge/module/spl.o'. Stop. zfs-lts does build successfully. This is the process that I use: abuild-keygen -a -i mkdir abuild cd abuild git clone https://gitlab.alpinelinux.org/alpine/aports cd aports/main/linux-headers vi APKBUILD Edit this line: pkgver=6.11 abuild clean abuild deps abuild fetch abuild checksum abuild doas vi /etc/apk/repositories Add this line: /home/user/packages/main/ doas apk update doas apk add linux-headers cd ../../community/linux-edge abuild deps doas rm -rf /lib/modules/firmware/nvidia doas apk fix abuild fetch abuild cd ../../main cp -av zfs-lts zfs-edge cd zfs-edge vi APKBUILD Edit these lines: _flavor=${FLAVOR:-edge} _kver=6.11.0 Comment out these lines: # for custom kernels set $FLAVOR # case $CARCH in # x86|x86_64|aarch64) _extra_flavors="virt";; # esac Edit this line: local _kapkbuild="$startdir"/../../edge/linux-$_flavor-/APKBUILD abuild deps abuild fetch apk list -I > zfs-edge-apk.list abuild -K 2>&1 | tee zfs-edge-build.log make[5]: *** No rule to make target '/home/user/abuild/aports/main/zfs-edge/src/zfs-2.2.6/6.11.0-0-edge/ module/os/linux/spl/spl-atomic.o', needed by '/home/user/abuild/aports/ main/zfs-edge/src/zfs-2.2.6/6.11.0-0-edge/module/spl.o'. Stop. find src > zfs-edge-src.list cd ../zfs-lts abuild deps apk list -I > zfs-lts-apk.list abuild -K 2>&1 | tee zfs-lts-build.log find src > zfs-lts-src.list zfs-lts builds successfully uname for the running kernel: Linux h1.lan.local 6.11.0-0-edge #1-Alpine SMP PREEMPT_DYNAMIC Tue, 17 Sep 2024 17:36:45 +0000 x86_64 Linux I have posted the build logs for zfs-edge and zfs-lts, lists of installed packages, and lists of files in the src directories to: zfs-edge-apk.list https://pastebin.com/LEkjvrmU zfs-edge-build.log https://pastebin.com/MhSxnr4r zfs-edge-src.list 1/2 https://pastebin.com/BCYv1C69 zfs-edge-src.list 2/2 https://pastebin.com/8VggZt3h zfs-lts-apk.list https://pastebin.com/s1kLrC5H zfs-lts-build.log https://pastebin.com/dhMCEhye zfs-lts-src.list 1/3 https://pastebin.com/2RUkHuny zfs-lts-src.list 2/3 https://pastebin.com/5E5HPcuV zfs-lts-src.list 3/3 https://pastebin.com/XbB4DR8E Thanks