LU-16382 spec: add dependency on kernel-%1 The SUSE OBS rpmlint tool wants all kmps to depend on the base kernel. As RH uses didn't package naming to SUSE, these dependencies must be conditional. Test-Parameters: trivial Signed-off-by: Mr NeilBrown <neilb@suse.de> Change-Id: I4f8525dd2ba35b824bcfbd4097505bdfe7b11e0f Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49371 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com> Reviewed-by: jsimmons <jsimmons@infradead.org> Reviewed-by: xinliang <xinliang.liu@linaro.org> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-16382 spec: Declare correct license Lustre is primarily licensed under GPL-v2. Some files claim v2+, others claim v2-only, but all are consistent with v2. liblustreapi is LGPL2.1+ So make that explicit in lustre.spec. All 'kmp' packages are GPL-v2-only, all the rest add "AND LGPL-2.1-or-later. The Open Build Service complains that "GPL" is too vague. Test-Parameters: trivial Signed-off-by: Mr NeilBrown <neilb@suse.de> Change-Id: I4f10c50a39b5b48fed71b179bc888b0ae144444e Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49363 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Aurelien Degremont <degremoa@amazon.com> Reviewed-by: Jian Yu <yujian@whamcloud.com> Reviewed-by: jsimmons <jsimmons@infradead.org> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-13906 build: Fix %{name}-osd-ldiskfs-mount The following error occurs during installation: error: Failed dependencies: lustre-osd-ldiskfs-mount = 2.14.57_56_g4d94d2f is needed by kmod-lustre_ib-osd-ldiskfs-2.14.57_56_g4d94d2f-1.el8.x86_64 Test-Parameters: trivial Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com> Change-Id: Idbcdbd5a1e7793c1359f90c1035ded9fe8e90576 Reviewed-on: https://review.whamcloud.com/46341 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-13906 build: consistent use of %{name} Make the of the %{name} macro consistent across lustre packages Fixes: cfaf0eb92005 ("LU-12214 build: fixes if the name is not just 'lustre'") Test-Parameters: trivial HPE-bug-id: LUS-5914, LUS-5915 Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com> Change-Id: I71c0a0e77a0fc7319a166311e33d3ca9de60e499 Reviewed-on: https://review.whamcloud.com/39662 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com> Reviewed-by: Chris Horn <chris.horn@hpe.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-12214 build: fixes if the name is not just 'lustre' fix using a %{name} macro in spec file. this allow to have right names for server packages. Cray-bug-id: LUS-5915 Test-parameters: trivial Change-Id: I2ae271b5344fb899bb053f82d2534355ce60aa3a Signed-off-by: Alexey Lyashkov <c17817@cray.com> Reviewed-on: https://review.whamcloud.com/36424 Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com> Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Alexander Boyko <c17825@cray.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-11440 misc: require ldiskfsprogs-1.44.3.wc1 or later Require a current version of ldiskfsprogs to include support for project quotas and large_dir. Upstream now also includes ea_inode support and many bug fixes in xattr verification and repair. Test-Parameters: trivial Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Change-Id: I24eeb1c30d5c7b1daa1ad7d5d2f603d273054035 Reviewed-on: https://review.whamcloud.com/33766 Tested-by: Jenkins Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Nathaniel Clark <nclark@whamcloud.com> Reviewed-by: Minh Diep <mdiep@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-5614 build: use %kernel_module_package in rpm spec Replace module packages definitions with calls to the vendor defined %kernel_module_package macro. This results in many of the rpm packages changing names from what we are used to in the past. Each Linux distribution may name the modules packages slightly differently, most notably RHEL and SLES choose different naming schemes. The %kernel_module_package macro handles these details for us. For instance, on RHEL7 the packages that contain lustre's kernel modules become: kmod-lustre (previously in "lustre-modules" package) kmod-lustre-osd-ldiskfs (previously in "lustre-osd-ldiskfs" package) kmod-lustre-osd-zfs (previously in "lustre-osd-zfs" package) kmod-lustre-tests (previously in "lustre-tests" package) On SLES12, the same packages are instead named: lustre-kmp-default lustre-osd-ldiskfs-kmp-default lustre-osd-zfs-kmp-default lustre-tests-kmp-default These kernel module packages give us what is known as "weak-updates". Instead of compiling Lustre for every minor kernel that is installed, the weak-updates will automatically symlink the Lustre modules into and kernel's modules subdirectories if that kernel offers the required kernel symbols with exactly the same symbol versions. In addition to changing the package names for all of the Lustre packages containing kernel modules, the location of the modules in /lib/modules changes as well. Each package will put its modules in a subdirectory matching part of the package name itself (required by the macros on RHEL systems). The path name is also different on RHEL and SLES systems (e.g. "extra" vs. "updates"). Some further path examples are: RHEL7, kmod-lustre package: /lib/modules/3.10.0-327.18.2.el7_lustre.x86_64/extra/lustre/fs/ost.ko SLES12, lustre-kmp-default package: /lib/modules/3.12.57-60.35_lustre-default/updates/lustre/fs/ost.ko RHEL7, kmod-lustre-osd-ldiskfs package: /lib/modules/3.10.0-327.18.2.el7_lustre.x86_64/extra/lustre-osd-ldiskfs/fs/osd_ldiskfs.ko SLES12, lustre-osd-ldiskfs-kmp-default package: /lib/modules/3.12.57-60.35_lustre-default/updates/lustre-osd-ldiskfs/fs/osd_ldiskfs.ko Test-Parameters: trivial clientdistro=el6.7 mdsdistro=el6.7 ossdistro=el6.7 Signed-off-by: Stephen Champion <schamp@sgi.com> Signed-off-by: Alexander Boyko <alexander.boyko@seagate.com> Change-Id: Ic5351f4bda94eae80eaf349c8490a2c758b15c80 Signed-off-by: Minh Diep <minh.diep@intel.com> Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov> Reviewed-on: http://review.whamcloud.com/12063 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: James Simmons <uja.ornl@yahoo.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>