Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Comments

Install header during post-build rather than post-install.#399

Closed
tomprince wants to merge 1 commit intoopenzfs:masterfrom
ClusterHQ:fix-dkms-header-install
Closed

Install header during post-build rather than post-install.#399
tomprince wants to merge 1 commit intoopenzfs:masterfrom
ClusterHQ:fix-dkms-header-install

Conversation

@tomprince
Copy link
Contributor

New versions of dkms clean up the build directory after installing.

It appears that this was always intended, but had rm -rf "/path/to/build/*" (note the quotes), which prevented it from working.

Also, the build step is already installing stuff into the directory where these files go, so installing our stuff there as part of build rather than install makes sense.

New versions of dkms clean up the build directory after installing.
@tomprince tomprince force-pushed the fix-dkms-header-install branch from dace803 to f5b713e Compare October 9, 2014 17:48
@ryao
Copy link
Contributor

ryao commented Oct 9, 2014

@behlendorf I have tested this in a fresh Fedora 20 VM and I am confident that this fix is correct. Feel free to add your pick of my Reviewed-by:/Signed-off-by: from either my @gentoo.org or work email addresses.

In particular, this changes the build system to move the autotools products and headers from /var/lib/dkms/spl/0.6.3/build to /var/lib/dkms/spl/0.6.3/3.16.3-200.fc20.x86_64/x86_64 right before the clean is done. That places them outside of harms way on the current Fedora Core 20 and avoids a problem entirely. Note that I am using actual paths rather than ones with variables to provide more context on what is being done.

@behlendorf behlendorf closed this in de2a22f Oct 9, 2014
behlendorf pushed a commit that referenced this pull request Oct 9, 2014
New versions of dkms clean up the build directory after installing.

It appears that this was always intended, but had rm -rf "/path/to/build/*"
(note the quotes), which prevented it from working.

Also, the build step is already installing stuff into the directory where
these files go, so installing our stuff there as part of build rather than
install makes sense.

Signed-off-by: Tom Prince <tom.prince@clusterhq.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #399
ryao pushed a commit to ryao/spl that referenced this pull request Nov 29, 2014
New versions of dkms clean up the build directory after installing.

It appears that this was always intended, but had rm -rf "/path/to/build/*"
(note the quotes), which prevented it from working.

Also, the build step is already installing stuff into the directory where
these files go, so installing our stuff there as part of build rather than
install makes sense.

Signed-off-by: Tom Prince <tom.prince@clusterhq.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#399
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants