-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Accept user specified spl and kernel source dir. #1874
Conversation
Simple is good, and we have had multiple requests for this functionality. So many in fact that it was already added by commit 389cf73. You can set spl path when building the rpms by defining Do you need to specifify the kernel and the spl? Because if it's just the spl we should use the existing infrastructure and add it in RPM_DEFINE_KMOD which is part of - RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
+ RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spl $(SPL)" --define "require_splobj $(SPLOBJ)"' |
Does this work if I do (without the kernel or spl installed):
Last I tried (a week or so ago), it did NOT! As soon as the package started building, it would fail because it can't find either the kernel or the spl directory (hardcoded to /lib/modules/
That's what my patch is/was supposed to fix. The above transcript comes from an absolutly clean clone just now... |
Please also note the following:
There is no |
I'll revisit this when I address the other packaging issues |
@behlendorf I've rewritten the patch to use the same technic that we used for another of my pull requests.... |
Thanks. I like this a lot better. Let me verify it doesn't accidentally break something and I'll merge it. |
@FransUrbo Thanks for helping me push this one over the finish line. It's been merged to master and will be in the next tag. |
… dracut... Accept kernel source dir(s) specified by ./configure This adds ability to set the location of the kernel via defines when building from the spec files. This is useful when building against a kernel installed in a non-standard location. Signed-off-by: Turbo Fredriksson <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#1874
There are two common locations where udev and dracut components are commonly installed. When building packages using the 'make rpm|deb' targets check those common locations and pass them to rpmbuild. For non-standard configurations these values can be provided by the the following configure options: --with-udevdir=DIR install udev helpers [default=check] --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]] --with-dracutdir=DIR install dracut helpers [default=check] When rebuilding using the source packages the per-distribution default values specified in the spec file will be used. This is the preferred way to build packages for a distribution but the ability to override the defaults is provided as a convenience. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#1874
There are two common locations where udev and dracut components are commonly installed. When building packages using the 'make rpm|deb' targets check those common locations and pass them to rpmbuild. For non-standard configurations these values can be provided by the the following configure options: --with-udevdir=DIR install udev helpers [default=check] --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]] --with-dracutdir=DIR install dracut helpers [default=check] When rebuilding using the source packages the per-distribution default values specified in the spec file will be used. This is the preferred way to build packages for a distribution but the ability to override the defaults is provided as a convenience. Signed-off-by: Brian Behlendorf <[email protected]> Issue openzfs#1874
I've issued this patch several times, but this time I'd make it a simple one, not a combination of many fixes.
Having '/usr/src/spl-VERSION' hardcoded (and almost the only choice) is a BAD THING (tm). This patch will accept the values issues with a previous './configure --with-spl=... --with-spl-obj=...' and generate propper zfs-kmod.spec file that is usable without any softlinks or installs of spl before hand.