pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: BUILD_DEPENDS



> On Tue, May 02, 2006 at 02:15:45PM +0300, Aleksey Cheusov wrote:
 >> 
 >>  >> Is it possible to tell "I need POSIX compatible <program>".
 >>  >> On some systems, for example, awk == oawk.
 >> 
 >> > Common assumption is awk == oawk, which works fine most of the time. If
 >> > it doesn't on a specific platform, those normally request gawk.
 >> > The reference should of course be the one-true-awk :-)
 >> This is a very bad assumption at least for pkgsrc itself ;-(
 >> See the result of it PR #33410.

> As I wrote, please *never* argue with the behaviour of GNU tools.
I was wrong about \., Sorry.

> SUS even strongly suggest awk implementations to implement {} correctly,
>From SUSv3 (awk):
    Regular Expressions
   
    The awk utility shall make use of the extended regular expression notation
    (see the Base Definitions volume of IEEE Std 1003.1-2001, Section 9.4,
    Extended Regular Expressions) except that it shall allow the use of
    C-language conventions for escaping special characters within the EREs, as
    specified in the table in the Base Definitions volume of
    IEEE Std 1003.1-2001, Chapter 5, File Format Notation ( '\\' , '\a' , '\b'
    , '\f' , '\n' , '\r' , '\t' , '\v' ) and the following table
    ...
    | \"       | Backslash quotation-mark      | Quotation-mark character    |
    |----------+-------------------------------+-----------------------------|
    | \/       | Backslash slash               | Slash character             |
    |----------+-------------------------------+-----------------------------|
    | \ddd     | A backslash character         | The character whose         |
    |          | followed by the longest       | encoding is represented by  |
    |          | sequence of one, two, or      | the one, two, or            |
    |          | three octal-digit characters  | three-digit octal integer.  |
    |          | (01234567). If all of the     | Multi-byte characters       |
    |          | digits are 0 (that is,        | require multiple,           |
    |          | representation of the NUL     | concatenated escape         |
    |          | character), the behavior is   | sequences of this type,     |
    |          | undefined.                    | including the leading '\'   |
    |          |                               | for each byte.              |
    |----------+-------------------------------+-----------------------------|
    | \c       | A backslash character         | Undefined                   |
    |          | followed by any character not |                             |
    |          | described in this table or in |                             |
    |          | the table in the Base         |                             |
    |          | Definitions volume of         |                             |
    |          | IEEE Std 1003.1-2001, Chapter |                             |
    |          | 5, File Format Notation ( '\\ |                             |
    |          | ' , '\a' , '\b' , '\f' , '\n' |                             |
    |          | , '\r' , '\t' , '\v' ).       |                             |
>From SUSv3 (ERE):
EREs Matching Multiple Characters
   
 5. When an ERE matching a single character or an ERE enclosed in parentheses
    is followed by an interval expression of the format "{m}" , "{m,}" , or "
    {m,n}" , together with that interval expression it shall match what
    repeated consecutive occurrences of the ERE would match. The values of m
    and n are decimal integers in the range 0 <= m<= n<= {RE_DUP_MAX}, where m
    specifies the exact or minimum number of occurrences and n specifies the
    maximum number of occurrences. The expression "{m}" matches exactly m
    occurrences of the preceding ERE, "{m,}" matches at least m occurrences,
    and "{m,n}" matches any number of occurrences between m and n, inclusive.
   
    For example, in the string "abababccccccd" the ERE "c{3}" is matched by
    characters seven to nine and the ERE "(ab){2,}" is matched by characters
    one to six.

-- 
Best regards, Aleksey Cheusov.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss



Home | Main Index | Thread Index | Old Index