ports/108669: imlib2 doesn't build without X11
Peter Koeleman
peter at peerweb.nl
Thu Feb 1 22:40:18 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list