Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2013 17:44:40 +0900 (JST)
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        turutani@scphys.kyoto-u.ac.jp
Subject:   ports/176985: building devel/libgee fails with japanese/sed
Message-ID:  <201303150844.r2F8ieOZ056846@h120.65.226.10.32118.vlan.kuins.net>
Resent-Message-ID: <201303150850.r2F8o1Nb088185@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176985
>Category:       ports
>Synopsis:       building devel/libgee fails with japanese/sed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 15 08:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 8.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #25: Mon Jan 24 10:37:18 JST 2011 turutani@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	building devel/libgee fails while japanese/sed is installed.
	"-E" option is not understood.
	
>How-To-Repeat:
	always with japanese/sed installed.
	
>Fix:
	use "-r" instead of "-E".
	a patch for devel/libgee can be written.
	however, I think fixing japanese/sed is better.
	I do not know whether "-r" can be treated just as "-E",
	but sed/sed.c says "-r" is for extended regular expression.
	here is a patch which should be saved as japanese/sed/files/patch-sed_sed.c:

--- sed/sed.c.orig	2010-02-14 06:44:16.000000000 +0900
+++ sed/sed.c	2013-03-15 17:22:38.000000000 +0900
@@ -292,7 +292,7 @@
 #endif /*STUB_FROM_RX_LIBRARY_USAGE*/
 
   myname = *argv;
-  while ((opt = getopt_long(argc, argv, "hnrVe:f:W:", longopts, NULL)) != EOF)
+  while ((opt = getopt_long(argc, argv, "hnrEVe:f:W:", longopts, NULL)) != EOF)
     {
       switch (opt)
 	{
@@ -307,6 +307,7 @@
 	  break;
 
 	case 'r':
+	case 'E':
 	  use_extended_syntax_p = 1;
 	  rx_testing = 1;
 	  break;

	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303150844.r2F8ieOZ056846>