ports/126547: devel/ptmalloc port enhancements

Pedro F. Giffuni giffunip at tutopia.com
Fri Aug 15 06:20:01 UTC 2008


>Number:         126547
>Category:       ports
>Synopsis:       devel/ptmalloc port enhancements
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 15 06:20:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        7.0-Release
>Organization:
>Environment:
FreeBSD kakumen.cable.net.co 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #0: Fri Aug  8 16:42:27 COT 2008     root at kakumen.cable.net.co:/usr/src/sys/amd64/compile/GENERIC  amd64

>Description:
- USE_GMAKE is not necessary
- make thread aware by using the 'posix' target
- add regression-test target
- Clean up some unnecessary verbosity.

The posix target introduced a lot of warnings but it seems to work. This malloc should behave pretty much like the one in glibc now, but FreeBSD's native malloc is probably better.
>How-To-Repeat:

>Fix:
diff -ruN ptmalloc.orig/Makefile ptmalloc/Makefile
--- ptmalloc.orig/Makefile	2008-08-15 01:01:13.000000000 -0500
+++ ptmalloc/Makefile	2008-08-15 00:59:28.000000000 -0500
@@ -14,11 +14,11 @@
 MAINTAINER=	giffunip at tutopia.com
 COMMENT=	Alternative threads-aware malloc
 
-USE_GMAKE=	yes
 USE_LD_CONFIG=	yes
 WRKSRC=	${WRKDIR}/${PORTNAME}2
-INCDIR=	include/${PORTNAME}
+ALL_TARGET=	posix
 
+INCDIR=	include/${PORTNAME}
 PLIST_SUB=	INCDIR=${INCDIR}
 
 post-patch:
@@ -32,11 +32,7 @@
 	${LN} -s ${PREFIX}/lib/ptmalloc.so.2 ${PREFIX}/lib/libptmalloc.so
 	${INSTALL_PROGRAM} ${WRKSRC}/libmalloc.a ${PREFIX}/lib/libptmalloc.a
 
-post-install:
-	@${ECHO_CMD}
-	@${ECHO_CMD} Not much documentation is available.
-	@${ECHO_CMD} Read ${WRKSRC:S|^${WRKDIRPREFIX}${.CURDIR}/||}/README for what there is.
-	@${ECHO_CMD} See also pkg_descr
-	@${ECHO_CMD}
+regression-test: build
+	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
 
 .include <bsd.port.mk>
diff -ruN ptmalloc.orig/pkg-descr ptmalloc/pkg-descr
--- ptmalloc.orig/pkg-descr	2008-08-14 13:56:19.000000000 -0500
+++ ptmalloc/pkg-descr	2008-08-15 00:49:31.000000000 -0500
@@ -1,7 +1,7 @@
 ptmalloc is the original version of the malloc that was later included
-in GNU libc.  This version is *not* GPL or LGPL:
+in GNU libc.  This version is also but *not* exclusively LGPL:
 
-  Copyright (c) 1999 Wolfram Gloger
+  Copyright (c) 2001-2006 Wolfram Gloger
   
   Permission to use, copy, modify, distribute, and sell this software
   and its documentation for any purpose is hereby granted without fee,
@@ -21,12 +21,8 @@
   THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
   PERFORMANCE OF THIS SOFTWARE.
 
-This is not the latest version: it's older than the one in GNU libc.
-
 This package comes with no documentation beyond a README, which isn't
 worth installing.  It appears that the GNU libc man page malloc(3)
-applies, but it's not included here for copyright reasons.  There's
-nothing unusual about it.  In particular, the section TUNING in
-FreeBSD malloc(3) does not apply.
+applies, but it's not included here for copyright reasons.
 
 WWW: http://www.malloc.de/en/


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



More information about the freebsd-ports-bugs mailing list