ports/166593: [MAINTAINER] ports-mgmt/porttools: CVS expansion of $FreeBSD:$ trashes sed pattern in util_diff

Johannes 5 Joemann joemann at beefree.free.de
Tue Apr 3 13:20:03 UTC 2012


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

From: Johannes 5 Joemann <joemann at beefree.free.de>
To: bug-followup at freebsd.org
Cc:  
Subject: Re: ports/166593: [MAINTAINER] ports-mgmt/porttools: CVS expansion
 of $FreeBSD:$ trashes sed pattern in util_diff
Date: Tue, 3 Apr 2012 15:15:55 +0200

 Oops, I didn't include the How-To-Repeat section in my first mail. So
 here's an easy way to see the broken sed pattern "at work", which is
 caused by CVS expansion of "$FreeBSD:...$" in the checked out version of
 ports-mgmt/porttools/files/patch-util_diff.in:
 
 >How-To-Repeat:
 % cd /usr/ports/ports-mgmt/porttools
 % grep FreeBSD Makefile
 # $FreeBSD: ports/ports-mgmt/porttools/Makefile,v 1.31 2012/04/01 20:06:07 amdmi3 Exp $
 % port | head -1
 FreeBSD Port Tools 0.99_5
 % port submit -P | head -4
 Default diff mode is /usr/ports
 sed: 1: "1,/^($|[^#].*$)|\$FreeB ...": extra characters at the end of p command
 Warning: current directory name differs from Makefile header:
 	porttools != 
 ===> Generating patch
 % 



More information about the freebsd-ports-bugs mailing list