Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2006 23:54:11 GMT
From:      "Pedro F. Giffuni" <giffunip@asme.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/95179: devel/ptmalloc doesn't include a header
Message-ID:  <200603312354.k2VNsB0B050315@www.freebsd.org>
Resent-Message-ID: <200604010000.k3100WTc088422@freefall.freebsd.org>

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

>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@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
+@dirrm include/ptmalloc
 lib/libptmalloc.a
 lib/libptmalloc.so
 lib/libptmalloc.so.1

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603312354.k2VNsB0B050315>