Gentoo Archives: gentoo-dev

From: Christoph Junghans <ottxor@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: RFC: Virtual for awk implementation
Date: Mon, 04 Jun 2012 02:11:12
Message-Id: CANgp9kwQ6MmPx27czyfNLLVO7ZpegDQxgZHMSnJKp0DcxCSYRA@mail.gmail.com
In Reply to: [gentoo-dev] RFC: Virtual for awk implementation by Christoph Junghans
1 No objections and 2x +1, so I will commit virtual/awk to ~arch and
2 app-admin/eselect-awk to ~arch & masked for testing.
3
4 Please port packages to virtual/awk (if possible) and make bug reports
5 block on the awk porting tracker (bug #418473).
6
7 2012/5/29 Christoph Junghans <ottxor@g.o>:
8 > Hi,
9 >
10 > recently I stumbled across a problem with mawk, which is apprearly
11 > Ubuntu's default awk interpreter.
12 > This brought the idea to my mind of adding a virtual for awk. Beside
13 > the fact that we already have 3 awk interpreters in gx86 (gawk, mawk
14 > and busybox awk), there are other ones like nawk and awka.
15 >
16 > I had some discussions with spanKY on that topic in bug #415689, which
17 > summarizes in the following:
18 >
19 > Advantages:
20 > - mawk is faster - useful for scientific purposes
21 > - busybox awk could replace gawk on minimal systems
22 > - more POSIX conform systems
23 >
24 > Disadvantages:
25 > - some awk code in the tree and portage is probably using GNU
26 > extensions without executing gawk explicitly
27 > - gray zone of Posix 1003.2  (e.g. substr() function and an index of 0)
28 >
29 > What we would need:
30 > - virtual/awk
31 > - app-admin/eselect-awk (version available in cj-overlay)
32 > and
33 > - testing and migration of existing packages using gawk
34 > <http://qa-reports.gentoo.org/output/genrdeps/rindex/sys-apps/gawk>
35 > and
36 > <http://qa-reports.gentoo.org/output/genrdeps/dindex/sys-apps/gawk>
37 > to name a few.
38 >
39 > I have tested mawk as default interpreter for a while on my x86 boxes
40 > and didn't observed any problems so far.
41 >
42 > Cheers,
43 >
44 > Christoph
45 >
46 > --
47 > Christoph Junghans
48 > http://dev.gentoo.org/~ottxor/
49
50
51
52 --
53 Christoph Junghans
54 http://dev.gentoo.org/~ottxor/