Files
buildroot/package
José Luis Salvador Rufo 29e2700bda package/zfs: fix zfs autotools cross-compilation
This commit addresses a long-standing bug encountered during ZFS
compilation in cross-platform environments. The issue arises because ZFS
autoconf triggers a `make modules` to detect if the kernel can compile
modules [1]. The problem occurs when autoconf uses the host environment
instead of the cross-platform environment.

To fix this, we export necessary environment variables to ensure that ZFS
autoconf utilizes the cross-platform environment correctly.

This patch resolves ZFS cross-platform compilations:
- http://autobuild.buildroot.net/results/ebeab256101bcba38c35fd55075c414e62f92caa/
- http://autobuild.buildroot.net/results/03b9f12a106bf100eec695a92b83bf09b22c68b0/
- http://autobuild.buildroot.net/results/c2da90337463607c2fadfeac7ad72e5c3899a61f/
- http://autobuild.buildroot.net/results/465a249f92d2f5db7ac4b61b4111e6cbaaa15688/
- http://autobuild.buildroot.net/results/7e2d3277e26fa5b0c8073a0e8b9e82f47ade9697/
- http://autobuild.buildroot.net/results/a8fb87336b09fef8787a7889dfcccf14fe1215b9/
- https://gitlab.com/kubu93/buildroot/-/jobs/1522848483

And fix a few emails:
- alpine.DEB.2.22.394.2108181630280.2028262@ridzo [build zfs into buildroot for raspberry pi 4]
- https://lists.buildroot.org/pipermail/buildroot/2021-August/621696.html
- https://lists.buildroot.org/pipermail/buildroot/2021-August/621345.html
- https://lists.buildroot.org/pipermail/buildroot/2022-July/646379.html
- https://lists.buildroot.org/pipermail/buildroot/2023-June/668467.html

[1] This is the full callback, you can just check the last link:
- https://github.com/openzfs/zfs/blob/zfs-2.1.12/config/kernel-declare-event-class.m4#L7C11-L7C11
- https://github.com/openzfs/zfs/blob/zfs-2.1.12/config/kernel.m4#L883
- https://github.com/openzfs/zfs/blob/zfs-2.1.12/config/kernel.m4#L868
- https://github.com/openzfs/zfs/blob/zfs-2.1.12/config/kernel.m4#L668

Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 7fe685c510578435b8b7c0448478e71a3db4d9e4)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-11-30 09:16:49 +01:00
..
2023-08-09 00:12:34 +02:00
2023-09-26 07:48:10 +02:00
2023-11-08 08:21:39 +01:00
2023-07-29 10:57:42 +02:00
2023-08-09 00:12:35 +02:00
2023-09-06 21:20:13 +02:00
2023-10-13 17:18:33 +02:00
2023-09-26 00:36:59 +02:00
2023-07-30 22:43:12 +02:00
2023-08-24 20:53:24 +02:00
2023-10-26 18:33:01 +02:00
2023-09-02 19:09:25 +02:00
2023-11-08 13:27:31 +01:00
2023-08-08 09:40:32 +02:00
2023-09-26 07:48:10 +02:00
2023-09-24 20:00:59 +02:00
2023-09-26 07:48:10 +02:00
2023-09-26 07:48:10 +02:00
2023-11-08 08:00:12 +01:00
2023-07-27 23:15:16 +02:00
2023-07-28 00:06:07 +02:00
2023-07-30 14:52:02 +02:00
2023-08-01 22:47:12 +02:00
2023-09-26 07:48:10 +02:00
2023-08-09 23:03:53 +02:00
2023-10-30 13:41:27 +01:00
2023-10-01 20:41:04 +02:00
2023-09-26 07:48:10 +02:00
2023-10-15 20:23:15 +02:00
2023-10-12 18:41:08 +02:00
2023-07-30 23:22:50 +02:00
2023-09-25 09:33:45 +02:00
2023-10-30 23:01:06 +01:00
2023-07-28 22:11:29 +02:00
2023-11-08 13:27:31 +01:00
2023-10-15 20:22:50 +02:00
2023-07-31 16:48:58 +02:00
2023-09-17 08:40:59 +02:00
2023-10-15 20:24:29 +02:00
2023-07-28 22:43:50 +02:00
2023-10-13 17:15:24 +02:00
2023-07-31 23:15:23 +02:00
2023-09-25 15:53:24 +02:00
2023-07-25 23:09:07 +02:00
2023-09-26 07:48:10 +02:00
2023-10-01 20:24:25 +02:00
2023-09-26 07:48:10 +02:00
2023-07-30 14:40:46 +02:00
2023-09-26 07:48:10 +02:00
2023-08-09 00:12:42 +02:00
2023-09-24 20:00:08 +02:00
2023-09-02 19:09:25 +02:00
2023-08-01 23:04:05 +02:00