NetBSD-Bugs archive

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

Re: lib/56024: Recent regex change breaks textproc/link-grammar



The following reply was made to PR lib/56024; it has been noted by GNATS.

From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/56024: Recent regex change breaks textproc/link-grammar
Date: Fri, 26 Feb 2021 12:18:34 -0500

 --Apple-Mail=_0B6ADFEC-D59F-41E8-8F0E-B53058C1C55A
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=us-ascii
 
 What' going on here is that the package was expecting to have gnu regex =
 that supports \w out of the box.
 Our old regex code just ignored \<characters> that it did not =
 understand, so it was not working correctly either; it was just ignoring =
 the error.
 The current regex code will work properly if you pass REG_GNU in =
 regcomp(). This is not the default behavior.
 
 Best,
 
 christos
 
 > On Feb 26, 2021, at 10:30 AM, ryo%tetera.org@localhost wrote:
 >=20
 >> Number:         56024
 >> Category:       lib
 >> Synopsis:       Recent regex change breaks textproc/link-grammar
 >> Confidential:   no
 >> Severity:       serious
 >> Priority:       medium
 >> Responsible:    lib-bug-people
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Fri Feb 26 15:30:01 +0000 2021
 >> Originator:     Ryo ONODERA
 >> Release:        NetBSD 9.99.80
 >> Organization:
 > Ryo ONODERA // ryo%tetera.org@localhost
 > PGP fingerprint =3D 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
 >> Environment:
 >=20
 >=20
 > System: NetBSD brownie 9.99.80 NetBSD 9.99.80 (DTRACE7) #0: Fri Feb 26 =
 15:59:31 JST 2021 =
 ryoon@brownie:/usr/world/9.99/amd64/obj/sys/arch/amd64/compile/DTRACE7 =
 amd64
 > Architecture: x86_64
 > Machine: amd64
 >> Description:
 > After recent regex change in libc, textproc/link-grammar failed to =
 load
 > dictionary file.
 >=20
 > # cd /usr/pkgsrc/textproc/link-grammar
 > # make install
 > $ link-parser en
 > link-grammar: Info: Dictionary found at =
 /usr/pkg/share/link-grammar/en/4.0.dict
 > link-grammar: Error: Failed to compile regex: "^\w.+ing$" =
 (<ING-WORDS>): trailing backslash (\) (5)
 > link-grammar: Fatal error: Unable to open dictionary.
 >=20
 > On HEAD of 202102202230Z from
 > =
 http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/202102202230Z/amd64/binary/s=
 ets/ ,
 > link-parser command works fine.
 >=20
 > $ link-parser en
 > link-grammar: Info: Dictionary found at =
 /usr/pkg/share/link-grammar/en/4.0.dict
 > link-grammar: Info: Dictionary version 5.8.1, locale en_US.UTF-8
 > link-grammar: Info: Library version link-grammar-5.8.1. Enter "!help" =
 for help.
 > linkparser>
 >=20
 >> How-To-Repeat:
 > # cd /usr/pkgsrc/textproc/link-grammar
 > # make install
 > % link-parser en
 >=20
 >> Fix:
 >=20
 > I have no idea.
 >=20
 >> Unformatted:
 >=20
 >=20
 
 
 --Apple-Mail=_0B6ADFEC-D59F-41E8-8F0E-B53058C1C55A
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP
 
 -----BEGIN PGP SIGNATURE-----
 Comment: GPGTools - http://gpgtools.org
 
 iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCYDktagAKCRBxESqxbLM7
 OhVEAKDagf4kEQ9nUJbsrbmqxl2BEMY9uACaAwqDmHBV+NBEYLYU9HgesgE7rTg=
 =58k4
 -----END PGP SIGNATURE-----
 
 --Apple-Mail=_0B6ADFEC-D59F-41E8-8F0E-B53058C1C55A--
 


Home | Main Index | Thread Index | Old Index