source: patches/glibc-2.8-mawk_fix-1.patch@ d8a4dcf

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d8a4dcf was 175f4d65, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Commit missing patches.

  • Property mode set to 100644
File size: 1.3 KB
  • scripts/gen-sorted.awk

    Submitted By: Mark Vels <mark.vels@fundem.net>
    Date: 2007-07-20
    Initial Package Version: 2.6
    Origin: original patch glibc-2.6-mawk_fix-1.patch by Jim Gifford <jim@linuxfromscratch.org>
    Upstream Status: Not submitted
    Description: Fixes build if host distro is using mawk.
    	     Distro's known to have this issue are Debian 
    	     and Ubuntu
    
    	     Changes wrt version 1: added two more cases.
    
    diff -Naur glibc-2.6.orig/scripts/gen-sorted.awk glibc-2.6/scripts/gen-sorted.awk
    old new  
    1616{
    1717  subdir = type = FILENAME;
    1818  sub(/^.*\//, "", type);
    19   sub(/\/[^/]+$/, "", subdir);
     19  sub(/\/[^\/]+$/, "", subdir);
    2020  sub(/^.*\//, "", subdir);
    2121  thisdir = "";
    2222}
     
    5656    # The Subdirs file comes from an add-on that should have the subdirectory.
    5757    dir = FILENAME;
    5858    do
    59       sub(/\/[^/]+$/, "", dir);
     59      sub(/\/[^\/]+$/, "", dir);
    6060    while (dir !~ /\/sysdeps$/);
    6161    sub(/\/sysdeps$/, "", dir);
    6262    if (system("test -d " dir "/" thisdir) == 0)
    6363      dir = dir "/" thisdir;
    6464    else {
    65       sub(/\/[^/]+$/, "", dir);
     65      sub(/\/[^\/]+$/, "", dir);
    6666      if (system("test -d " dir "/" thisdir) == 0)
    6767        dir = dir "/" thisdir;
    6868      else {
Note: See TracBrowser for help on using the repository browser.