source:
patches/glibc-2.7-mawk_fix-1.patch@
d147a07
Last change on this file since d147a07 was bfb94b2, checked in by , 17 years ago | |
---|---|
|
|
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 16 16 { 17 17 subdir = type = FILENAME; 18 18 sub(/^.*\//, "", type); 19 sub(/\/[^ /]+$/, "", subdir);19 sub(/\/[^\/]+$/, "", subdir); 20 20 sub(/^.*\//, "", subdir); 21 21 thisdir = ""; 22 22 } … … 56 56 # The Subdirs file comes from an add-on that should have the subdirectory. 57 57 dir = FILENAME; 58 58 do 59 sub(/\/[^ /]+$/, "", dir);59 sub(/\/[^\/]+$/, "", dir); 60 60 while (dir !~ /\/sysdeps$/); 61 61 sub(/\/sysdeps$/, "", dir); 62 62 if (system("test -d " dir "/" thisdir) == 0) 63 63 dir = dir "/" thisdir; 64 64 else { 65 sub(/\/[^ /]+$/, "", dir);65 sub(/\/[^\/]+$/, "", dir); 66 66 if (system("test -d " dir "/" thisdir) == 0) 67 67 dir = dir "/" thisdir; 68 68 else {
Note:
See TracBrowser
for help on using the repository browser.