From owner-freebsd-ports Thu Feb 7 15:10:21 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 707BA37B426 for ; Thu, 7 Feb 2002 15:10:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g17NA6o12423; Thu, 7 Feb 2002 15:10:06 -0800 (PST) (envelope-from gnats) Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id C953137B405 for ; Thu, 7 Feb 2002 15:05:35 -0800 (PST) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 16Yxbi-0005I8-01; Fri, 8 Feb 2002 00:05:34 +0100 Received: (from naddy@localhost) by kemoauc.mips.inka.de (8.11.6/8.11.6) id g17N4m374266; Fri, 8 Feb 2002 00:04:48 +0100 (CET) (envelope-from naddy) Message-Id: <200202072304.g17N4m374266@kemoauc.mips.inka.de> Date: Fri, 8 Feb 2002 00:04:48 +0100 (CET) From: Christian Weisgerber Reply-To: Christian Weisgerber To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/34717: bsd.port.mk: extraneous quotes in PTHREAD_{CFLAGS,LIBS} Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34717 >Category: ports >Synopsis: bsd.port.mk: extraneous quotes in PTHREAD_{CFLAGS,LIBS} >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 15:10:06 PST 2002 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 5.0-CURRENT alpha >Organization: >Environment: System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Jan 19 07:02:33 CET 2002 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/KEMOAUC alpha >Description: The definitions of PTHREAD_CFLAGS and PTHREAD_LIBS have extraneous quotes that can produce unexpected results when embedding them in other variables, e.g. MAKE_FLAGS= CFLAGS='${CFLAGS} ${PTHREAD_FLAGS} -DFOO=\"bar\"' will unexpectedly break on -CURRENT. >How-To-Repeat: >Fix: Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.397 diff -u -r1.397 bsd.port.mk --- bsd.port.mk 24 Jan 2002 01:15:03 -0000 1.397 +++ bsd.port.mk 7 Feb 2002 22:49:09 -0000 @@ -1068,11 +1068,11 @@ MAKE_ENV+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} MOTIFLIB="${MOTIFLIB}" LIBDIR="${LIBDIR}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" .if ${OSVERSION} < 500016 -PTHREAD_CFLAGS= -D_THREAD_SAFE -PTHREAD_LIBS= "-pthread" +PTHREAD_CFLAGS= -D_THREAD_SAFE +PTHREAD_LIBS= -pthread .else -PTHREAD_CFLAGS= "" -PTHREAD_LIBS= "-lc_r" +PTHREAD_CFLAGS= +PTHREAD_LIBS= -lc_r .endif .if exists(/usr/bin/fetch) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message