1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/textproc/htdig/files/patch-ab
Bill Fumerola eb1bf42aea Use -pthread not -libc_r
PR:		ports/12488
Submitted by:	Palle Girgensohn <girgen@partitur.se>

NOTE: 	This patch actually patches two files, which is normally frowned
	upon. However, one of these files generates the other and really
	isn't used by the port, just for people who would use the port
	to make their own custom ht://dig. I don't think this is a problem.
1999-08-01 19:22:32 +00:00

91 lines
2.7 KiB
Plaintext

From girgen@elbas.partitur.se Fri Jul 2 10:46:50 1999
Return-Path: <girgen@elbas.partitur.se>
Received: from elbas.partitur.se (www.cebox.se [193.219.246.222])
by hub.freebsd.org (Postfix) with ESMTP
id 7618914F0E; Fri, 2 Jul 1999 10:46:48 -0700 (PDT)
(envelope-from girgen@elbas.partitur.se)
Received: (from girgen@localhost)
by elbas.partitur.se (8.9.3/8.9.2) id TAA98285;
Fri, 2 Jul 1999 19:46:46 +0200 (CEST)
(envelope-from girgen)
Message-Id: <199907021746.TAA98285@elbas.partitur.se>
Date: Fri, 2 Jul 1999 19:46:46 +0200 (CEST)
From: girgen@partitur.se
Sender: girgen@elbas.partitur.se
Reply-To: girgen@partitur.se
To: FreeBSD-gnats-submit@freebsd.org
Cc: billf@freebsd.org
Subject: htdig's db shall compile with -pthreads
X-Send-Pr-Version: 3.2
>Number: 12488
>Category: ports
>Synopsis: textproc/htdig compiles with -lc_r, should be -pthreads
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: billf
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jul 2 10:50:00 PDT 1999
>Closed-Date:
>Last-Modified: Fri Jul 2 11:03:28 PDT 1999
>Originator: Palle Girgensohn
>Release: FreeBSD 3.2-STABLE i386
>Organization:
Partitur
>Environment:
FreeBSD 3.2-STABLE i386 - ELF
>Description:
the version of Berkeley DB (from www.sleepycat.com, I think), that
comes with the htdig source, shall be compiled with -pthreads, at
least on ELF (didn't check aout).
>How-To-Repeat:
cd /usr/ports/textproc/htdig && make
>Fix:
Put this this patch in the patches dir as patch-ab:
--- ../../../htdig.orig/work/htdig-3.1.1/db/dist/configure.in Wed Feb 17 06:03:41 1999
+++ db/dist/configure.in Wed Feb 24 14:59:30 1999
@@ -405,7 +405,7 @@
dnl libraries for threaded applications
case "$host_os" in
freebsd*) CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
- LIBS="-lc_r";;
+ LIBS="-pthread";;
irix*) CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
osf*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
solaris*) CPPFLAGS="-D_REENTRANT $CPPFLAGS"
--- ../../../htdig.orig/work/htdig-3.1.1/db/dist/configure Wed Feb 17 06:03:41 1999
+++ db/dist/configure Wed Feb 24 14:41:19 1999
@@ -3056,7 +3056,7 @@
case "$host_os" in
freebsd*) CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS"
- LIBS="-lc_r";;
+ LIBS="-pthread";;
irix*) CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";;
osf*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";;
solaris*) CPPFLAGS="-D_REENTRANT $CPPFLAGS"
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->billf
Responsible-Changed-By: billf
Responsible-Changed-When: Fri Jul 2 11:03:17 PDT 1999
Responsible-Changed-Why:
My port, my PR.
>Unformatted: