ports/95179: devel/ptmalloc doesn't include a header

Pedro F. Giffuni giffunip at asme.org
Sat Apr 1 00:00:34 UTC 2006


>Number:         95179
>Category:       ports
>Synopsis:       devel/ptmalloc doesn't include a header
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 01 00:00:31 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.0-Release
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #12: Sat Feb 11 13:45:47 COT 2006     root at etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION  amd64
>Description:
The Xara Xtreme port under development currently uses dlmalloc. In order to use ptmalloc, we need the header file. The patch that follows installs the header file using the same convention as the dlmalloc port.
>How-To-Repeat:
As a side comment, this port could benefit from using posix_memalign(), recently introduced in 7.0-current
>Fix:
diff -ruN ptmalloc.orig/Makefile ptmalloc/Makefile
--- ptmalloc.orig/Makefile	Thu Mar 30 22:28:47 2006
+++ ptmalloc/Makefile	Thu Mar 30 22:40:32 2006
@@ -15,6 +15,8 @@
 COMMENT=	Alternative malloc, performs better with threaded applications
 
 do-install:	all
+	${MKDIR} ${PREFIX}/include/ptmalloc
+	${INSTALL_DATA} ${WRKSRC}/ptmalloc.h ${PREFIX}/include/ptmalloc/malloc.h
 	${INSTALL_PROGRAM} ${WRKSRC}/ptmalloc.so ${PREFIX}/lib/libptmalloc.so.1
 	${INSTALL_PROGRAM} ${WRKSRC}/ptmalloc.so ${PREFIX}/lib/libptmalloc.so
 	${INSTALL_PROGRAM} ${WRKSRC}/libptmalloc.a ${PREFIX}/lib/libptmalloc.a
diff -ruN ptmalloc.orig/pkg-plist ptmalloc/pkg-plist
--- ptmalloc.orig/pkg-plist	Thu Mar 30 22:28:47 2006
+++ ptmalloc/pkg-plist	Thu Mar 30 22:41:12 2006
@@ -1,3 +1,5 @@
+include/ptmalloc/malloc.h
+ at dirrm include/ptmalloc
 lib/libptmalloc.a
 lib/libptmalloc.so
 lib/libptmalloc.so.1

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



More information about the freebsd-ports-bugs mailing list