[lttng-dev] [PATCH babeltrace] Use autoconf AM_MAINTAINER_MODE.

Woegerer, Paul Paul_Woegerer at mentor.com
Thu Mar 13 05:55:33 EDT 2014


On 03/13/2014 09:12 AM, Lars Persson wrote:
> It is useful when unpacking the distribution tarballs into another revision control system that doesn't preserve timestamps. If we retrigger autoconf, then some developer workstations will fail on the builds because they have outdated autoconf packages.

Without using AM_MAINTAINER_MODE we let users pay for something (having
recent autotools installed on their machines) that they will not need in
most cases. Using AM_MAINTAINER_MODE allows you to suppress the
dependency to autotools if you are sure you do not really need it (e.g.
you are not changing any Makefile.am or configure.ac).

If you ever tried to install a new version of LTTng on an ancient Linux
installation running on a VM in another timezone you will be very happy
if you do not need to also install new autotools packages prior to
building and installing the lttng packages.


--
Thanks,
Paul


> 
> - Lars
> 
>> -----Original Message-----
>> From: Mathieu Desnoyers [mailto:mathieu.desnoyers at efficios.com]
>> Sent: den 12 mars 2014 20:00
>> To: Lars Persson
>> Cc: lttng-dev at lists.lttng.org; Lars Persson
>> Subject: Re: [lttng-dev] [PATCH babeltrace] Use autoconf
>> AM_MAINTAINER_MODE.
>>
>> ----- Original Message -----
>>> From: "Lars Persson" <lars.persson at axis.com>
>>> To: lttng-dev at lists.lttng.org
>>> Cc: "Lars Persson" <larper at axis.com>
>>> Sent: Wednesday, March 12, 2014 5:05:17 AM
>>> Subject: [lttng-dev] [PATCH babeltrace] Use autoconf
>> AM_MAINTAINER_MODE.
>>>
>>> Give distribution maintainers the option to skip rebuilding autoconf
>>> and automake generated files. The default behaviour is still to have
>>> the rebuild rules enabled.
>>
>> I just did some reading on this, and found:
>>
>> http://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/
>>
>> So, in what use-case is --disable-maintainer-mode useful nowadays ? All
>> it seems to do is to stop ensuring that Makefile are consistent with
>> changes to Makefile.am.
>>
>> Thanks,
>>
>> Mathieu
>>
>>>
>>> Signed-off-by: Lars Persson <larper at axis.com>
>>> ---
>>>  configure.ac |    1 +
>>>  1 files changed, 1 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/configure.ac b/configure.ac index 7a98612..faa3f98
>> 100644
>>> --- a/configure.ac
>>> +++ b/configure.ac
>>> @@ -11,6 +11,7 @@ AC_CONFIG_AUX_DIR([config])  AC_CANONICAL_TARGET
>>> AC_CANONICAL_HOST  AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip])
>>> +AM_MAINTAINER_MODE([enable])
>>>  m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
>>>
>>>  AC_CONFIG_MACRO_DIR([m4])
>>> --
>>> 1.7.2.5
>>>
>>>
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev at lists.lttng.org
>>> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>>>
>>
>> --
>> Mathieu Desnoyers
>> EfficiOS Inc.
>> http://www.efficios.com
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 


-- 
Paul Woegerer, SW Development Engineer
Sourcery Analyzer <http://go.mentor.com/sourceryanalyzer>
Mentor Graphics, Embedded Software Division



More information about the lttng-dev mailing list