Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2002 01:13:02 +0100
From:      "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To:        Fernan Aguero <fernan@iib.unsam.edu.ar>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--=.(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
<fernan@iib.unsam.edu.ar> 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




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