The following commit has been merged in the openafs-stable-1_6_x branch:
commit 6609a7dfa4884f8996102e220546ac2023719ad4
Author: Stephan Wiesand <[email protected]>
Date:   Wed May 7 15:20:51 2014 +0200

    redhat: Use the right path to depmod
    
    As of Fedora 17 and RHEL 7, depmod has moved from /sbin to /usr/sbin.
    The full path to depmod is used in package scripts and as a dependency.
    This hasn't caused problems in most cases because on an installed
    system a link /sbin -> /usr/sbin is present and during ordinary package
    installations yum/rpm correctly then figure out that /sbin/depmod is
    actually provided. But in other situations, the dependency check is not
    that clever and (incorrectly) fails.
    
    Add a macro to the spec defining the full path to depmod, use the macro
    rather than plain /sbin/depmod throughout the spec, and also pass it to
    kmodtool when required to generate the kmod package scripts and
    requirements.
    
    FIXES 131860
    
    Reviewed-on: http://gerrit.openafs.org/11128
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Benjamin Kaduk <[email protected]>
    Reviewed-by: Perry Ruiter <[email protected]>
    Reviewed-by: D Brashear <[email protected]>
    (cherry picked from commit c20c01185ed748b2bc823369a8f28cf004b7d1c9)
    
    Change-Id: Ib9e0bfe586de668ddba6fb82ff1ea2a081277150
    Reviewed-on: http://gerrit.openafs.org/11171
    Tested-by: BuildBot <[email protected]>
    Reviewed-by: Andrew Deason <[email protected]>
    Reviewed-by: Perry Ruiter <[email protected]>
    Reviewed-by: Ken Dreyer <[email protected]>
    Reviewed-by: Stephan Wiesand <[email protected]>

 src/packaging/RedHat/openafs-kmodtool |   15 ++++++++++-----
 src/packaging/RedHat/openafs.spec.in  |   28 +++++++++++++++++-----------
 2 files changed, 27 insertions(+), 16 deletions(-)

-- 
OpenAFS Master Repository
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs

Reply via email to