source: patches/glibc-2.6.1-mawk_fix-1.patch@ 9683f7e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9683f7e was 598efa5d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Update Patches

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[598efa5d]1Submitted By: Mark Vels <mark.vels@fundem.net>
2Date: 2007-07-20
3Initial Package Version: 2.6
4Origin: original patch glibc-2.6-mawk_fix-1.patch by Jim Gifford <jim@linuxfromscratch.org>
5Upstream Status: Not submitted
6Description: Fixes build if host distro is using mawk.
7 Distro's known to have this issue are Debian
8 and Ubuntu
9
10 Changes wrt version 1: added two more cases.
11
12diff -Naur glibc-2.6.orig/scripts/gen-sorted.awk glibc-2.6/scripts/gen-sorted.awk
13--- glibc-2.6.orig/scripts/gen-sorted.awk 2006-02-28 07:05:57.000000000 +0000
14+++ glibc-2.6/scripts/gen-sorted.awk 2007-07-20 21:03:50.000000000 +0000
15@@ -16,7 +16,7 @@
16 {
17 subdir = type = FILENAME;
18 sub(/^.*\//, "", type);
19- sub(/\/[^/]+$/, "", subdir);
20+ sub(/\/[^\/]+$/, "", subdir);
21 sub(/^.*\//, "", subdir);
22 thisdir = "";
23 }
24@@ -56,13 +56,13 @@
25 # The Subdirs file comes from an add-on that should have the subdirectory.
26 dir = FILENAME;
27 do
28- sub(/\/[^/]+$/, "", dir);
29+ sub(/\/[^\/]+$/, "", dir);
30 while (dir !~ /\/sysdeps$/);
31 sub(/\/sysdeps$/, "", dir);
32 if (system("test -d " dir "/" thisdir) == 0)
33 dir = dir "/" thisdir;
34 else {
35- sub(/\/[^/]+$/, "", dir);
36+ sub(/\/[^\/]+$/, "", dir);
37 if (system("test -d " dir "/" thisdir) == 0)
38 dir = dir "/" thisdir;
39 else {
Note: See TracBrowser for help on using the repository browser.