ports/179352: databases/mysql51-server: remove optional dependency on eevel/linuxthreads
Rene Ladan
rene at FreeBSD.org
Wed Jun 5 21:10:01 UTC 2013
>Number: 179352
>Category: ports
>Synopsis: databases/mysql51-server: remove optional dependency on eevel/linuxthreads
>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: Wed Jun 05 21:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Rene Ladan
>Release: FreeBSD 9.1-amd64
>Organization:
>Environment:
Ports Tree at revision 320012
>Description:
databases/mysql51-server optionally depends on devel/linuxthreads, which is expired. Remove the WITH_LINUXTHREADS knob from the Makefile.
>How-To-Repeat:
`Tools/scripts/rmport devel/linuxthreads` finds this port.
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
--- Makefile (revision 320012)
+++ Makefile (working copy)
@@ -72,17 +72,8 @@
.if ${ARCH} == "i386"
CONFIGURE_ARGS+=--enable-assembler
.endif
-.if defined(WITH_LINUXTHREADS)
-CONFIGURE_ARGS+=--with-named-thread-libs='-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R
-CONFIGURE_ARGS+=-D_THREAD_SAFE -I${LOCALBASE}/include/pthread/linuxthreads
-CFLAGS+= -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
-CFLAGS+= -I${LOCALBASE}/include/pthread/linuxthreads
-LIB_DEPENDS+= lthread:${PORTSDIR}/devel/linuxthreads
-CONFIGURE_ARGS+=-L${LOCALBASE}/lib -llthread -llgcc_r -llstdc++ -llsupc++'
-.else
CONFIGURE_ARGS+=--with-named-thread-libs=${PTHREAD_LIBS}
CFLAGS+= ${PTHREAD_CFLAGS}
-.endif
.if defined(BUILD_OPTIMIZED)
CFLAGS+= -O3 -fno-omit-frame-pointer
@@ -140,7 +131,6 @@
@${ECHO} " WITH_COLLATION=collate Define default collation (latin1_swedish_ci)."
@${ECHO} " WITH_OPENSSL=yes Enable secure connections"
@${ECHO} " (define WITHOUT_YASSL for backward compatibility)."
- @${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} " WITH_PROC_SCOPE_PTH=yes Use process scope threads"
@${ECHO} " (try it if you use libpthread)."
@${ECHO} " WITH_FAST_MUTEXES=yes Replace mutexes with spinlocks."
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list