From bla@cs.huji.ac.il  Sun Aug 20 15:05:14 2006
Return-Path: <bla@cs.huji.ac.il>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DF68216A4E1
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Aug 2006 15:05:13 +0000 (UTC)
	(envelope-from bla@cs.huji.ac.il)
Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8B54243D55
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Aug 2006 15:05:12 +0000 (GMT)
	(envelope-from bla@cs.huji.ac.il)
Received: from rnd.cs.huji.ac.il ([132.65.16.128])
	by cs1.cs.huji.ac.il with esmtp
	id 1GEorN-0002UY-VX
	for FreeBSD-gnats-submit@freebsd.org; Sun, 20 Aug 2006 18:05:10 +0300
Received: from bla by rnd.cs.huji.ac.il with local (Exim 4.60 (FreeBSD))
	(envelope-from <bla@cs.huji.ac.il>)
	id 1GEorN-0003K1-U0
	for FreeBSD-gnats-submit@freebsd.org; Sun, 20 Aug 2006 18:05:09 +0300
Message-Id: <E1GEorN-0003K1-U0@rnd.cs.huji.ac.il>
Date: Sun, 20 Aug 2006 18:05:09 +0300
From: Amnon Aaronsohn <bla@cs.huji.ac.il>
Reply-To: Amnon Aaronsohn <bla@cs.huji.ac.il>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update port: sysutils/ltrace 0.3.6 -> 0.4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         102325
>Category:       ports
>Synopsis:       Update port: sysutils/ltrace 0.3.6 -> 0.4
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ehaupt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 20 15:10:14 GMT 2006
>Closed-Date:    Wed Aug 30 19:01:57 CEST 2006
>Last-Modified:  Wed Aug 30 19:01:57 CEST 2006
>Originator:     Amnon Aaronsohn
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD rnd 6.1-STABLE FreeBSD 6.1-STABLE #7: Fri Jun 16 14:09:18 IDT 2006 danny@bsd:/r+d/obj/bsd/i386/r+d/6.1/src/sys/HUJI i386


	
>Description:
	Update ltrace to 0.4. The previous version didn't work at all
	(see http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/100329)

	Also change the maintainer to me since there's no current
	maintainer.

	Note that this program relies on the undocumented PT_SYSCALL
	ptrace option. I'm not sure if it was implemented in versions
	of FreeBSD prior to 6.1.

>How-To-Repeat:
>Fix:


diff -urN ltrace.old/Makefile ltrace/Makefile
--- ltrace.old/Makefile	Sun Jul 30 14:17:28 2006
+++ ltrace/Makefile	Sun Aug 20 17:46:50 2006
@@ -7,17 +7,16 @@
 #
 
 PORTNAME=	ltrace
-PORTVERSION=	0.3.6
-PORTREVISION=	1
+PORTVERSION=	0.4
 CATEGORIES=	sysutils
-MASTER_SITES=	http://utopia.knoware.nl/users/driehuis/
-DISTNAME=	${PORTNAME}-${PORTVERSION}-fbsd
+MASTER_SITES=	http://www.cs.huji.ac.il/~bla/ports/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bla@cs.huji.ac.il
 COMMENT=	Dynamic Library Tracer -- similar to strace, but trace library calls
 
-# Although there is sparc code under the Linux/ directory, there is nothing
-# other than i386 in the FreeBSD/ directory as of 2003-18-06.
+LIB_DEPENDS=	elf.0:${PORTSDIR}/devel/libelf
+
+# The FreeBSD port exists only for i386
 ONLY_FOR_ARCHS=	i386
 
 GNU_CONFIGURE=	yes
@@ -29,9 +28,6 @@
 MAN1=		ltrace.1
 
 post-patch:
-	${REINPLACE_CMD} \
-		-e 's|"/etc/ltrace.conf"|"${PREFIX}/etc/ltrace.conf"|g' \
-		${WRKSRC}/ltrace.c
 	${REINPLACE_CMD} -e 's|^\(CC\)|#\1|' ${WRKSRC}/Makefile.in
 
 do-install:
@@ -39,9 +35,4 @@
 	${INSTALL_DATA} ${WRKSRC}/etc/ltrace.conf ${PREFIX}/etc
 	${INSTALL_MAN} ${WRKSRC}/ltrace.1 ${PREFIX}/man/man1
 
-UP != uname -p
-.if ${UP} == "i386"
-CXXFLAGS +=	-O3 -funroll-loops -mtune=pentiumpro -fomit-frame-pointer -pipe
-CFLAGS +=	-O3 -funroll-loops -mtune=pentiumpro -fomit-frame-pointer -pipe
-.endif
 .include <bsd.port.mk>
diff -urN ltrace.old/distinfo ltrace/distinfo
--- ltrace.old/distinfo	Wed Nov 30 12:31:19 2005
+++ ltrace/distinfo	Sun Aug 20 17:28:52 2006
@@ -1,3 +1,3 @@
-MD5 (ltrace-0.3.6-fbsd.tar.gz) = 305157fa70baaa10e917f5537ce47d1f
-SHA256 (ltrace-0.3.6-fbsd.tar.gz) = be1e51eca2ed41d76f7cfa3091a79cb0098c197c9e4f8ab30e234a97897def04
-SIZE (ltrace-0.3.6-fbsd.tar.gz) = 56425
+MD5 (ltrace-0.4.tar.gz) = 31da81c12ef3fc976c374b3a0cd1494f
+SHA256 (ltrace-0.4.tar.gz) = 22886749d621277adda5d404dedbb807a78d850c8246d35cb8cb491724d6d2c7
+SIZE (ltrace-0.4.tar.gz) = 155468
diff -urN ltrace.old/pkg-descr ltrace/pkg-descr
--- ltrace.old/pkg-descr	Mon Oct 15 22:07:30 2001
+++ ltrace/pkg-descr	Sun Aug 20 17:27:21 2006
@@ -1,4 +1,4 @@
 ltrace is a dynamic library tracer.  ltrace is a debugging tool, similar to
 strace, but it traces library calls instead of system calls.
 
-WWW: http://utopia.knoware.nl/users/driehuis/
+WWW: http://packages.debian.org/unstable/utils/ltrace.html

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ehaupt 
Responsible-Changed-By: ehaupt 
Responsible-Changed-When: Wed Aug 30 18:17:34 CEST 2006 
Responsible-Changed-Why:  
I will take care of it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102325 
State-Changed-From-To: open->closed 
State-Changed-By: ehaupt 
State-Changed-When: Wed Aug 30 19:00:04 CEST 2006 
State-Changed-Why:  
Committed, thanks! I marked it IGNORE on OSVERSION prior to 502000 since the 
PT_SYSCALL ptrace option wasn't introduced before 5.2-RELEASE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=102325 
>Unformatted:
