[LU-8383] Wrong tests package dependencies Created: 08/Jul/16 Updated: 29/Aug/16 Resolved: 26/Aug/16 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.9.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Dmitry Eremin (Inactive) | Assignee: | Dmitry Eremin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
The patch for |
| Comments |
| Comment by Gerrit Updater [ 08/Jul/16 ] |
|
Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/21208 |
| Comment by Christopher Morrone [ 08/Jul/16 ] |
|
It looks like you want to move the call to %kernel_module_package_buildreqs. But I'm not sure that is correct. Although, admittedly, I don't really understand what they were thinking when they made kernel_module_package_buildreqs. If you use rpmbuild --showrc to look at the definition of kernel_module_package_buildreqs on a RHEL7.2 system, it looks like this: -14: kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1
kernel-devel
So what exactly happens when you try to move the call to that macro to be the following? BuildRequires: %kernel_module_package_buildreqs If you try to define a macro on a BuildRequires line, does that even work? Will the "kernel-devel" string, which is on a separate line in the kernel_module_package_buildreqs macro even wind up being added to the BuildRequires? Maybe it is fine. I wish the spec file syntax was more rigorously defined somewhere. |
| Comment by Dmitry Eremin (Inactive) [ 08/Jul/16 ] |
|
Exactly, the string BuildRequires: %kernel_module_package_buildreqs will be transformed to BuildRequires: kernel-devel and additional macro will be defined. error: Failed build dependencies: kernel-syms is needed by lustre-2.8.55_49_g7174998-1.x86_64 make: *** [srpm] Error 1 So, dependency works now. |
| Comment by Christopher Morrone [ 08/Jul/16 ] |
|
OK, thats good. |
| Comment by Gerrit Updater [ 11/Jul/16 ] |
|
Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/21228 |
| Comment by Gerrit Updater [ 11/Jul/16 ] |
|
Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/21229 |
| Comment by Dmitry Eremin (Inactive) [ 12/Jul/16 ] |
|
For SuSe we have BuildRequires: module-init-tools kernel-syms. But the package kernel-syms is just an empty package. So, it's not clear how to build lustre packages without this package installed. For now lbuild for SuSe failed with following: error: Failed build dependencies: kernel-syms is needed by lustre-2.8.55_49_g7174998-1.x86_64 |
| Comment by Christopher Morrone [ 12/Jul/16 ] |
|
Have Minh install kernel-syms on all the SLES builders? |
| Comment by Dmitry Eremin (Inactive) [ 13/Jul/16 ] |
|
I installed kernel-syms on all the SLES builders and build is fixed now. |
| Comment by Gerrit Updater [ 11/Aug/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/21208/ |
| Comment by Gerrit Updater [ 11/Aug/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/21877 |
| Comment by Gerrit Updater [ 11/Aug/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/21877/ |
| Comment by Dmitry Eremin (Inactive) [ 11/Aug/16 ] |
|
Oleg, kernel-syms should be installed on all the SLES builders. This is prerequisite now for SLES. |
| Comment by Minh Diep [ 16/Aug/16 ] |
|
I am working on installing kernel-syms on all SLES builders |
| Comment by Gerrit Updater [ 24/Aug/16 ] |
|
Dmitry Eremin (dmitry.eremin@intel.com) uploaded a new patch: http://review.whamcloud.com/22125 |
| Comment by Gerrit Updater [ 25/Aug/16 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22125/ |