From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jan 22 21:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3ADD31D6 for ; Tue, 22 Jan 2013 21:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 21A3562C for ; Tue, 22 Jan 2013 21:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0MLK10Z053235 for ; Tue, 22 Jan 2013 21:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0MLK1gq053234; Tue, 22 Jan 2013 21:20:01 GMT (envelope-from gnats) Resent-Date: Tue, 22 Jan 2013 21:20:01 GMT Resent-Message-Id: <201301222120.r0MLK1gq053234@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, Jack Pappas Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 588A7F27 for ; Tue, 22 Jan 2013 21:11:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 31F40381 for ; Tue, 22 Jan 2013 21:11:14 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0MLBD58044497 for ; Tue, 22 Jan 2013 21:11:13 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0MLBDuB044488; Tue, 22 Jan 2013 21:11:13 GMT (envelope-from nobody) Message-Id: <201301222111.r0MLBDuB044488@red.freebsd.org> Date: Tue, 22 Jan 2013 21:11:13 GMT From: Jack Pappas To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/175518: Mono is not configured correctly when building X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2013 21:20:01 -0000 >Number: 175518 >Category: ports >Synopsis: Mono is not configured correctly when building >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: Tue Jan 22 21:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jack Pappas >Release: 9-STABLE >Organization: >Environment: FreeBSD jack-bsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r245748M: Mon Jan 21 20:56:47 EST 2013 root@jack-bsd:/usr/obj/usr/src/sys/GENERIC i386 >Description: The lang/mono port (recently updated for Mono 3.0.3) isn't configured correctly before building, because it does not call the 'autogen.sh' script provided in the Mono distribution. The 'autogen.sh' script must be run _instead_ of simply calling autoconf (via GNU_CONFIGURE=yes) because it performs certain setup actions before calling libtool, then autoconf. On a related note, I discovered this configuration issue while tweaking the main Mono configuration file to enable Mono's new 'sgen' GC. The diff attached to this PR includes a patch for configure.in which removes some configuration options which were explicitly set for FreeBSD; removing these settings allows the configure.in to auto-detect the correct settings to use for FreeBSD. NOTE: The 'patch-configure.in' file included in the attached diff is new, so you will have to to 'svn add' it. >How-To-Repeat: Install the current version of Mono from the ports tree. >Fix: I have attached an SVN diff (against r310835) which: (a) Alters the Makefile for lang/mono to correct the build-configuration issue (by calling autogen.sh instead of using autoconf). (b) Patches configure.in so it selects the configuration options which enable Mono to be compiled using the new 'sgen' GC. Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (revision 310835) +++ Makefile (working copy) @@ -17,11 +17,14 @@ USE_GNOME= gnomehack glib20 USE_GMAKE= yes USE_PERL5_BUILD=yes -GNU_CONFIGURE= yes +HAS_CONFIGURE= yes USE_LDCONFIG= yes USE_GETTEXT= yes MAKE_JOBS_UNSAFE=yes +# Call autogen.sh, which calls libtool, autoconf, etc. +CONFIGURE_SCRIPT= autogen.sh + # Moonlight is installed as part of www/moonlight CONFIGURE_ARGS= --with-moonlight=no Index: files/patch-configure.in =================================================================== --- files/patch-configure.in (revision 0) +++ files/patch-configure.in (working copy) @@ -0,0 +1,13 @@ +--- ./configure.in.orig 2012-12-21 15:20:46.000000000 -0500 ++++ ./configure.in 2012-12-21 15:21:10.000000000 -0500 +@@ -173,10 +173,6 @@ + libgc_threads=pthreads + # This doesn't seem to work as of 7.0 on amd64 + with_sigaltstack=no +-# TLS is only partially implemented on -CURRENT (compiler support +-# but NOT library support) +-# +- with_tls=pthread + use_sigposix=yes + ;; + *-*-*openbsd*) >Release-Note: >Audit-Trail: >Unformatted: