Author: brooks
Date: Mon Feb  9 09:45:58 2015
New Revision: 278444
URL: https://svnweb.freebsd.org/changeset/base/278444

Log:
  MFC r278337:
  
  When upgrading, install the ELF runtime linkers before libraries.
  
  This is required to prevent problems with nss modules that use libthr when
  upgrading from releases prior to 10.1.
  
  PR:           197366
  Differential Revision:        D1790
  Reviewed by:  cperciva
  Sponsored by: DARPA, AFRL

Modified:
  stable/9/usr.sbin/freebsd-update/freebsd-update.sh
Directory Properties:
  stable/9/usr.sbin/freebsd-update/   (props changed)

Modified: stable/9/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- stable/9/usr.sbin/freebsd-update/freebsd-update.sh  Mon Feb  9 09:22:47 
2015        (r278443)
+++ stable/9/usr.sbin/freebsd-update/freebsd-update.sh  Mon Feb  9 09:45:58 
2015        (r278444)
@@ -2820,18 +2820,27 @@ Kernel updates have been installed.  Ple
                    grep -E '^[^|]+\|d\|' > INDEX-NEW
                install_from_index INDEX-NEW || return 1
 
+               # Install new runtime linker
+               grep -vE '^/boot/' $1/INDEX-NEW |
+                   grep -vE '^[^|]+\|d\|' |
+                   grep -E '^/libexec/ld-elf[^|]*\.so\.[0-9]+\|' > INDEX-NEW
+               install_from_index INDEX-NEW || return 1
+
                # Install new shared libraries next
                grep -vE '^/boot/' $1/INDEX-NEW |
                    grep -vE '^[^|]+\|d\|' |
+                   grep -vE '^/libexec/ld-elf[^|]*\.so\.[0-9]+\|' |
                    grep -E '^[^|]*/lib/[^|]*\.so\.[0-9]+\|' > INDEX-NEW
                install_from_index INDEX-NEW || return 1
 
                # Deal with everything else
                grep -vE '^/boot/' $1/INDEX-OLD |
                    grep -vE '^[^|]+\|d\|' |
+                   grep -vE '^/libexec/ld-elf[^|]*\.so\.[0-9]+\|' |
                    grep -vE '^[^|]*/lib/[^|]*\.so\.[0-9]+\|' > INDEX-OLD
                grep -vE '^/boot/' $1/INDEX-NEW |
                    grep -vE '^[^|]+\|d\|' |
+                   grep -vE '^/libexec/ld-elf[^|]*\.so\.[0-9]+\|' |
                    grep -vE '^[^|]*/lib/[^|]*\.so\.[0-9]+\|' > INDEX-NEW
                install_from_index INDEX-NEW || return 1
                install_delete INDEX-OLD INDEX-NEW || return 1
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to