Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 1999 15:44:54 +0200 (CEST)
From:      dirk.meyer@dinoex.sub.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14420: news/cnews is broken with awk 3.0.3
Message-ID:  <199910191344.PAA71533@home.dinoex.sub.org>

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

>Number:         14420
>Category:       ports
>Synopsis:       news/cnews is broken with awk 3.0.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 19 10:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Meyer
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
privat
>Environment:

	FreeBSD 3.2 FreeBSD 3.3
	system awk (gawk 3.0.3)

>Description:

	Regression check fails (make r)
	News system crash, cause awk corrupts output

>How-To-Repeat:
>Fix:

	use akw 2.15 or awk 3.0.4
	and apply this patches

diff cnews/Makefile cnews-cr.g/Makefile
--- cnews/Makefile	Sat Oct  2 06:06:49 1999
+++ cnews-cr.g/Makefile	Tue Oct 19 15:39:36 1999
@@ -44,6 +44,7 @@
 		mkhistory.8cn newsaux.8cn newsbatch.8cn newsmail.8cn \
 		newsmaint.8cn newsoverview.8 relaynews.8cn report.8cn \
 		rnews.8cn
+PLIST=		${WRKDIR}/.PLIST.sed
 
 MODIFY=		conf/quiz.def \
 		conf/substitutions \
@@ -55,6 +56,13 @@
 NEWSOV?=	/var/news/over.view
 PGPVERIFY?=	pgpverify-1.12
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 300000
+.else
+BROKEN=		gawk need to be updated to 3.0.4
+.endif
+
 pre-patch:
 	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${PGPVERIFY} ${WRKSRC}/${PGPVERIFY}
 
@@ -70,6 +78,10 @@
 		-e "s=/usr/local/bin=${PREFIX}/bin=" \
 		${WRKSRC}/${i}.sed >${WRKSRC}/${i}
 .endfor
+	@${SED} \
+		-e "s=news/cnewsbin=${NEWSBIN:S=${PREFIX}/==}=" \
+		-e "s=news/lib=${NEWSCTL:S=${PREFIX}/==}=" \
+		${PKGDIR}/PLIST >${PLIST}
 
 do-install:
 	${RM} -f ${PREFIX}/bin/inews
@@ -106,4 +118,4 @@
 	@${ECHO} "!!!!!!!!"
 	@${ECHO} ""
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff cnews/pkg/PLIST cnews-cr.g/pkg/PLIST
--- cnews/pkg/PLIST	Sat Oct  2 06:06:49 1999
+++ cnews-cr.g/pkg/PLIST	Tue Oct 19 15:18:42 1999
@@ -150,5 +150,7 @@
 @dirrm news/cnewsbin/maint
 @dirrm news/cnewsbin/nov
 @dirrm news/cnewsbin/relay
-@dirrm news/lib/bin
 @dirrm news/cnewsbin
+@dirrm news/lib/bin
+@dirrm news/lib
+@dirrm news

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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