From mwm@mired.org  Thu Jun 22 16:55:10 2000
Return-Path: <mwm@mired.org>
Received: from guru.mired.org (zoom2-182.telepath.com [216.14.2.182])
	by hub.freebsd.org (Postfix) with SMTP id 26B4B37BFD9
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Jun 2000 16:54:20 -0700 (PDT)
	(envelope-from mwm@mired.org)
Received: (qmail 94987 invoked by uid 100); 22 Jun 2000 23:54:22 -0000
Message-Id: <20000622235422.94986.qmail@guru.mired.org>
Date: 22 Jun 2000 23:54:22 -0000
From: mwm@mired.org
Reply-To: mwm@mired.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: The jpeg library port assumes that libtool is in /usr/local/bin
X-Send-Pr-Version: 3.2

>Number:         19450
>Category:       ports
>Synopsis:       The jpeg library port assumes that libtool is in /usr/local/bin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jseger
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 22 17:00:01 PDT 2000
>Closed-Date:    Sat Jul 29 20:32:32 PDT 2000
>Last-Modified:  Sat Jul 29 20:33:18 PDT 2000
>Originator:     Mike Meyer
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Meyer Consulting
>Environment:

	/usr/ports/graphics/jpeg, with LOCALBASE set to something
	other that /usr/local (and libtool installed in that
	location). Note that the directory that libtool is installed
	in must be in the path for this to work for *all* libtool
	builds, whether they hardware the path in place or not.

>Description:

	The jpeg Makefile assumes that libtool is in
	/usr/local/bin. The port is patched from "./libtool" to
	"/usr/local/bin/libtool". On a system where LOCALBASE is
	somewhere other than /usr/local, this causes the build to
	fail.

>How-To-Repeat:

	Set LOCALBASE to something other than /usr/local, and make sure
	libtool is installed there (and not in /usr/local). Make sure
	that the directory that libtool is installed in is in your
	path (failure to do this uncovers a different bug that's in
	the ports package proper) and make install. Watch the build
	fail.

>Fix:

	The following patch (apply it in /usr/ports/graphics/jpeg)
	causes the build process to look for libtool in the
	path. Changing this to ${LIBTOOL} may be more appropriate, but
	this patch works.

--- patch-ab-broken	Thu Jun 22 12:17:22 2000
+++ patches/patch-ab	Thu Jun 22 12:18:43 2000
@@ -5,7 +5,7 @@
  if test "x$LTSHARED" != xno  -o  "x$LTSTATIC" != xno; then
    USELIBTOOL="yes"
 -  LIBTOOL="./libtool"
-+  LIBTOOL="/usr/local/bin/libtool"
++  LIBTOOL="libtool"
    O="lo"
    A="la"
    LN='$(LIBTOOL) --mode=link $(CC)'



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->jseger 
Responsible-Changed-By: alex 
Responsible-Changed-When: Tue Jun 27 05:14:17 PDT 2000 
Responsible-Changed-Why:  
Another fine patch for one of jseger's ports. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19450 
State-Changed-From-To: open->closed 
State-Changed-By: jseger 
State-Changed-When: Sat Jul 29 20:32:32 PDT 2000 
State-Changed-Why:  
I committed a fix to change /usr/local/bin/libtool to ${LIBTOOL}. 
Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19450 
>Unformatted:
