Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Jan 2004 19:48:22 +0100
From:      Matthias Andree <matthias.andree@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        alex@rinet.ru
Subject:   ports/60829: [PATCH] devel/strace: update to 4.5.1
Message-ID:  <E1AcULO-0006ng-JO@libertas.emma.line.org>
Resent-Message-ID: <200401021850.i02IoI5m074445@freefall.freebsd.org>

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

>Number:         60829
>Category:       ports
>Synopsis:       [PATCH] devel/strace: update to 4.5.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 02 10:50:18 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.9-STABLE FreeBSD 4.9-STABLE #69: Fri Jan  2 16:20:32 CET
>Description:
- Update to 4.5.1 (stable, 4.4.94 was a developer snapshot)
- USE_PERL5 for strace-graph
- change #! line in strace-graph to ${PERL}
- installation of some interesting files into PORTDOCS unless NOPORTDOCS is set
- add patch to fix statfs members, __val -> val.
- update configure patch
- remove - before MKDIR, the latter already uses "mkdir -p" which won't barf
  on EEXIST.

Note: strace -f doesn't work on 5-CURRENT. Not that this is a regression
through this update though...

Port maintainer (alex@rinet.ru) is cc'd.
Alex, please follow up this PR with your estimation if this port upgrade is
reasonable and if you approve it.

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- strace-4.5.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/strace/Makefile /root/strace/Makefile
--- /usr/ports/devel/strace/Makefile	Sat Apr 19 16:19:50 2003
+++ /root/strace/Makefile	Fri Jan  2 19:43:34 2004
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	strace
-PORTVERSION=	4.4.94
+PORTVERSION=	4.5.1
 CATEGORIES=	devel sysutils
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,16 +15,32 @@
 COMMENT=	A portable process tracer
 
 USE_BZIP2=	yes
+USE_PERL5=	yes # for strace-graph
+USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
 ONLY_FOR_ARCHS=	i386
 
 MAN1=		strace.1
 
+.if !defined(NOPORTDOCS)
+PORTDOCS=	*
+.endif
+
+post-patch:
+	${REINPLACE_CMD} 's,/usr/bin/perl,${PERL},' ${WRKSRC}/strace-graph
+
 do-install:
-	-${MKDIR} ${PREFIX}/bin
+	${MKDIR} ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/strace ${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKSRC}/strace-graph ${PREFIX}/bin
-	-${MKDIR} ${PREFIX}/man/man1
+	${MKDIR} ${PREFIX}/man/man1
 	${INSTALL_MAN} ${WRKSRC}/strace.1 ${PREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+.for i in AUTHORS COPYING COPYRIGHT CREDITS ChangeLog NEWS PORTING \
+	README README-freebsd README-svr4 TODO
+	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
+.endfor
+.endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/devel/strace/distinfo /root/strace/distinfo
--- /usr/ports/devel/strace/distinfo	Sat Apr 19 15:27:52 2003
+++ /root/strace/distinfo	Fri Jan  2 19:07:03 2004
@@ -1 +1 @@
-MD5 (strace-4.4.94.tar.bz2) = 483890e6ea930f8c09ccae55121ca7ac
+MD5 (strace-4.5.1.tar.bz2) = 11657c64e4289d8cfc48302e890f1a5b
diff -ruN --exclude=CVS /usr/ports/devel/strace/files/patch-configure /root/strace/files/patch-configure
--- /usr/ports/devel/strace/files/patch-configure	Sat Apr 19 15:30:41 2003
+++ /root/strace/files/patch-configure	Fri Jan  2 19:09:06 2004
@@ -1,45 +1,18 @@
-*** configure	Thu Feb 20 05:55:30 2003
---- /tmp/w/configure	Tue Feb 25 14:47:53 2003
-***************
-*** 5602,5606 ****
-  cat >>conftest.$ac_ext <<_ACEOF
-  /* end confdefs.h.  */
-! #include <netinet/in.h
-  
-  int
---- 5602,5607 ----
-  cat >>conftest.$ac_ext <<_ACEOF
-  /* end confdefs.h.  */
-! #include <sys/types.h>
-! #include <netinet/in.h>
-  
-  int
-***************
-*** 5638,5642 ****
-  cat >>conftest.$ac_ext <<_ACEOF
-  /* end confdefs.h.  */
-! #include <netinet/in.h
-  
-  int
---- 5639,5644 ----
-  cat >>conftest.$ac_ext <<_ACEOF
-  /* end confdefs.h.  */
-! #include <sys/types.h>
-! #include <netinet/in.h>
-  
-  int
-***************
-*** 6490,6493 ****
---- 6492,6496 ----
-  cat >>conftest.$ac_ext <<_ACEOF
-  /* end confdefs.h.  */
-+ #include <sys/types.h>
-  #include <netinet/in.h>
-  
-***************
-*** 6749,6752 ****
---- 6752,6756 ----
-  cat >>conftest.$ac_ext <<_ACEOF
-  /* end confdefs.h.  */
-+ #include <sys/types.h>
-  #include <sys/socket.h>
+--- configure.orig	Fri Nov  7 03:24:18 2003
++++ configure	Fri Jan  2 19:08:31 2004
+@@ -6501,6 +6501,7 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
++#include <sys/types.h>
+ #include <netinet/in.h>
+ 
+ #include <$ac_header>
+@@ -6760,6 +6761,7 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
++#include <sys/types.h>
+ #include <sys/socket.h>
+ 
+ int
diff -ruN --exclude=CVS /usr/ports/devel/strace/files/patch-file.c /root/strace/files/patch-file.c
--- /usr/ports/devel/strace/files/patch-file.c	Thu Jan  1 01:00:00 1970
+++ /root/strace/files/patch-file.c	Fri Jan  2 19:12:01 2004
@@ -0,0 +1,20 @@
+--- file.c.orig	Thu Nov 13 23:32:27 2003
++++ file.c	Fri Jan  2 19:11:23 2004
+@@ -1387,7 +1387,7 @@
+ 		statbuf.f_bsize, statbuf.f_blocks, statbuf.f_bfree);
+ 	tprintf("f_bavail=%u, f_files=%u, f_ffree=%u, f_fsid={%d, %d}, f_namelen=%u",
+ 		statbuf.f_bavail,statbuf.f_files, statbuf.f_ffree,
+-		statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1],
++		statbuf.f_fsid.val[0], statbuf.f_fsid.val[1],
+ 		statbuf.f_namelen);
+ #else /* !ALPHA */
+ 	tprintf("{f_type=%s, f_bsize=%lu, f_blocks=%lu, f_bfree=%lu, ",
+@@ -1399,7 +1399,7 @@
+ 		(unsigned long)statbuf.f_bavail,
+ 		(unsigned long)statbuf.f_files,
+ 		(unsigned long)statbuf.f_ffree,
+-		statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1]);
++		statbuf.f_fsid.val[0], statbuf.f_fsid.val[1]);
+ #ifdef LINUX
+ 	tprintf(", f_namelen=%lu", (unsigned long)statbuf.f_namelen);
+ #endif /* LINUX */
--- strace-4.5.1.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1AcULO-0006ng-JO>