From owner-freebsd-ports Wed Jan 16 16:13:33 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by hub.freebsd.org (Postfix) with ESMTP id 4775637B405 for ; Wed, 16 Jan 2002 16:13:28 -0800 (PST) Received: from fwd09.sul.t-online.de by mailout03.sul.t-online.com with smtp id 16R0BE-0000rD-00; Thu, 17 Jan 2002 01:13:20 +0100 Received: from spirit.corecode.ath.cx (320050403952-0001@[80.128.111.138]) by fmrl09.sul.t-online.com with esmtp id 16R0B3-1ittoWC; Thu, 17 Jan 2002 01:13:09 +0100 Received: from elevation.zuhause.stoert.net (elevation.zuhause.stoert.net [192.168.66.46]) by spirit.corecode.ath.cx (8.11.6/8.11.6) with ESMTP id g0H0D8g19065; Thu, 17 Jan 2002 01:13:08 +0100 (CET) (envelope-from corecode@elevation.zuhause.stoert.net) Received: (from corecode@localhost) by elevation.zuhause.stoert.net (8.11.6/8.11.6) id g0H0D5c28674; Thu, 17 Jan 2002 01:13:05 +0100 (CET) (envelope-from corecode) Date: Thu, 17 Jan 2002 01:13:02 +0100 From: "Simon 'corecode' Schubert" To: Fernan Aguero Cc: alane@geeksrus.net, ports@FreeBSD.ORG Subject: Re: [porter's handbook] problems generating pkg-plist automagically Message-Id: <20020117011302.5d838788.corecode@corecode.ath.cx> In-Reply-To: <20020116201954.F2966@iib.unsam.edu.ar> References: <20020116160826.E2966@iib.unsam.edu.ar> <20020116205553.GB3994@wwweasel.geeksrus.net> <20020116201954.F2966@iib.unsam.edu.ar> X-Mailer: Sylpheed version 0.7.0claws7 (GTK+ 1.2.10; i386--freebsd4.5) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=.(E)1d/sgwRy94'" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=.(E)1d/sgwRy94' Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 16 Jan 2002 20:19:55 -0300 Fernan Aguero wrote: > | >Question: Do I let the Makefiles do their job and put everything > | >under usr/local/doc)? AFAICS kaptain is the only subdir there and > | >most ports install documentation under /usr/local/share/doc > | > | 1. /usr/local/share/doc. [...] > | 3. worst case you patch the Makefile.am or Makefile.in in the > | docsdir. > > Now I am with that. Replaced all occurrences of $(prefix)/doc in > Makefile.am with $(prefix)/share/doc. you should patch Makefile.am when your port install is using automake (doesn't appear to me so). otherwise you have to patch Makefile.in because this is the source configure builds the final Makefile from. In case you don't want to run automake just for creating that modified .in file, it's really better to modify the .in file itself. [...] > The strange thing to me is that the Makefile.in is now changed. That > is to say: I patched Makefile.am but both Makefile.am and Makefile.in > are different than what they are if I don't apply the patches/changes. > > Although I now have an idea about how I got into this, I am not seeing > clearly how to solve it. > I took a diff from a Makefile.in of the unpatched sources and a > Makefile.in from the patched sources, and got the following: > > --- prepatch/Makefile.in Wed Jan 16 19:57:53 2002 > +++ postpatch/Makefile.in Wed Jan 16 19:53:43 2002 > @@ -1,7 +1,6 @@ > -# KDE tags expanded automatically by am_edit - $Revision: 1.165 $ > -# Makefile.in generated automatically by automake 1.4 from > Makefile.am+# Makefile.in generated automatically by automake 1.4-p5 > from Makefile.am > -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. > +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, > Inc.... > ... > > and lots of differences, including the offending line: > ... > -all: docs-am all-redirect > +all: all-redirect > .SUFFIXES: > $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in > $(ACLOCAL_M4) -#>- cd $(top_srcdir) && $(AUTOMAKE) --gnu > --include-deps doc/Makefile-#>+ 2 > cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps > doc/Makefile- cd $(top_srcdir) && perl am_edit > kaptain-0.6/doc/Makefile.in... > > This happens both using the ports Makefile and trying to build kaptain > on its own (configure + make, without freebsd ports overhead). > > So clearly, the problem is that now that I patched the Makefile.am > file, another automake is called somehow (???). right. see above. your configure somehow notices that the .am file is newer than the .in file and concludes: .in needs to be rebuilt. this isn't what you want. > Maybe the problem is restricted to my own setup? I've found both > /usr/local/bin/automake and /usr/local/bin/automake14. However when > running them with --version both print the same exact message: > > [root@pi] /usr/local/bin/automake14 --version > automake (GNU automake) 1.4-p5 > > Copyright (C) 1999, 2001 Free Software Foundation, Inc. > ... > > So I don't know where to look for the 'other' automake, the one with > v1.4 but that lacks the (c) 2001. you won't find it in your system i suppose. that version is the one the packager used when creating the .tgz just ask along if you run into some more problems cheerz corecode -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.(E)1d/sgwRy94' Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8RhcRr5S+dk6z85oRAkn9AJ9ZjNplDSABLk8j0B0BzAx3sffA/QCgkloH QQSqVG96vd21tLeiPsRGUhA= =j/EL -----END PGP SIGNATURE----- --=.(E)1d/sgwRy94'-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message