Skip to content
Snippets Groups Projects
  • Christopher J. Morrone's avatar
    28c17d40
    LU-7643 build: Remove Linux version string from RPM release field · 28c17d40
    Christopher J. Morrone authored
    
    With the landing of the patch:
    
      "LU-5614 build: use %kernel_module_package in rpm spec"
    
    we neither need, nor desire, to tie a lustre build to a specific
    Linux kernel version.  Instead we want to allow the weak updates
    system to symlink the lustre modules into any and all kernel
    directories that are ABI compatible.
    
    Therefore, we remove the Linux version string from Lustre's
    RPM release field.
    
    Note that "%define krequires" is moved to a SLES-only section
    when the 0%{?build_src_rpm} conditional is removed.  This may
    seem like an odd place to put it at first glance.  But the
    next line is the only remaining consumer of krequires, so
    we are just moving it to the last place that it might be needed.
    This could perhaps be simplified further in a future commit.
    
    When removing the no longer needed %{fullrelease} from the Release
    field, we replace it with a 1 and with the %{?dist} string.
    %{?dist} is customary for Fedora, RHEL, and likely most rpm-based
    distros.
    
    Because the release field is no longer modified between the source
    rpm and binary rpm build steps, there is not longer a need for
    The build_src_rpm macro.  That is removed as well.
    
    Test-Parameters: trivial
    Change-Id: I8306f48d5bf0dffcae2888505ec7f0f63e47fc08
    Signed-off-by: default avatarChristopher J. Morrone <morrone2@llnl.gov>
    Reviewed-on: http://review.whamcloud.com/19954
    
    
    Tested-by: Jenkins
    Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
    Reviewed-by: default avatarJames Simmons <uja.ornl@yahoo.com>
    Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
    Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
    28c17d40
    History
    LU-7643 build: Remove Linux version string from RPM release field
    Christopher J. Morrone authored
    
    With the landing of the patch:
    
      "LU-5614 build: use %kernel_module_package in rpm spec"
    
    we neither need, nor desire, to tie a lustre build to a specific
    Linux kernel version.  Instead we want to allow the weak updates
    system to symlink the lustre modules into any and all kernel
    directories that are ABI compatible.
    
    Therefore, we remove the Linux version string from Lustre's
    RPM release field.
    
    Note that "%define krequires" is moved to a SLES-only section
    when the 0%{?build_src_rpm} conditional is removed.  This may
    seem like an odd place to put it at first glance.  But the
    next line is the only remaining consumer of krequires, so
    we are just moving it to the last place that it might be needed.
    This could perhaps be simplified further in a future commit.
    
    When removing the no longer needed %{fullrelease} from the Release
    field, we replace it with a 1 and with the %{?dist} string.
    %{?dist} is customary for Fedora, RHEL, and likely most rpm-based
    distros.
    
    Because the release field is no longer modified between the source
    rpm and binary rpm build steps, there is not longer a need for
    The build_src_rpm macro.  That is removed as well.
    
    Test-Parameters: trivial
    Change-Id: I8306f48d5bf0dffcae2888505ec7f0f63e47fc08
    Signed-off-by: default avatarChristopher J. Morrone <morrone2@llnl.gov>
    Reviewed-on: http://review.whamcloud.com/19954
    
    
    Tested-by: Jenkins
    Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
    Reviewed-by: default avatarJames Simmons <uja.ornl@yahoo.com>
    Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
    Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>