[LU-10569] Include proper Lustre header files in lustre-dev_*.deb Created: 26/Jan/18  Updated: 15/May/18  Resolved: 26/Mar/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.11.0, Lustre 2.10.4

Type: Task Priority: Minor
Reporter: Thomas Stibor Assignee: James A Simmons
Resolution: Fixed Votes: 0
Labels: build, ubuntu
Environment:

Debian 9


Issue Links:
Related
is related to LU-10558 bad lnetctl in Ubuntu builds Resolved
is related to LU-10575 No mdsrate on Ubuntu client Resolved
Epic/Theme: patch
Rank (Obsolete): 9223372036854775807

 Description   

Command

make debs


packages the following Lustre header files and static libraries in package lustre-dev_*.deb

 >dpkg -c ./lustre-dev_2.10.57-45_amd64.deb
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/include/
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/include/lustre/
 -rw-r--r-- root/root 1259 2018-01-25 10:49 ./usr/include/lustre/liblustreapi.h
 -rw-r--r-- root/root 1671 2018-01-25 10:49 ./usr/include/lustre/ll_fiemap.h
 -rw-r--r-- root/root 1401 2018-01-25 10:49 ./usr/include/lustre/lustre_barrier_user.h
 -rw-r--r-- root/root 1383 2018-01-25 10:49 ./usr/include/lustre/lustre_lfsck_user.h
 -rw-r--r-- root/root 1506 2018-01-25 10:49 ./usr/include/lustre/lustre_user.h
 -rw-r--r-- root/root 32903 2018-01-25 10:49 ./usr/include/lustre/lustreapi.h
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/lib/
 -rw-r--r-- root/root 620748 2018-01-25 10:49 ./usr/lib/liblnetconfig.a
 -rw-r--r-- root/root 1046052 2018-01-25 10:49 ./usr/lib/liblustreapi.a
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/share/
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/share/doc/
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/share/doc/lustre-dev/
 -rw-r--r-- root/root 1110 2018-01-25 10:13 ./usr/share/doc/lustre-dev/changelog.Debian.gz
 -rw-r--r-- root/root 82239 2018-01-25 10:13 ./usr/share/doc/lustre-dev/changelog.gz
 drwxr-xr-x root/root 0 2018-01-25 10:49 ./usr/share/doc/lustre-dev/contrib/
 -rw-r--r-- root/root 19172 2018-01-25 10:13 ./usr/share/doc/lustre-dev/copyright
 

For building Lustre userland executables relying on <lustre/lustreapi.h> such
as HSM copytools additional header files are required. For example:

/usr/include/lustre/lustreapi.h:43:38: fatal error: linux/lustre/lustre_user.h: No such file or directory
 #include <linux/lustre/lustre_user.h>

So one needs to add the required and proper header files in the lustre-dev_*.deb package.



 Comments   
Comment by James A Simmons [ 26/Jan/18 ]

This is tricky. For debian were do Debain UAPI headrs go? In lustre-client-* with the modules and make lustre-dev dependent on lustre-client-* instead? Or do we place the UAPI headers in lustre-dev? I will need to ask Ian King about this.

Comment by James A Simmons [ 19/Feb/18 ]

This will overlap the LU-10558 work. This is the last issue I'm attempting to resolve. Currently lustre make debs doesn't place UAPI headers into the package.

Comment by Gerrit Updater [ 20/Feb/18 ]

James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/31348
Subject: LU-10569 build: properly package lustre for Debian/Ubuntu
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d9d38c35f6c89d7a800f4c1d303038727ab98518

Comment by James A Simmons [ 05/Mar/18 ]

Minh for some reason Ubuntu can not initialize for one ldiskfs setup. It works for all other conditions. Can you look into it?

Comment by James A Simmons [ 08/Mar/18 ]

Now that things are packaged correctly maloo fails due to Ubunut specific issues outside of this ticket. Should I just submit as trivial now for the Test-Parameters?

Comment by Gerrit Updater [ 26/Mar/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31348/
Subject: LU-10569 build: properly package lustre for Debian/Ubuntu
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 020277f596168ed80d77ab50ef6a85a6e6e54d0a

Comment by Peter Jones [ 26/Mar/18 ]

Landed for 2.11

Comment by Gerrit Updater [ 03/May/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/32277
Subject: LU-10569 build: properly package lustre for Debian/Ubuntu
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 9001d7765f3f18c91e812964ee69dc21f929c2ea

Comment by Gerrit Updater [ 15/May/18 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/32277/
Subject: LU-10569 build: properly package lustre for Debian/Ubuntu
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 9001954d91d2ef65c5a30d0dc09f092d53d9ccd6

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