From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 1 22:40:18 2007 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 [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 690A216A417 for ; Thu, 1 Feb 2007 22:40:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 5EA4D13C48D for ; Thu, 1 Feb 2007 22:40:17 +0000 (UTC) (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 l11MeH7C031747 for ; Thu, 1 Feb 2007 22:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l11MeHRS031746; Thu, 1 Feb 2007 22:40:17 GMT (envelope-from gnats) Resent-Date: Thu, 1 Feb 2007 22:40:17 GMT Resent-Message-Id: <200702012240.l11MeHRS031746@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, Peter Koeleman Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D9C016A400 for ; Thu, 1 Feb 2007 22:32:48 +0000 (UTC) (envelope-from peter@tragedy.rink.nu) Received: from mx1.rink.nu (thunderstone.rink.nu [80.112.228.34]) by mx1.freebsd.org (Postfix) with ESMTP id 5E09813C461 for ; Thu, 1 Feb 2007 22:32:46 +0000 (UTC) (envelope-from peter@tragedy.rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id 2C5A9D4C5E for ; Thu, 1 Feb 2007 23:06:19 +0100 (CET) Received: from mx1.rink.nu ([127.0.0.1]) by localhost (thunderstone.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hrl9NHh37BLe for ; Thu, 1 Feb 2007 23:06:12 +0100 (CET) Received: from tragedy.rink.nu (tragedy.rink.nu [80.112.228.35]) by mx1.rink.nu (Postfix) with ESMTP id A3C6ED4C28 for ; Thu, 1 Feb 2007 23:06:12 +0100 (CET) Received: by tragedy.rink.nu (Postfix, from userid 1001) id 8C00914092B6; Thu, 1 Feb 2007 23:06:12 +0100 (CET) Message-Id: <20070201220612.8C00914092B6@tragedy.rink.nu> Date: Thu, 1 Feb 2007 23:06:12 +0100 (CET) From: Peter Koeleman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/108669: imlib2 doesn't build without X11 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Koeleman List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 22:40:18 -0000 >Number: 108669 >Category: ports >Synopsis: imlib2 doesn't build without X11 >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: Thu Feb 01 22:40:16 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Peter Koeleman >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD tragedy.rink.nu 6.2-STABLE FreeBSD 6.2-STABLE #4: Mon Jan 22 12:35:15 CET 2007 rink@thunderstone.rink.nu:/usr/obj/usr/src/sys/THUNDERSTONE i386 >Description: Configuring graphics/imlib2-20060926 from ports without X11 will make the configure script break. The port will correctly use the --without-x switch but the configure script still can't find X11 libs and headers (no surprise there) but also cannot tell that --without-x was used. Exerpt from the configure script: if test "x$have_x" = "xno"; then # If --without-x was passed, this will be "disabled" instead of "no" -- # so always treat "no" as an error { { echo "$as_me:$LINENO: error: no X support found. Use --x-includes and --x-libraries to specify the X path on your system, or --without-x to disable X support." >&5 echo "$as_me: error: no X support found. Use --x-includes and --x-libraries to specify the X path on your system, or --without-x to disable X support." >&2;} { (exit 1); exit 1; }; } fi This would make you think that the switch is used correctly but still the variable $have_x has value "no", even with the --without-x switch. >How-To-Repeat: 1) Do not install X11 libraries and headers or uninstall them. 2) put WITHOUT_X11=yes in /etc/make.conf 3) cd to /usr/ports/graphics/imlib2 4) run make as root 5) Get error message about missing X11 stuff >Fix: Editing the configure script and inserting the line: have_x="disabled" makes imlib2 configure and build, this is what the script expects. Diff: --- configure Thu Feb 1 22:01:02 2007 +++ configure.bak Tue Sep 26 21:18:02 2006 @@ -21542,7 +21542,7 @@ have_x="no" fi -have_x="disabled" + if test "x$have_x" = "xno"; then # If --without-x was passed, this will be "disabled" instead of "no" -- >Release-Note: >Audit-Trail: >Unformatted: