Change awk calls to gawk for non-linux system compatibility
authorfuzzyray <fuzzyray@gentoo.org>
Tue, 25 Nov 2008 16:53:11 +0000 (16:53 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Tue, 25 Nov 2008 16:53:11 +0000 (16:53 -0000)
svn path=/; revision=522

trunk/ChangeLog
trunk/src/revdep-rebuild/revdep-rebuild

index 349a992e3329a4178f555d1633b7b5778d216540..f9605ad8c6eee4194b10263d2cd9d095bfe3c9cf 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-25: Paul Varner <fuzzyray@gentoo.org>
+       * revdep-rebuild: Fixes for non-linux Gentoo systems. Add patch from
+       igli to fix find command to comply with POSIX. Change awk calls to
+       gawk.
+
 2008-11-11: Paul Varner <fuzzyray@gentoo.org>
        * echangelog: Add --strict option (Bug 246242).
        * echangelog: Fix processing of virtual category (Bug 179530)
index 315f31cba9f146a3ee012b839f9963f605a9fd76..612f4cd7dfcf40b7560e886b55ad0a9454f18070 100755 (executable)
@@ -224,7 +224,7 @@ countdown() {
 # Replace whitespace with linebreaks, normalize repeated '/' chars, and sort -u
 # (If any libs have whitespace in their filenames, someone needs punishment.)
 clean_var() {
-       awk 'BEGIN         {RS="[[:space:]]"}
+       gawk 'BEGIN         {RS="[[:space:]]"}
             /-\*/         {exit}
             /[^[:space:]]/ {gsub(/\/\/+/, "/"); print}' | sort -u
 }
@@ -738,7 +738,7 @@ main_checks() {
                        elif [[ $SEARCH_BROKEN ]]; then
                                # Look for broken .la files
                                for depend in $(
-                                       awk -F"[=']" '/^dependency_libs/{
+                                       gawk -F"[=']" '/^dependency_libs/{
                                                gsub("^-[^[:space:]]*", "", $3);
                                                gsub("[[:space:]]-[^[:space:]]*", "", $3);
                                                print $3
@@ -762,7 +762,7 @@ main_checks() {
                        done < <(
                                # Regexify LD_LIBRARY_MASK. Exclude it from the search.
                                LD_LIBRARY_MASK="${LD_LIBRARY_MASK//$'\n'/|}"
-                               awk -v ldmask="(${LD_LIBRARY_MASK//./\\\.})" '
+                               gawk -v ldmask="(${LD_LIBRARY_MASK//./\\\.})" '
                                        /no version information available/ && $0 !~ ldmask {
                                                gsub(/[()]/, "", $NF)
                                                if (seen[$NF]++)  next
@@ -947,7 +947,7 @@ show_unowned_files() {
                ewarn "The broken files are:"
                while read filename junk; do
                        [[ $junk = *none* ]] && ewarn "  $filename"
-               done < "$OWNERS_FILE" | awk '!s[$0]++' # (omit dupes)
+               done < "$OWNERS_FILE" | gawk '!s[$0]++' # (omit dupes)
        fi
 }
 ##