ports/62919: [PATCH] misc/posixtestsuite, respect PTHREAD_LIBS
Craig Rodrigues
rodrigc at crodrigues.org
Mon Feb 16 16:30:18 UTC 2004
>Number: 62919
>Category: ports
>Synopsis: [PATCH] misc/posixtestsuite, respect PTHREAD_LIBS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 16 08:30:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Craig Rodrigues
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD 5.2-CURRENT FreeBSD 5.2-CURRENT #33
>Description:
This patch fixes a few things:
- respect ${PTHREAD_LIBS} defined in /usr/ports/Mk/bsd.port.mk
- change a few spaces to tabs to make portlint -A happy
- correct the wording in the WITH_THRLIB documentation
>How-To-Repeat:
>Fix:
--- Makefile.orig Mon Feb 16 11:15:49 2004
+++ Makefile Mon Feb 16 11:21:47 2004
@@ -10,7 +10,7 @@
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= posixtest
+MASTER_SITE_SUBDIR= posixtest
MAINTAINER= phantom at FreeBSD.org
COMMENT= Open POSIX Test Suite
@@ -26,9 +26,9 @@
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-REGR_LOG= log.run-4stable
+REGR_LOG= log.run-4stable
.else
-REGR_LOG= log.run-5current
+REGR_LOG= log.run-5current
.endif
RUN_RESULT= ${WRKSRC}/run.result
@@ -43,7 +43,7 @@
.if defined(WITH_THRLIB)
THRLIB=${WITH_THRLIB}
.else
-THRLIB= -lc_r
+THRLIB= ${PTHREAD_LIBS}
.endif
pre-everything::
@@ -58,12 +58,12 @@
@${ECHO} ""
@${ECHO} " * QUIET - don't print progress messages while running"
@${ECHO} " * WITH_THRLIB - choose thread library to run test against"
- @${ECHO} " (NB: by default 'libc_r' is used)"
+ @${ECHO} " (NB: by default '"${PTHREAD_LIBS}"' is used)"
@${ECHO} ""
@${ECHO} "Examples:"
@${ECHO} ""
- @${ECHO} " make WITH_THRLIB=libkse run"
- @${ECHO} " - run tests against libkse"
+ @${ECHO} " make WITH_THRLIB=-lpthread run"
+ @${ECHO} " - run tests against libpthread"
@${ECHO} ""
@${ECHO} " make QUIET=YES WITH_THRLIB= regression"
@${ECHO} " - be quiet, run tests against libc, compare tests results"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list