* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
@ 2009-11-09 11:18 ` Kay Sievers
2009-11-09 14:03 ` Dan Nicholson
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Kay Sievers @ 2009-11-09 11:18 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 9, 2009 at 04:46, Marco d'Itri <md@linux.it> wrote:
> These are needed to support out of tree builds,
Why isn't "make distcheck" failing then?
> but I do not know the
> correct way to properly fix the bugs in Makefile.am.
Hmm, that looks a bit too weird, doesn't it?
> +srcdir := $(builddir)
Thanks,
Kay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
2009-11-09 11:18 ` Kay Sievers
@ 2009-11-09 14:03 ` Dan Nicholson
2009-11-09 14:19 ` Marco d'Itri
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Dan Nicholson @ 2009-11-09 14:03 UTC (permalink / raw)
To: linux-hotplug
On Sun, Nov 8, 2009 at 7:46 PM, Marco d'Itri <md@linux.it> wrote:
> These are needed to support out of tree builds, but I do not know the
> correct way to properly fix the bugs in Makefile.am.
Find the part in Makefile.am that declares the keys.txt rule and add
the line? It should like exactly the line you patched without the
leading @SOME_AM_CONDITIONAL@ markers.
--
Dan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
2009-11-09 11:18 ` Kay Sievers
2009-11-09 14:03 ` Dan Nicholson
@ 2009-11-09 14:19 ` Marco d'Itri
2009-11-09 22:43 ` Karel Zak
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Marco d'Itri @ 2009-11-09 14:19 UTC (permalink / raw)
To: linux-hotplug
On Nov 09, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Mon, Nov 9, 2009 at 04:46, Marco d'Itri <md@linux.it> wrote:
> > These are needed to support out of tree builds,
> Why isn't "make distcheck" failing then?
Did you try it with a read only source tree?
> Hmm, that looks a bit too weird, doesn't it?
> > +srcdir := $(builddir)
Maybe, but without something like that the building process will create
files in the source tree.
Ubuntu uses a similar workaround, this is a known gtk-doc bug.
--
ciao,
Marco
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
` (2 preceding siblings ...)
2009-11-09 14:19 ` Marco d'Itri
@ 2009-11-09 22:43 ` Karel Zak
2009-11-09 23:13 ` Karel Zak
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Karel Zak @ 2009-11-09 22:43 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 09, 2009 at 04:46:09AM +0100, Marco d'Itri wrote:
> These are needed to support out of tree builds, but I do not know the
> correct way to properly fix the bugs in Makefile.am.
>
> --
> ciao,
> Marco
> --- a/extras/gudev/docs/Makefile.in
> +++ b/extras/gudev/docs/Makefile.in
> @@ -300,6 +300,7 @@ GPATH = $(srcdir)
> TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
>
> # This includes the standard gtk-doc make rules, copied by gtkdocize.
> +srcdir := $(builddir)
From my point of view gtk-doc.make is broken by design for people who
need to support out-of-tree builds and who don't want to store
generated stuff (docs/{tmpl,xml,html}) in the source code repository.
I have spent one evening to fix gtk-doc.make for util-linux-ng, see
http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git;a=commitdiff;hä2b25eb1536697ba283772f5452e7495cb4024b;hp•9ac815b67a43f9b5f70a1dc294d2cf3a61fc2c
.. it's not perfect, but works for me.
Karel
--
Karel Zak <kzak@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
` (3 preceding siblings ...)
2009-11-09 22:43 ` Karel Zak
@ 2009-11-09 23:13 ` Karel Zak
2009-11-10 5:40 ` Kay Sievers
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Karel Zak @ 2009-11-09 23:13 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 09, 2009 at 03:19:09PM +0100, Marco d'Itri wrote:
> On Nov 09, Kay Sievers <kay.sievers@vrfy.org> wrote:
>
> > On Mon, Nov 9, 2009 at 04:46, Marco d'Itri <md@linux.it> wrote:
> > > These are needed to support out of tree builds,
> > Why isn't "make distcheck" failing then?
> Did you try it with a read only source tree?
Yes, be careful with "make distcheck", it does not check for all
problems. Don't forget that "make distcheck" works with
source code from tarball and for example gtk-doc by default add many
generated files to the tarball. The best test is:
git clean -xfd
./autogen.sh
mkdir -p ../build
cd ../build
./configure
make
.. and try "ls -la ../udev/libudev/docs/ | wc -l" before and after the
make command :-)
> > Hmm, that looks a bit too weird, doesn't it?
> > > +srcdir := $(builddir)
> Maybe, but without something like that the building process will create
> files in the source tree.
> Ubuntu uses a similar workaround, this is a known gtk-doc bug.
:-(
The number of non-gtk libraries is slowly growing. It would be nice
to found a real solution... fix gtk-doc or found something better
than gtk-doc.
Karel
--
Karel Zak <kzak@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
` (4 preceding siblings ...)
2009-11-09 23:13 ` Karel Zak
@ 2009-11-10 5:40 ` Kay Sievers
2009-11-10 9:01 ` Martin Pitt
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Kay Sievers @ 2009-11-10 5:40 UTC (permalink / raw)
To: linux-hotplug
On Tue, Nov 10, 2009 at 00:13, Karel Zak <kzak@redhat.com> wrote:
> On Mon, Nov 09, 2009 at 03:19:09PM +0100, Marco d'Itri wrote:
>> On Nov 09, Kay Sievers <kay.sievers@vrfy.org> wrote:
>>
>> > On Mon, Nov 9, 2009 at 04:46, Marco d'Itri <md@linux.it> wrote:
>> > > These are needed to support out of tree builds,
>> > Why isn't "make distcheck" failing then?
>> Did you try it with a read only source tree?
>
> Yes, be careful with "make distcheck", it does not check for all
> problems. Don't forget that "make distcheck" works with
> source code from tarball and for example gtk-doc by default add many
> generated files to the tarball. The best test is:
>
> git clean -xfd
> ./autogen.sh
> mkdir -p ../build
> cd ../build
> ./configure
> make
>
> .. and try "ls -la ../udev/libudev/docs/ | wc -l" before and after the
> make command :-)
Yeah, I guess, that stuff is supposed to get DIST'd in the tarball,
and should usually not be touched there during build. Running split
builds directly from the git tree might not make much sense with
gtk-doc.
>> > Hmm, that looks a bit too weird, doesn't it?
>> > > +srcdir := $(builddir)
>> Maybe, but without something like that the building process will create
>> files in the source tree.
>> Ubuntu uses a similar workaround, this is a known gtk-doc bug.
>
> :-(
>
> The number of non-gtk libraries is slowly growing. It would be nice
> to found a real solution... fix gtk-doc or found something better
> than gtk-doc.
Yeah, there is a lot of stuff that would be nice to see fixed, also
many of the warnings of the generated code and the over-verbose output
during the build.
Kay
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
` (5 preceding siblings ...)
2009-11-10 5:40 ` Kay Sievers
@ 2009-11-10 9:01 ` Martin Pitt
2009-11-10 10:36 ` Karel Zak
2009-11-10 11:12 ` Martin Pitt
8 siblings, 0 replies; 10+ messages in thread
From: Martin Pitt @ 2009-11-10 9:01 UTC (permalink / raw)
To: linux-hotplug
Karel Zak [2009-11-09 23:43 +0100]:
> need to support out-of-tree builds and who don't want to store
> generated stuff (docs/{tmpl,xml,html}) in the source code repository.
Well, not quite "by design", but gtk-doc.make is indeed broken for
this. The Ubuntu package does
# fix gtk-doc breakage with separate build tree
sed -i 's/srcdir/builddir/g' gtk-doc.make
before autoreconf, which does the trick.
Please also see
https://bugzilla.gnome.org/show_bug.cgi?idH5806
Martin
--
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntu.com
Debian Developer http://www.debian.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
` (6 preceding siblings ...)
2009-11-10 9:01 ` Martin Pitt
@ 2009-11-10 10:36 ` Karel Zak
2009-11-10 11:12 ` Martin Pitt
8 siblings, 0 replies; 10+ messages in thread
From: Karel Zak @ 2009-11-10 10:36 UTC (permalink / raw)
To: linux-hotplug
On Tue, Nov 10, 2009 at 10:01:32AM +0100, Martin Pitt wrote:
> Karel Zak [2009-11-09 23:43 +0100]:
> > need to support out-of-tree builds and who don't want to store
> > generated stuff (docs/{tmpl,xml,html}) in the source code repository.
>
> Well, not quite "by design", but gtk-doc.make is indeed broken for
> this. The Ubuntu package does
I don't think so. For example gtkdoc-scan assumes all files in the
output directory (see /usr/bin/gtkdoc-scan, lines 100-110).
This is problem, because for example sections are defined in the
$(srcdir)/$(DOC_MODULE)-sections.txt.
> # fix gtk-doc breakage with separate build tree
> sed -i 's/srcdir/builddir/g' gtk-doc.make
Is it correct? All your setting in $(srcdir) (for example lits of sections,
some extra xml files, ...) will be invisible for gtk-doc.
> before autoreconf, which does the trick.
>
> Please also see
>
> https://bugzilla.gnome.org/show_bug.cgi?idH5806
pretty old bug, it seems we all depend on unmaintained tool :-(
Karel
--
Karel Zak <kzak@redhat.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: more fixes for out of tree builds
2009-11-09 3:46 more fixes for out of tree builds Marco d'Itri
` (7 preceding siblings ...)
2009-11-10 10:36 ` Karel Zak
@ 2009-11-10 11:12 ` Martin Pitt
8 siblings, 0 replies; 10+ messages in thread
From: Martin Pitt @ 2009-11-10 11:12 UTC (permalink / raw)
To: linux-hotplug
Karel Zak [2009-11-10 11:36 +0100]:
> > # fix gtk-doc breakage with separate build tree
> > sed -i 's/srcdir/builddir/g' gtk-doc.make
>
> Is it correct? All your setting in $(srcdir) (for example lits of sections,
> some extra xml files, ...) will be invisible for gtk-doc.
Oh, I just got it to build, and the generated HTML looks reasonable,
so I stopped fiddling with it at that point and just made sure that
there was an upstream bug report. I'm by no way a gtc-doc expert.
> > https://bugzilla.gnome.org/show_bug.cgi?idH5806
>
> pretty old bug, it seems we all depend on unmaintained tool :-(
Unfortunately..
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
^ permalink raw reply [flat|nested] 10+ messages in thread