From owner-freebsd-ports Fri Nov 3 10:20:19 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CC6B137B479 for ; Fri, 3 Nov 2000 10:20:09 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA56203; Fri, 3 Nov 2000 10:20:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Fri, 3 Nov 2000 10:20:09 -0800 (PST) Message-Id: <200011031820.KAA56203@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: David Lebel Subject: Re: ports/22583: New port: qsubst-1.0 Reply-To: David Lebel Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/22583; it has been noted by GNATS. From: David Lebel To: lebel@frodo.lebel.org Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: ports/22583: New port: qsubst-1.0 Date: Fri, 3 Nov 2000 13:15:38 -0500 Please ignore this port. It core dump. I'll resubmit later with a bugfix. Ciao, ...David Quoting lebel@frodo.lebel.org (lebel@frodo.lebel.org): > > >Number: 22583 > >Category: ports > >Synopsis: New port: qsubst-1.0 > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-ports > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Fri Nov 03 10:10:01 PST 2000 > >Closed-Date: > >Last-Modified: > >Originator: David Lebel > >Release: FreeBSD 4.1.1-STABLE i386 > >Organization: > None whatsoever. > >Environment: > > >Description: > > Qsubst is designed for substituting strings in (large) > files. It accepts a list of file names and two strings. > For each of the files, qsubst modifies it in-place to > replace string1 with string2 wherever the user approves > the change. > > >How-To-Repeat: > > >Fix: > > # This is a shell archive. Save it in a file, remove anything before > # this line, and then unpack it by entering "sh file". Note, it may > # create directories; files and directories will be owned by you and > # have default permissions. > # > # This archive contains: > # > # qsubst > # qsubst/Makefile > # qsubst/files > # qsubst/files/patch-aa > # qsubst/pkg-plist > # qsubst/pkg-comment > # qsubst/distinfo > # qsubst/pkg-descr > # > echo c - qsubst > mkdir -p qsubst > /dev/null 2>&1 > echo x - qsubst/Makefile > sed 's/^X//' >qsubst/Makefile << 'END-of-qsubst/Makefile' > X# ports collection makefile for: qsubst > X# Date created: 3 November 2000 > X# Whom: David Lebel > X# > X# $FreeBSD$ > X# > X > XPORTNAME= qsubst > XPORTVERSION= 1.0 > XCATEGORIES= textproc > XMASTER_SITES= ${MASTER_SITE_COMP_SOURCES} > XMASTER_SITE_SUBDIR= unix/volume11 > XDISTNAME= qsubst > XEXTRACT_SUFX= .Z > X > XMAINTAINER= ports@FreeBSD.org > X > XBUILD_DEPENDS= gunshar:${PORTSDIR}/archivers/gshar+gunshar > X > XNO_WRKSUBDIR= yes > X > XEXTRACT_CMD= zcat > XEXTRACT_BEFORE_ARGS= > XEXTRACT_AFTER_ARGS= | gunshar -d ${WRKDIR} > X > XMAN1= qsubst.1 > X > Xdo-install: > X @${INSTALL_PROGRAM} ${WRKSRC}/qsubst ${PREFIX}/bin/qsubst > X @${INSTALL_MAN} ${WRKSRC}/qsubst.1 ${PREFIX}/man/man1/qsubst.1 > X > X.include > END-of-qsubst/Makefile > echo c - qsubst/files > mkdir -p qsubst/files > /dev/null 2>&1 > echo x - qsubst/files/patch-aa > sed 's/^X//' >qsubst/files/patch-aa << 'END-of-qsubst/files/patch-aa' > Xdiff -ruN /tmp/qsubst/Makefile ./Makefile > X--- /tmp/qsubst/Makefile Fri Nov 3 12:35:23 2000 > X+++ ./Makefile Fri Nov 3 12:46:36 2000 > X@@ -2,4 +2,4 @@ > X install: qsubst qsubst.1 > X @echo copy qsubst and qsubst.1 to appropriate directories. > X qsubst: qsubst.c > X- $(CC) $(CFLAGS) -o qsubst qsubst.c > X+ $(CC) $(CFLAGS) -lcurses -o qsubst qsubst.c > Xdiff -ruN /tmp/qsubst/qsubst.c ./qsubst.c > X--- /tmp/qsubst/qsubst.c Fri Nov 3 12:35:23 2000 > X+++ ./qsubst.c Fri Nov 3 12:50:20 2000 > X@@ -95,7 +95,7 @@ > X char *tgetstr(); > X char *malloc(); > X char *sindex(); > X-char *mktemp(); > X+char *mkstemp(); > X > X FILE *tempf; > X long int tbeg; > X@@ -128,10 +128,10 @@ > X int mask; > X > X mask = sigblock(0); > X- old_tstp = signal(SIGTSTP,SIG_DFL); > X+ old_tstp = (void *)signal(SIGTSTP,(void *)SIG_DFL); > X sigsetmask(mask&~sigmask(SIGTSTP)); > X kill(getpid(),SIGTSTP); > X- signal(SIGTSTP,old_tstp); > X+ signal(SIGTSTP,(void *)old_tstp); > X } > X > X sigtstp() > X@@ -194,7 +194,7 @@ > X } > X } > X } > X- cp = mktemp("/tmp/qsubst.XXXXXX"); > X+ cp = mkstemp("/tmp/qsubst.XXXXXX"); > X tempf = fopen(cp,"w+"); > X if (tempf == NULL) > X { fprintf(stderr,"%s: cannot create temp file %s\n",argvec[0],cp); > X@@ -219,7 +219,7 @@ > X exit(1); > X } > X ioctl(fileno(stdin),TIOCGETP,&orig_sg); > X- signal(SIGTSTP,sigtstp); > X+ signal(SIGTSTP,(void *)sigtstp); > X allfly = 0; > X cabove = 2; > X cbelow = 2; > END-of-qsubst/files/patch-aa > echo x - qsubst/pkg-plist > sed 's/^X//' >qsubst/pkg-plist << 'END-of-qsubst/pkg-plist' > Xbin/qsubst > END-of-qsubst/pkg-plist > echo x - qsubst/pkg-comment > sed 's/^X//' >qsubst/pkg-comment << 'END-of-qsubst/pkg-comment' > Xquery/substitute strings in files > END-of-qsubst/pkg-comment > echo x - qsubst/distinfo > sed 's/^X//' >qsubst/distinfo << 'END-of-qsubst/distinfo' > XMD5 (qsubst.Z) = df0512d1c2d4430cbe92e351cc9dafc1 > END-of-qsubst/distinfo > echo x - qsubst/pkg-descr > sed 's/^X//' >qsubst/pkg-descr << 'END-of-qsubst/pkg-descr' > XQsubst is designed for substituting strings in (large) > Xfiles. It accepts a list of file names and two strings. > XFor each of the files, qsubst modifies it in-place to > Xreplace string1 with string2 wherever the user approves > Xthe change. > END-of-qsubst/pkg-descr > exit > > > >Release-Note: > >Audit-Trail: > >Unformatted: > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message > -- // david lebel // nobiaze' Inc. // http://www.lebel.org/ // http://www.nobiaze.com/ // pgp: 3633 6999 D47E 73ED 099F // vox: (514) 943.3045 4341 08A4 8E48 EF56 61D1 // fax: (514) 938.8881 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message