<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 13-01-06 06:02 PM, Peter Hutterer wrote:<br>
<span style="white-space: pre;">> On Fri, Jan 04, 2013 at
04:22:05PM -0500, Gaetan Nadon wrote:<br>
>></span><br>
<blockquote type="cite">On 13-01-03 10:18 PM, Peter Hutterer wrote:<br>
>>> On Thu, Jan 03, 2013 at 03:55:49PM -0800, Alan
Coopersmith wrote:<br>
>>>> On 01/ 3/13 03:38 PM, Peter Hutterer wrote:<br>
>>>>> is there any particular reason we're still
generating gz and bzip2?<br>
>>>><br>
>>>> Because we're not hip enough to have replaced gz
with xz like all the<br>
cool kids?<br>
>>>><br>
>>>> Or because updating the automake flags in 200+
configure.ac scripts<br>
is not fun.<br>
>>><br>
>>> just played around with this a bit, looks like a the
common code for<br>
>>> initialising the projects can be moved into a macro,
as long as AC_INIT is<br>
>>> still in configure.ac. which is the project-specific
part anyway.<br>
>>><br>
>>> So a common template could be<br>
>>><br>
>>> AC_DEFUN([XORG_DEFAULT_AUTOMAKE],[<br>
>>> AC_PREREQ([2.60])<br>
>>> AC_CONFIG_SRCDIR([Makefile.am])<br>
>>> AC_CONFIG_HEADERS([config.h])<br>
>>> AC_CONFIG_AUXDIR(.)<br>
>>><br>
>>> AM_INIT_AUTOMAKE([foreign dist-bzip2])<br>
>>> AM_MAINTAINER_MODE<br>
>>> ])<br>
>>><br>
>>> which would make adding options easier in the future.
switching to xz,<br>
>>> changing/removing AM_MAINTAINER_MODE, etc.<br>
>>><br>
>>> note, I've only tested this on a simple test project,
not across all xorg<br>
>>> modules.<br>
I had thought about this a while ago, which explains why these
lines are<br>
identical to nearly all modules. I realized I was getting close to
the<br>
point of diminishing return, it was more effort to factor out
common<br>
lines than it was to have them spelled out in configure.ac. It is<br>
difficult to handle exceptions. In the xserver case, you would
have to<br>
not use the macro XORG_DEFAULT_AUTOMAKE because it does not use<br>
AC_CONFIG_HEADERS([config.h]). Same for libX11.<br>
<br>
There may be cases where some statements must be found before<br>
AM_INIT_AUTOMAKE, perhaps AC_CONFIG_MACRO_DIR. Though not terribly<br>
important AC_PREREQ should be before AC_INIT.<br>
<br>
Invoking any XORG_ * macro from xorg-utils should come after we
have<br>
verified that the it is available with m4_ifndef. This
verification can<br>
be move at the top of the file now that it not longer uses
AC_FATAL<br>
macro it used to.<br>
<br>
The macro mixes AC_ and AM_ statements which leads to those<br>
contradictions. More robust re-usability could be obtained by
limiting<br>
its content to AM_INIT_AUTOMAKE([foreign dist-bzip2]). The macro
name<br>
would then fit perfectly.<br>
<br>
I can't see any other lines that could be factored out without
causing<br>
problems in some modules. The sad part is that you cannot make<br>
assumptions and need to test them them all as you don't know which<br>
modules will be the exceptions.<br>
<br>
AM_MAINTAINER_MODE should be removed anyway as it was done in
xserver. <br>
AC_CONFIG_AUXDIR(.) is not needed.<br>
<br>
> I really just copied this from (I think) evdev or so and
played around with<br>
> a few things. so it's certainly not yet the best solution.<br>
<br>
> as for AM_MAINTAINER_MODE, when I removed it from the wacom
driver I<br>
> actually got a request for AM_MAINTAINER_MODE([enable])
instead. Ron, the<br>
> debian wacom maintainer, actually commits _all_ generated
files as well to a<br>
> branch. this way he has a known-working tree available, but
he needs to<br>
> disable maintainer mode to avoid re-generation of the files
on checkout.<br>
<br>
>
<a class="moz-txt-link-freetext" href="http://old.nabble.com/Re%3A--PATCH-libwacom--Drop-AM_MAINTAINER_MODE-p34696663.html">http://old.nabble.com/Re%3A--PATCH-libwacom--Drop-AM_MAINTAINER_MODE-p34696663.html</a><br>
<br>
> I suspect that rather than removing AM_MAINTAINER_MODE across
modules, using<br>
> AM_MAINTAINER_MODE([enable]) is the better option.<br>
</blockquote>
If you remove AM_MAINTAINER_MODE you should also remove
"--enable-maintainer-mode" from autogen.sh to avoid getting a
warning from "./configure". It is an option to the
AM_MAINTAINER_MODE macro.<br>
<br>
Having AM_MAINTAINER_MODE([enable]) might have been proposed as a
workaround to the warning. Note that the default for
AM_MAINTAINER_MODE is "disable". Removing the AM_MAINTAINER_MODE
statement altogether (with the matching change in autogen.sh)
acheives the same results with the added benefit that you won't have
to explain why the noop "AM_MAINTAINER_MODE([enable])" statement is
there.<br>
<blockquote type="cite"><br>
The type of file archiving is likely to get changed in the future
so<br>
it's worth doing. Particularly that when it needs to be done, it
needs<br>
to be done on all packages. Getting people to agree on the content
is a<br>
different matter.<br>
||<br>
<br>
> right. given that we still need gz at this point I reckon
it's not worth the<br>
> hassle for now.<br>
<br>
> Cheers,<br>
> Peter<br>
<br>
<br>
</blockquote>
<span style="white-space: pre;">>><br>
></span><br>
<br>
<br>
</body>
</html>