Subject: Re: MAKEDEV.awk bug with debian-unstable
To: Tim Sellar <tim.sellar@dsvr.co.uk>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: current-users
Date: 04/22/2004 09:45:12
Tim Sellar <tim.sellar@dsvr.co.uk> writes:
> I'm cross-building current on debian-unstable and have been caught out
> by a problem with awk. Unless the following change is applied an
> unusable MAKEDEV is produced, breaking installation. Is this unique to
> debian or a problem with gawk perhaps? Anyone else seeing this?
What version of gawk is installed in your system? At least gawk 3.13
works with wrong script. And please try the patch below.
enami.
Index: MAKEDEV.awk
===================================================================
RCS file: /cvsroot/src/etc/MAKEDEV.awk,v
retrieving revision 1.14
diff -u -r1.14 MAKEDEV.awk
--- MAKEDEV.awk 18 Mar 2004 22:51:59 -0000 1.14
+++ MAKEDEV.awk 22 Apr 2004 00:33:46 -0000
@@ -281,7 +281,7 @@
} else
id = gid[nam];
}
- parsed = parsed substr(line, 0, RSTART - 1) id
+ parsed = parsed substr(line, 1, RSTART - 1) id
line = substr(line, RSTART + RLENGTH)
}
$0 = parsed line
@@ -317,7 +317,7 @@
} else
dev = chr[nam];
}
- parsed = parsed substr(deventry, 0, RSTART - 1) dev
+ parsed = parsed substr(deventry, 1, RSTART - 1) dev
deventry = substr(deventry, RSTART + RLENGTH)
}