ports/180181: [PATCH] databases/postgresql92-server: Add pthread support option
Sevan Janiyan
venture37 at geeklan.co.uk
Mon Jul 1 20:40:00 UTC 2013
>Number: 180181
>Category: ports
>Synopsis: [PATCH] databases/postgresql92-server: Add pthread support option
>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: Mon Jul 01 20:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Sevan Janiyan
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
Dream Industries
>Environment:
System: FreeBSD 10.0-CURRENT FreeBSD 10.0-CURRENT #4 r252362: Sat Jun 29 04:03:50 MSK
>Description:
An alternative to ports/175783, instead of making building with pthread support explicit,
make it a selectable option which is off by default.
While here also clean some errors reported by portlint.
Port maintainer (pgsql at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- postgresql-server-9.2.4.patch begins here ---
diff -ruN /usr/ports/databases/postgresql92-server/Makefile ./Makefile
--- /usr/ports/databases/postgresql92-server/Makefile 2013-05-13 01:09:38.000000000 +0400
+++ ./Makefile 2013-07-01 22:40:55.657607594 +0400
@@ -79,11 +79,11 @@
.endif
.if !defined(SLAVE_ONLY)
-OPTIONS_DEFINE+= NLS DTRACE PAM LDAP GSSAPI OPTIMIZED_CFLAGS XML TZDATA DEBUG KRB5
-OPTIONS_SINGLE= KRB5
-OPTIONS_SINGLE_KRB5= MIT_KRB5 HEIMDAL_KRB5
+OPTIONS_DEFINE+= NLS DTRACE PAM LDAP GSSAPI OPTIMIZED_CFLAGS XML TZDATA DEBUG KRB5 PTHREAD
+OPTIONS_SINGLE= KRB5
+OPTIONS_SINGLE_KRB5= MIT_KRB5 HEIMDAL_KRB5
-KRB5_DESC= Build with kerberos provider support
+KRB5_DESC= Build with kerberos provider support
NLS_DESC= Use internationalized messages
DTRACE_DESC= Build with DTrace probes (server only)
PAM_DESC= Build with PAM Support
@@ -95,6 +95,7 @@
XML_DESC= Build with XML data type (server)
TZDATA_DESC= Use internal timezone database (server)
DEBUG_DESC= Builds with debugging symbols
+PTHREAD_DESC= Build with pthread support
# See http://people.freebsd.org/~girgen/postgresql-icu/README.html for more info
OPTIONS_DEFINE+= ICU
@@ -139,6 +140,10 @@
PLIST_SUB+= OSSP="@comment "
.endif
+.if ${PORT_OPTIONS:MPTHREAD}
+LDFLAGS+= ${PTHREAD_LIBS}
+.endif
+
.if !defined(SLAVE_ONLY)
PATCH_DIST_STRIP=-p1
--- postgresql-server-9.2.4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list