[LU-7534] Fix Lustre build against installed ZFS/SPL DKMS packages Created: 10/Dec/15  Updated: 21/Dec/15  Resolved: 21/Dec/15

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.8.0

Type: Bug Priority: Minor
Reporter: Christopher Morrone Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: llnl, patch

Issue Links:
Related
is related to LU-3953 lustre build system improvments Closed
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The current method to build against DKMS installs of ZFS and SPL
assumes directories like this:

   /var/lib/dkms/spl/${VERSION}/build
   /var/lib/dkms/zfs/${VERSION}/build

Unfortunately, that "build" directory was really just a temporary
step in the DKMS build process. Older versions of DKMS forgot to
clean up that directory, but in RHEL7 at least, DKMS no longer
leaves that around.

Instead we need to look in these places for source code:

  /var/lib/dkms/spl/${VERSION}/source
  /var/lib/dkms/zfs/${VERSION}/source

and in these places for the per-kernel object info:

  /var/lib/dkms/spl/${VERSION}/${LINUXRELEASE}/${target_cpu}
  /var/lib/dkms/zfs/${VERSION}/${LINUXRELEASE}/${target_cpu}

The changes in this patch update the Lustre build system to
look in those corrected directories for DKMS builds of SPL
and ZFS.



 Comments   
Comment by Gerrit Updater [ 10/Dec/15 ]

Christopher J. Morrone (morrone2@llnl.gov) uploaded a new patch: http://review.whamcloud.com/17536
Subject: LU-7534 build: Allow lustre to build against ZFS/SPL DKMS install
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 771001b191261234c90a3e3caf9297e137928637

Comment by Bruno Faccini (Inactive) [ 10/Dec/15 ]

Hello Chris,
I presume you refer to http://linux.dell.com/cgi-bin/cgit.cgi/dkms.git/commit/?id=2ea43f6108558849125cc1d66902d6992ee3fe39 bug+change in DKMS?
Well, looks like this has been hidden since quite a long time due to specifying the real path, using "--with-[zfs,spl]=<path>" configure options, in our own build/DKMS frameworks usage.

Comment by Peter Jones [ 10/Dec/15 ]

Nathaniel

Could you please take care of this patch?

Thanks

Peter

Comment by Christopher Morrone [ 11/Dec/15 ]

I presume you refer to

I didn't bother to look into where they changed the DKMS code, but yes, that does look like the place that it happened.

Comment by Nathaniel Clark [ 17/Dec/15 ]

Patch looks good on it's face. Will be testing build of #17536

Comment by Gerrit Updater [ 21/Dec/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/17536/
Subject: LU-7534 build: Allow lustre to build against ZFS/SPL DKMS install
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: f9602738d023e17e25a004e166e0f41c000d97dc

Generated at Sat Feb 10 02:09:43 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.