[LU-2882] lustre build broken with no zfs libraries installed Created: 27/Feb/13 Updated: 18/Mar/13 Resolved: 18/Mar/13 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.4.0 |
| Fix Version/s: | Lustre 2.4.0 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Alexey Lyashkov | Assignee: | Bruno Faccini (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | MB | ||
| Environment: |
clean rhel6 build env. |
||
| Severity: | 3 |
| Rank (Obsolete): | 6958 |
| Description |
|
after rebaising to last master i see build without zfs libraries broken. RPM build errors: quick look into spec file say - build_lustre_osd_zfs now is '1' but that is don't checked in build requirements and produced bug in at final phase as osd_zfs isn't build. i know about workaround with --define "build_lustre_osd_zfs 0" with rpmbuild -tb, but suggest to add some checks for it. |
| Comments |
| Comment by Bruno Faccini (Inactive) [ 27/Feb/13 ] |
|
Hello Alexey, |
| Comment by Oleg Drokin [ 05/Mar/13 ] |
|
Bruno, it seems what shadow is doing is just |
| Comment by Bruno Faccini (Inactive) [ 07/Mar/13 ] |
|
Ho thank's Oleg I see, he uses "rpmbuild -tb" on a source tar-ball. Yes, this may be the trick, because changes from And, particularly, the "lbuild" ones are using "rpmbuild -tb" command but with a lot of spec-file variables pre-setting (like %configure !!...) mainly coming from "autoconf/configure", and I am afraid that a simple "rpmbuild -tb" will only get embryonic configure infos that will not allow to decide if ZFS is installed or not. I will try to revert the default value from 1 to 0 for build_lustre_osd_zfs/build_lustre_osd_ldiskfs, and see if it fixes. |
| Comment by Bruno Faccini (Inactive) [ 08/Mar/13 ] |
|
But back on my previous comment about the different ways to build Lustre, is this "rpmbuild -tb lustre-source-tarball" a usual one ?? Also, are there others known ? |
| Comment by Bruno Faccini (Inactive) [ 08/Mar/13 ] |
|
Since I am not able to build simply with a simple/only "rpmbuild -tb lustre-source-tarball" command (ldiskfs_* symbols undefined references in osd_*() functions from lustre/utils/mount_utils.c, so again I may need some details on commands/sequence used), I am not sure about the fix, but since my local/Wiki-like builds tests with it have been successful, let's have a try with patch at http://review.whamcloud.com/5661 on Hudson/Jenkins side. |
| Comment by Bruno Faccini (Inactive) [ 11/Mar/13 ] |
|
Hello Alexey, |
| Comment by Alexey Lyashkov [ 13/Mar/13 ] |
|
Hi Bruno, sure. ps. I think patch good after quick look into. but let be run test build. |
| Comment by Alexey Lyashkov [ 13/Mar/13 ] |
|
Verified - with patch i able to build packages correctly. |
| Comment by Bruno Faccini (Inactive) [ 13/Mar/13 ] |
|
Cool! |
| Comment by Peter Jones [ 18/Mar/13 ] |
|
Landed for 2.4 |