Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/postinstall Adjust obsolete_libs to handle both the...



details:   https://anonhg.NetBSD.org/src/rev/21cb1419e0a1
branches:  trunk
changeset: 759149:21cb1419e0a1
user:      njoly <njoly%NetBSD.org@localhost>
date:      Tue Nov 30 14:35:38 2010 +0000

description:
Adjust obsolete_libs to handle both the libraries (unchanged) and the
corresponding .debug files if exists.

diffstat:

 usr.sbin/postinstall/postinstall |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 3dc5c838f532 -r 21cb1419e0a1 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Tue Nov 30 14:31:14 2010 +0000
+++ b/usr.sbin/postinstall/postinstall  Tue Nov 30 14:35:38 2010 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.110 2010/11/21 22:50:37 christos Exp $
+# $NetBSD: postinstall,v 1.111 2010/11/30 14:35:38 njoly Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -482,6 +482,14 @@
        [ $# -eq 1 ] || err 3 "USAGE: obsolete_libs dir"
        dir="$1"
 
+       _obsolete_libs "${dir}"
+       _obsolete_libs "/usr/libdata/debug/${dir}"
+}
+
+_obsolete_libs()
+{ 
+       dir="$1"
+
        (
 
        if [ ! -e "${DEST_DIR}/${dir}" ]
@@ -522,7 +530,7 @@
        }
 }
 
-/^lib.*\.so\.[0-9]+\.[0-9]+(\.[0-9]+)?$/ {
+/^lib.*\.so\.[0-9]+\.[0-9]+(\.[0-9]+)?(\.debug)?$/ {
        if (AllLibs)
                checklib(minor, $0, "^lib.*\\.so\\.")
        else



Home | Main Index | Thread Index | Old Index