mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
Edit the warnings for clarity.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1876 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
b24d4adc8a
commit
dcd0dae9e2
1 file changed
+18
-17
+18
-17
@@ -98,34 +98,35 @@ user :: all-lib
|
|||||||
install-lib: all-lib
|
install-lib: all-lib
|
||||||
$(MKDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(LIBINCLUDEDIR) $(DESTDIR)$(LIBMAN3DIR) $(DESTDIR)$(LIBMAN5DIR)
|
$(MKDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(LIBINCLUDEDIR) $(DESTDIR)$(LIBMAN3DIR) $(DESTDIR)$(LIBMAN5DIR)
|
||||||
@if [ ! -e "$(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)" ] ; then \
|
@if [ ! -e "$(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)" ] ; then \
|
||||||
echo '******************************************************************************' ; \
|
echo '******************************************************************************' ; \
|
||||||
echo 'Warning: This is the first installation of the $(LIBSHBASENAME)*' ; \
|
echo 'Warning: This is the first installation of the $(LIBSHSONAME)*' ; \
|
||||||
echo ' library files in $(DESTDIR)$(LIBDIR) !!!' ; \
|
echo ' library files in $(DESTDIR)$(LIBDIR)!' ; \
|
||||||
echo ' You must run /sbin/ldconfig to update the library cache or' ; \
|
echo ' You must update the library cache or the userspace tools may fail' ; \
|
||||||
echo ' the userspace tools may fail or have unpredictable results !!!' ; \
|
echo ' or have unpredictable results!' ; \
|
||||||
echo '******************************************************************************' ; \
|
echo ' Run the following command: /sbin/ldconfig' ; \
|
||||||
|
echo '******************************************************************************' ; \
|
||||||
fi
|
fi
|
||||||
$(INSTALL) -o root -g root -m 644 $(LIBTARGETS) $(DESTDIR)$(LIBDIR)
|
$(INSTALL) -o root -g root -m 644 $(LIBTARGETS) $(DESTDIR)$(LIBDIR)
|
||||||
$(LN) $(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)
|
$(LN) $(LIBSHLIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBSHSONAME)
|
||||||
$(LN) $(LIBSHSONAME) $(DESTDIR)$(LIBDIR)/$(LIBSHBASENAME)
|
$(LN) $(LIBSHSONAME) $(DESTDIR)$(LIBDIR)/$(LIBSHBASENAME)
|
||||||
@if [ "$(DESTDIR)$(LIBDIR)" != "/usr/lib" -a "$(DESTDIR)$(LIBDIR)" != "/lib" ] ; then \
|
@if [ "$(DESTDIR)$(LIBDIR)" != "/usr/lib" -a "$(DESTDIR)$(LIBDIR)" != "/lib" ] ; then \
|
||||||
if [ -e "/usr/lib/$(LIBSHSONAME)" ] ; then \
|
if [ -e "/usr/lib/$(LIBSHSONAME)" -o -e "/usr/lib/$(LIBSHBASENAME)" ] ; then \
|
||||||
echo '******************************************************************************' ; \
|
echo '******************************************************************************' ; \
|
||||||
echo 'Warning: You have old $(LIBSHBASENAME)* library files in /usr/lib' ; \
|
echo 'Warning: You have at least one $(LIBSHBASENAME) library file in /usr/lib' ; \
|
||||||
echo ' and the new library files are in $(DESTDIR)$(LIBDIR) !!!' ; \
|
echo ' and the new library files are in $(DESTDIR)$(LIBDIR)!' ; \
|
||||||
echo ' These old files must be removed or the userspace tools' ; \
|
echo ' These old files must be removed or the userspace tools may fail' ; \
|
||||||
echo ' will have unpredictable results !!!' ; \
|
echo ' or have unpredictable results!' ; \
|
||||||
echo ' Run the following command: rm /usr/lib/$(LIBSHBASENAME)*' ; \
|
echo ' Run the following command: rm /usr/lib/$(LIBSHBASENAME)*' ; \
|
||||||
echo '******************************************************************************' ; \
|
echo '******************************************************************************' ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
grep -q '^$(DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \
|
grep -q '^$(DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \
|
||||||
grep -q '^$(DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \
|
grep -q '^$(DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \
|
||||||
grep -q '[[:space:]:,]$(DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \
|
grep -q '[[:space:]:,]$(DESTDIR)$(LIBDIR)$$' /etc/ld.so.conf || \
|
||||||
grep -q '[[:space:]:,]$(DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \
|
grep -q '[[:space:]:,]$(DESTDIR)$(LIBDIR)[[:space:]:,=]' /etc/ld.so.conf || \
|
||||||
( echo '******************************************************************************' ; \
|
( echo '******************************************************************************' ; \
|
||||||
echo 'Warning: Library directory $(DESTDIR)$(LIBDIR) not in /etc/ld.so.conf !!!' ; \
|
echo 'Warning: Library directory $(DESTDIR)$(LIBDIR) is not in /etc/ld.so.conf!' ; \
|
||||||
echo ' Add it and run /sbin/ldconfig for the userspace tools to work !!!' ; \
|
echo ' Add it and run /sbin/ldconfig for the userspace tools to work.' ; \
|
||||||
echo '******************************************************************************' ) ; \
|
echo '******************************************************************************' ) ; \
|
||||||
fi
|
fi
|
||||||
$(INSTALL) -o root -g root -m 644 $(LIBHEADERFILES) $(DESTDIR)$(LIBINCLUDEDIR)
|
$(INSTALL) -o root -g root -m 644 $(LIBHEADERFILES) $(DESTDIR)$(LIBINCLUDEDIR)
|
||||||
$(INSTALL) -o $(MANOWN) -g $(MANGRP) -m 644 $(LIBMAN3FILES) $(DESTDIR)$(LIBMAN3DIR)
|
$(INSTALL) -o $(MANOWN) -g $(MANGRP) -m 644 $(LIBMAN3FILES) $(DESTDIR)$(LIBMAN3DIR)
|
||||||
|
|||||||
Reference in new issue
Block a user