From nils@tisys.org  Fri Jan 25 02:49:16 2002
Return-Path: <nils@tisys.org>
Received: from mcqueen.wolfsburg.de (pns.wobline.de [212.68.68.5])
	by hub.freebsd.org (Postfix) with ESMTP id 6C73C37B416
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Jan 2002 02:49:14 -0800 (PST)
Received: from colt.ncptiddische.net (ppp-122.wobline.de [212.68.69.130])
	by mcqueen.wolfsburg.de (8.11.3/8.11.3/tw-20010821) with ESMTP id g0PAn7a17955
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Jan 2002 11:49:07 +0100
Received: from tisys.org (poison.ncptiddische.net [192.168.0.5])
	by colt.ncptiddische.net (8.11.6/8.11.6) with ESMTP id g0PAnGX18224
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Jan 2002 11:49:17 +0100 (CET)
	(envelope-from nils@tisys.org)
Received: (from nils@localhost)
	by tisys.org (8.11.6/8.11.6) id g0PAn5856960;
	Fri, 25 Jan 2002 11:49:05 +0100 (CET)
	(envelope-from nils)
Message-Id: <200201251049.g0PAn5856960@tisys.org>
Date: Fri, 25 Jan 2002 11:49:05 +0100 (CET)
From: Nils Holland <nils@tisys.org>
Reply-To: Nils Holland <nils@tisys.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: auto{conf,make,header} problem with lyx-1.1.6.4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34263
>Category:       ports
>Synopsis:       auto{conf,make,header} problem with lyx-1.1.6.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dirk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 25 02:50:00 PST 2002
>Closed-Date:    Thu Feb 14 14:01:43 PST 2002
>Last-Modified:  Thu Feb 21 09:50:01 PST 2002
>Originator:     Nils Holland
>Release:        FreeBSD 4.5-RC i386
>Organization:
Ti Systems
>Environment:
System: FreeBSD poison.ncptiddische.net 4.5-RC FreeBSD 4.5-RC #0: Fri Jan 25 10:29:11 CET 2002 root@poison.ncptiddische.net:/usr/obj/usr/src/sys/POISON i386


>Description:

I just updated my lyx install to the latest 1.1.6.4 version. However, I
noticed a problem: lyx seems to suffer from the auto{conf,make,header}
problem that some other ports are already working around.

Basically, I have installed the following: automake, autoconf, automake14,
autoconf213. Now, lyx seems to require automake14 and autoconf213. What it
seems to use when it build, however, seem to be the newer versions, and
thus it fails at one step where it calls autoheader and intends to run
autoheader213, but in reality the latest version of autoheader gets run.

>How-To-Repeat:

On a machine that has installed the above mentioned versions of
automake/conf, try building lyx.

>Fix:

I could work around the problem by doing a dirty hack, just like this:

mkdir /usr/ports/lyx/work/oldconf
ln -s /usr/local/bin/automake14 /usr/ports/print/lyx/work/oldconf/automake
ln -s /usr/local/bin/autoconf213 /usr/ports/print/lyx/work/oldconf/autoconf
ln -s /usr/local/bin/autoheader213 /usr/ports/print/lyx/work/oldconf/autoheader
setenv PATH /usr/ports/print/lyx/work/oldconf:$PATH

That makes sure that the appropriate versions of auto{make,conf,header} get
run and thus fixes the problem...
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dirk 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Fri Jan 25 05:44:37 PST 2002 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34263 
State-Changed-From-To: open->closed 
State-Changed-By: dirk 
State-Changed-When: Thu Feb 14 14:01:43 PST 2002 
State-Changed-Why:  
Deinstalling all autoconf* and automake* package before installing lyx 
helps. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34263 

From: John Merryweather Cooper <john_m_cooper@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: dirk@FreeBSD.org
Subject: Re: ports/34263: auto{conf,make,header} problem with lyx-1.1.6.4
Date: Thu, 21 Feb 2002 09:46:56 -0800

 This is a multi-part message in MIME format.
 --------------000508070201080300070005
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Below is a patch to the port Makefile that fixes this build problem 
 without requiring removing any of the autoconf ports.  :)
 
 Please re-open this PR and commit this patch.
 
 --
 jmc
 
 
 --------------000508070201080300070005
 Content-Type: text/plain;
  name="patch-lyx-Makefile.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="patch-lyx-Makefile.txt"
 
 --- Makefile.orig	Tue Jan 22 18:42:28 2002
 +++ Makefile	Thu Feb 21 09:43:45 2002
 @@ -2,7 +2,7 @@
  # Date created:		Sa  12 Okt 1996 19:20:51 MET DST
  # Whom:			Andreas Klemm <andreas@klemm.gtn.com>
  #
 -# $FreeBSD: ports/print/lyx/Makefile,v 1.58 2002/01/22 12:44:39 dirk Exp $
 +# $FreeBSD$
  #
  
  PORTNAME=	lyx
 @@ -29,7 +29,7 @@
  		intl.1:${PORTSDIR}/devel/gettext
  
  USE_GMAKE=	yes
 -USE_AUTOCONF=	yes
 +USE_AUTOCONF_VER=	213
  USE_XPM=	yes
  USE_NEWGCC=	yes
  USE_PERL5=	yes
 @@ -47,5 +47,11 @@
  post-patch:
  	(cd ${WRKSRC}; ${TOUCH} Makefile.in */Makefile.in src/config.h.in)
  	(cd ${WRKSRC}/lib/doc; ${RM} -f *.orig)
 +
 +pre-build:
 +	@${PERL} -pi -e 's|autoheader|${AUTOHEADER}|g' \
 +			${WRKSRC}/src/Makefile
 +	@${PERL} -pi -e 's|autoconf|${AUTOCONF}|g' \
 +			${WRKSRC}/lib/reLyX/Makefile
  
  .include <bsd.port.mk>
 
 --------------000508070201080300070005--
 
>Unformatted:
