Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 2000 03:06:34 -0400 (EDT)
From:      Trevor Johnson <trevor@jpj.net>
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/18462: update port:  textutils/diffstat to 1.28
Message-ID:  <Pine.BSI.4.21.0005090246340.10886-100000@blues.jpj.net>

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

>Number:         18462
>Category:       ports
>Synopsis:       update port:  textutils/diffstat to 1.28
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 09 00:10:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Trevor Johnson (trevor@jpj.net)
>Release:        5.0-CURRENT
>Organization:
myself
>Environment:

only tested under FreeBSD 5.0-CURRENT #0: Fri May 5 02:23:13 PDT 2000
/usr/src/sys/compile/TRYAGAIN40 i386

>Description:

The author seems to have removed the distfile for the old version, so the
port is broken for "make fetch" is broken until this update is
applied.  Therefore please give it a little extra priority.

I am the maintainer of the port.

Here is a log showing no problems with the update:

Script started on Mon May  8 23:39:57 2000
bash-2.03# pwd
/usr/ports/textproc/diffstat
bash-2.03# portlint -ac
OK: checking pkg/PLIST.
OK: checking /usr/ports/textproc/diffstat/pkg/COMMENT.
OK: checking /usr/ports/textproc/diffstat/pkg/DESCR.
OK: checking Makefile.
OK: checking /usr/ports/textproc/diffstat/files/md5.
OK: checking pkg/COMMENT.
OK: checking pkg/DESCR.
OK: checking patches/patch-aa.
OK: checking patches/patch-ab.
OK: checking patches/patch-ad.
looks fine.
bash-2.03# make install package deinstall && pkg_add diffstat-1.28.tgz && make deinstall reinstall package
>How-To-Repeat:
N/A
>Fix:

diff -ruN diffstat.orig/Makefile diffstat/Makefile
--- diffstat.orig/Makefile	Sun Apr  9 14:52:20 2000
+++ diffstat/Makefile	Mon May  8 23:34:39 2000
@@ -6,17 +6,16 @@
 #
 
 PORTNAME=	diffstat
-PORTVERSION= 	1.27
+PORTVERSION= 	1.28
 CATEGORIES=	textproc devel
-MASTER_SITES=	ftp://ftp.clark.net/pub/dickey/diffstat/ \
-		http://www.clark.net/pub/dickey/diffstat/
-EXTRACT_SUFX=	.tgz
+MASTER_SITES=	ftp://dickey.his.com/diffstat/
+DISTNAME=	${PORTNAME}
 
 MAINTAINER=	trevor@jpj.net
 
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 MAKEFILE=	makefile
 GNU_CONFIGURE=	yes
-#USE_AUTOCONF=	yes
 
 MAN1=		diffstat.1
 
diff -ruN diffstat.orig/files/md5 diffstat/files/md5
--- diffstat.orig/files/md5	Fri Nov 26 12:40:38 1999
+++ diffstat/files/md5	Mon May  8 23:16:00 2000
@@ -1 +1 @@
-MD5 (diffstat-1.27.tgz) = b5e37dbfe50a4d5988885e2279cccffc
+MD5 (diffstat.tar.gz) = c75ab2a0e0be45ac89931e95020aa032
diff -ruN diffstat.orig/patches/patch-ac diffstat/patches/patch-ac
--- diffstat.orig/patches/patch-ac	Thu Feb 17 20:12:56 2000
+++ diffstat/patches/patch-ac	Wed Dec 31 16:00:00 1969
@@ -1,10 +0,0 @@
---- makefile.in.orig	Fri Jan 16 17:36:01 1998
-+++ makefile.in	Wed Feb 16 11:22:59 2000
-@@ -49,7 +49,6 @@
- 	$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
- 
- $(THIS): $(OBJ)
--	-mv $(THIS) o$(THIS)
- 	$(LINK) $(LDFLAGS) -o $(THIS) $(OBJ) $(LIBS)
- 
- install: all installdirs
diff -ruN diffstat.orig/patches/patch-ad diffstat/patches/patch-ad
--- diffstat.orig/patches/patch-ad	Thu Feb 17 20:12:57 2000
+++ diffstat/patches/patch-ad	Mon May  8 23:28:31 2000
@@ -1,16 +1,16 @@
---- diffstat.c.orig	Sun May 17 05:07:38 1998
-+++ diffstat.c	Wed Feb 16 11:20:00 2000
-@@ -83,13 +83,11 @@
- #if HAVE_MALLOC_H
+--- diffstat.c.orig	Wed Mar 29 16:01:19 2000
++++ diffstat.c	Mon May  8 23:28:20 2000
+@@ -92,13 +92,11 @@
+ #ifdef HAVE_MALLOC_H
  #include <malloc.h>
  #else
--extern	char	*malloc();
+-extern char *malloc();
  #endif
  
- #if HAVE_GETOPT_H
+ #ifdef HAVE_GETOPT_H
  #include <getopt.h>
  #else
--extern	int	getopt();
- extern	char	*optarg;
- extern	int	optind;
+-extern int getopt();
+ extern char *optarg;
+ extern int optind;
  #endif
diff -ruN diffstat.orig/pkg/DESCR diffstat/pkg/DESCR
--- diffstat.orig/pkg/DESCR	Fri Nov 26 12:40:38 1999
+++ diffstat/pkg/DESCR	Mon May  8 23:39:08 2000
@@ -4,6 +4,7 @@
 diffs, or the default format generated by "diff".
 
 WWW: http://www.clark.net/pub/dickey/diffstat/diffstat.html
+     http://dickey.his.com/diffstat/diffstat.html
 
 Trevor Johnson
 trevor@jpj.net


>Release-Note:
>Audit-Trail:
>Unformatted:
 >> diffstat.tar.gz doesn't seem to exist on this system.
 >> Attempting to fetch from file:/usr/local/share/apache/htdocs/distfiles/.
 cp: /usr/local/share/apache/htdocs/distfiles/diffstat.tar.gz: No such file or directory
 >> Attempting to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/.
 fetch: pub/FreeBSD/ports/distfiles/diffstat.tar.gz: cannot get remote modification time
 fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/diffstat.tar.gz: FTP error:
 fetch: File unavailable (e.g., file not found, no access)
 >> Attempting to fetch from ftp://dickey.his.com/diffstat/.
 Receiving diffstat.tar.gz (25757 bytes): 100%
 25757 bytes transferred in 7.9 seconds  (3.19 Kbytes/s)
 ===>  Extracting for diffstat-1.28
 >> Checksum OK for diffstat.tar.gz.
 ===>  Patching for diffstat-1.28
 ===>  Applying FreeBSD patches for diffstat-1.28
 ===>  Configuring for diffstat-1.28
 creating cache ./config.cache
 checking for gcc... cc
 checking whether the C compiler (cc -O -pipe ) works... yes
 checking whether the C compiler (cc -O -pipe ) is a cross-compiler... no
 checking whether we are using GNU C... yes
 checking whether cc accepts -g... yes
 checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
 checking how to run the C preprocessor... cc -E
 checking whether cc needs -traditional... no
 checking for working const... yes
 checking for ANSI C header files... yes
 checking for stdlib.h... yes
 checking for unistd.h... yes
 checking for string.h... yes
 checking for size_t... yes
 checking for popen... yes
 updating cache ./config.cache
 creating ./config.status
 creating makefile
 creating config.h
 ===>  Building for diffstat-1.28
 cc  -o diffstat -I. -I. -DHAVE_CONFIG_H -O -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wmissing-prototypes diffstat.c 
 ===>  Installing for diffstat-1.28
 /bin/sh ./mkdirs.sh /usr/local/bin /usr/local/lib /usr/local/man/man1
 install -c -s -o root -g wheel -m 555 diffstat /usr/local/bin/diffstat
 install -c -o root -g wheel -m 444 ./diffstat.1 /usr/local/man/man1/diffstat.1
 ===>   Generating temporary packing list
 strip -s /usr/local/bin/diffstat
 ===>   Compressing manual pages for diffstat-1.28
 ===>   Registering installation for diffstat-1.28
 ===>  Building package for diffstat-1.28
 Creating package /usr/ports/textproc/diffstat/diffstat-1.28.tgz
 Registering depends:.
 Creating gzip'd tar ball in '/usr/ports/textproc/diffstat/diffstat-1.28.tgz'
 ===>  Deinstalling for diffstat-1.28
 ===>  Deinstalling for diffstat-1.28
 ===>  Installing for diffstat-1.28
 /bin/sh ./mkdirs.sh /usr/local/bin /usr/local/lib /usr/local/man/man1
 install -c -s -o root -g wheel -m 555 diffstat /usr/local/bin/diffstat
 install -c -o root -g wheel -m 444 ./diffstat.1 /usr/local/man/man1/diffstat.1
 ===>   Generating temporary packing list
 strip -s /usr/local/bin/diffstat
 ===>   Compressing manual pages for diffstat-1.28
 ===>   Registering installation for diffstat-1.28
 ===>  Building package for diffstat-1.28
 Creating package /usr/ports/textproc/diffstat/diffstat-1.28.tgz
 Registering depends:.
 Creating gzip'd tar ball in '/usr/ports/textproc/diffstat/diffstat-1.28.tgz'
 bash-2.03# uname -a
 FreeBSD dennis1.fusilaw.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri May  5 02:23:13 PDT 2000     root@dennis1.fusilaw.com:/usr/src/sys/compile/TRYAGAIN40  i386
 bash-2.03# exit
 
 Script done on Mon May  8 23:41:26 2000
 


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?Pine.BSI.4.21.0005090246340.10886-100000>