ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: gtkdocize support in autoreconf
@ 2010-01-10  0:46 Dmitry V. Levin
  2010-01-10 21:45 ` Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2010-01-10  0:46 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 897 bytes --]

Hi,

In autoconf_2.60-2.65-alt1, I'd patched autoreconf to add gtkdocize
support the same way as we earlier added intltoolize support.
In short, autoreconf now recognizes GTK_DOC_CHECK macro as a signal to
invoke gtkdocize.

Due to some strange logic implemented in gtkdocize (as of
gtk-doc-1.13-alt1), it won't update gtk-doc.m4 file unless it finds an
AC_CONFIG_MACRO_DIR specifying where to install this file.  Unlike
autotools utilities, gtkdocize won't fall back to default macro location.

As result, if your package carries own outdated copy of gtk-doc.m4 and
configure.ac doesn't contain an AC_CONFIG_MACRO_DIR invocation in form
suitable for gtkdocize, then gtkdocize won't help you, unless you remove
this outdated gtk-doc.m4 copy from your package.

gtk-doc maintainer(s) might wish to file a bug about this odd gtk-doc
behaviour to gtk-doc's upstream.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] I: gtkdocize support in autoreconf
  2010-01-10  0:46 [devel] I: gtkdocize support in autoreconf Dmitry V. Levin
@ 2010-01-10 21:45 ` Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2010-01-10 21:45 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

On Sun, Jan 10, 2010 at 03:46:09AM +0300, Dmitry V. Levin wrote:
[...]
> Due to some strange logic implemented in gtkdocize (as of
> gtk-doc-1.13-alt1), it won't update gtk-doc.m4 file unless it finds an
> AC_CONFIG_MACRO_DIR specifying where to install this file.  Unlike
> autotools utilities, gtkdocize won't fall back to default macro location.
> 
> As a result, if your package carries own outdated copy of gtk-doc.m4 and
> configure.ac doesn't contain an AC_CONFIG_MACRO_DIR invocation in form
> suitable for gtkdocize, then gtkdocize won't help you, unless you remove
> this outdated gtk-doc.m4 copy from your package.

Another problem with gtkdocize is that it fails to detect a GTK_DOC_CHECK
invocation sometimes while autoreconf does this kind of work better.

For example, here is an excerpt from evolution-exchange-2.28.1-alt1 build
log:
autoreconf-default: running: gtkdocize
gtkdocize: GTK_DOC_CHECK not called in configure.ac
autoreconf-default: gtkdocize failed with exit status: 1

And here is an excerpt from evolution-exchange/configure.ac:

dnl Putting a space before the macro call here makes gnome-autogen not
dnl notice it, which makes it not run gtkdocize and copy gtk-doc.make
dnl into the top level where I don't want it.
 GTK_DOC_CHECK([1.0])

Meaningful leading whitespace in configure.ac is even more ugly than
meaningful comments.

Please somebody file a bug to these ignorant people and explain them
how to check for keywords and how to use AC_CONFIG_MACRO_DIR.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-10 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-10  0:46 [devel] I: gtkdocize support in autoreconf Dmitry V. Levin
2010-01-10 21:45 ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git