Changeset 5047

Show
Ignore:
Timestamp:
11/26/07 14:54:31 (4 years ago)
Author:
khali
Message:

No warnings about ld configuration for staged installations, as these
make no sense: we have no idea how the target system will be configured.

Location:
lm-sensors/branches/lm-sensors-3.0.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/CHANGES

    r5045 r5047  
    33 
    44SVN 
     5  Makefile: No warnings about ld configuration for staged installations 
    56  sensors-detect: Drop PCA9540 detection 
    67 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/Module.mk

    r4848 r5047  
    116116install-lib: all-lib 
    117117        $(MKDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(LIBINCLUDEDIR) $(DESTDIR)$(LIBMAN3DIR) $(DESTDIR)$(LIBMAN5DIR) 
    118         @if [ ! -e "$(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)" ] ; then \ 
     118        @if [ -z "$(DESTDIR)" -a ! -e "$(LIBDIR)/$(LIBSHSONAME)" ] ; then \ 
    119119             echo '******************************************************************************' ; \ 
    120120             echo 'Warning: This is the first installation of the $(LIBSHSONAME)*' ; \ 
    121              echo '         library files in $(DESTDIR)$(LIBDIR)!' ; \ 
     121             echo '         library files in $(LIBDIR)!' ; \ 
    122122             echo '         You must update the library cache or the userspace tools may fail' ; \ 
    123123             echo '         or have unpredictable results!' ; \ 
    124                 echo '         Run the following command: /sbin/ldconfig' ; \ 
     124            echo '         Run the following command: /sbin/ldconfig' ; \ 
    125125             echo '******************************************************************************' ; \ 
    126126        fi 
     
    129129        $(LN) $(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBSHSONAME) 
    130130        $(LN) $(LIBSHSONAME) $(DESTDIR)$(LIBDIR)/$(LIBSHBASENAME) 
    131         @if [ "$(DESTDIR)$(LIBDIR)" != "/usr/lib" -a "$(DESTDIR)$(LIBDIR)" != "/lib" ] ; then \ 
     131        @if [ -z "$(DESTDIR)" -a "$(LIBDIR)" != "/usr/lib" -a "$(LIBDIR)" != "/lib" ] ; then \ 
    132132           if [ -e "/usr/lib/$(LIBSHSONAME)" -o -e "/usr/lib/$(LIBSHBASENAME)" ] ; then \ 
    133133             echo '******************************************************************************' ; \ 
    134134             echo 'Warning: You have at least one $(LIBSHBASENAME) library file in /usr/lib' ; \ 
    135              echo '         and the new library files are in $(DESTDIR)$(LIBDIR)!' ; \ 
     135             echo '         and the new library files are in $(LIBDIR)!' ; \ 
    136136             echo '         These old files must be removed or the userspace tools may fail' ; \ 
    137137             echo '         or have unpredictable results!' ; \ 
     
    139139             echo '******************************************************************************' ; \ 
    140140           fi ; \ 
    141            grep -q '^$(DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \ 
    142            grep -q '^$(DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \ 
    143            grep -q '[[:space:]:,]$(DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \ 
    144            grep -q '[[:space:]:,]$(DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \ 
     141           grep -q '^$(LIBDIR)$$' /etc/ld.so.conf || \ 
     142           grep -q '^$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \ 
     143           grep -q '[[:space:]:,]$(LIBDIR)$$' /etc/ld.so.conf || \ 
     144           grep -q '[[:space:]:,]$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \ 
    145145                ( echo '******************************************************************************' ; \ 
    146                   echo 'Warning: Library directory $(DESTDIR)$(LIBDIR) is not in /etc/ld.so.conf!' ; \ 
     146                  echo 'Warning: Library directory $(LIBDIR) is not in /etc/ld.so.conf!' ; \ 
    147147                  echo '         Add it and run /sbin/ldconfig for the userspace tools to work.' ; \ 
    148148                  echo '******************************************************************************' ) ; \