From owner-freebsd-ports-bugs@FreeBSD.ORG Wed May 24 04:10:24 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3423C16A45E for ; Wed, 24 May 2006 04:10:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 830FA43D5A for ; Wed, 24 May 2006 04:10:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4O4ALXb010968 for ; Wed, 24 May 2006 04:10:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4O4AL8B010963; Wed, 24 May 2006 04:10:21 GMT (envelope-from gnats) Resent-Date: Wed, 24 May 2006 04:10:21 GMT Resent-Message-Id: <200605240410.k4O4AL8B010963@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Takeshi MUTOH Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4AEF16A482 for ; Wed, 24 May 2006 04:04:11 +0000 (UTC) (envelope-from mutoh@openedu.org) Received: from mutoh.dyndns.org (l196093.ppp.asahi-net.or.jp [218.219.196.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA1B843D4C for ; Wed, 24 May 2006 04:04:10 +0000 (GMT) (envelope-from mutoh@openedu.org) Received: from localhost (localhost [127.0.0.1]) by mutoh.dyndns.org (Postfix) with ESMTP id 53221114D3 for ; Wed, 24 May 2006 13:04:08 +0900 (JST) Received: from mutoh.dyndns.org ([127.0.0.1]) by localhost (mutoh.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26568-10 for ; Wed, 24 May 2006 13:04:03 +0900 (JST) Received: from mutoh.dyndns.org (localhost [IPv6:::1]) by mutoh.dyndns.org (Postfix) with ESMTP id 69776114A9 for ; Wed, 24 May 2006 13:04:03 +0900 (JST) Message-Id: Date: Wed, 24 May 2006 13:04:03 +0900 From: Takeshi MUTOH To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/97765: [PATCH] lang/ruby18 WITH_PTHREAD handling problem X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 May 2006 04:10:24 -0000 >Number: 97765 >Category: ports >Synopsis: lang/ruby18 default make without pthread, but link -lpthread >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 24 04:10:20 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Takeshi MUTOH >Release: FreeBSD 6.1-STABLE i386 >Organization: OpenEdu.org >Environment: FreeBSD mutoh.dyndns.org 6.1-STABLE FreeBSD 6.1-STABLE #1: Sat May 20 22:19:45 JST 2006 root@mutoh.dyndns.org:/usr/obj/usr/src/sys/SMP i386 >Description: Currently, lang/ruby make without pthread library by default. But CONFIGURE_ARGS have pthread related entry without pthread related knob, so binary create with -lpthread. >How-To-Repeat: % cd /usr/ports/lang/ruby18 % make % ldd work/ruby-1.8.4/ruby18 work/ruby-1.8.4/ruby18: libruby18.so.18 => /usr/local/lib/libruby18.so.18 (0x28074000) libcrypt.so.3 => /lib/libcrypt.so.3 (0x2812e000) libm.so.4 => /lib/libm.so.4 (0x28146000) libpthread.so.2 => /usr/lib/libpthread.so.2 (0x2815c000) libc.so.6 => /lib/libc.so.6 (0x28181000) See build log at http://mutoh.dyndns.org/tmp/ruby-build-old-20060524.log >Fix: Please apply patch below. --- Makefile.org Wed May 24 09:02:28 2006 +++ Makefile Wed May 24 12:24:21 2006 @@ -43,6 +43,8 @@ .if defined(WITH_PTHREADS) CONFIGURE_ARGS+=--enable-pthread PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+pthreads +CFLAGS+=${PTHREAD_CFLAGS} +LIBS+=${PTHREAD_LIBS} .else CONFIGURE_ARGS+=--disable-pthread .endif @@ -70,8 +72,8 @@ CONFIGURE_ARGS+= --enable-ipv6 .endif -CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \ - LIBS="${LIBS} ${PTHREAD_LIBS}" +CONFIGURE_ENV= CFLAGS="${CFLAGS}" \ + LIBS="${LIBS}" .if ${RUBY_VER} == ${RUBY_DEFAULT_VER} MLINKS= ${RUBY_NAME}.1 ruby.1 -- Takeshi MUTOH >Release-Note: >Audit-Trail: >Unformatted: