Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  1 Feb 2007 23:06:12 +0100 (CET)
From:      Peter Koeleman <peter@peerweb.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/108669: imlib2 doesn't build without X11
Message-ID:  <20070201220612.8C00914092B6@tragedy.rink.nu>
Resent-Message-ID: <200702012240.l11MeHRS031746@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070201220612.8C00914092B6>