Bug 61334 - some patch for autotools
Summary: some patch for autotools
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-23 09:05 UTC by Vincent Torri
Modified: 2013-09-30 08:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
rename configure.in to configure.ac (5.25 KB, patch)
2013-02-23 09:07 UTC, Vincent Torri
Details | Splinter Review
rename obsolete INCLUDES to AM_CPPFLAGS (568 bytes, patch)
2013-02-23 09:07 UTC, Vincent Torri
Details | Splinter Review
use autoreconf and add m4 files (36.89 KB, patch)
2013-02-23 09:08 UTC, Vincent Torri
Details | Splinter Review

Description Vincent Torri 2013-02-23 09:05:35 UTC
Here are 3 patches for the build system:

1) configure.in is renamed configure.ac, the former will not be used anymore by the next autoconf release

2) use AM_CPPFLAGS instead of obsolete INCLUDES in Makefile.am

3) use autoreconf and add m4 files needed for the configuration, so that they are always available.
Comment 1 Vincent Torri 2013-02-23 09:07:13 UTC
Created attachment 75397 [details] [review]
rename configure.in to configure.ac
Comment 2 Vincent Torri 2013-02-23 09:07:52 UTC
Created attachment 75398 [details] [review]
rename obsolete INCLUDES to AM_CPPFLAGS
Comment 3 Vincent Torri 2013-02-23 09:08:19 UTC
Created attachment 75399 [details] [review]
use autoreconf and add m4 files
Comment 4 Bastien Nocera 2013-02-26 14:43:41 UTC
Comment on attachment 75397 [details] [review]
rename configure.in to configure.ac

Review of attachment 75397 [details] [review]:
-----------------------------------------------------------------

Looks good.
Comment 5 Bastien Nocera 2013-02-26 14:45:37 UTC
Comment on attachment 75399 [details] [review]
use autoreconf and add m4 files

Review of attachment 75399 [details] [review]:
-----------------------------------------------------------------

::: m4/glib-gettext.m4
@@ +1,1 @@
> +# Copyright (C) 1995-2002 Free Software Foundation, Inc.

There's no reason for those files to be in git though.
Comment 6 Bastien Nocera 2013-02-26 14:45:57 UTC
Comment on attachment 75398 [details] [review]
rename obsolete INCLUDES to AM_CPPFLAGS

Review of attachment 75398 [details] [review]:
-----------------------------------------------------------------

An explanation would be needed in the commit log.
Comment 7 Vincent Torri 2013-02-26 14:49:55 UTC
(In reply to comment #5)
> Comment on attachment 75399 [details] [review] [review]
> use autoreconf and add m4 files
> 
> Review of attachment 75399 [details] [review] [review]:
> -----------------------------------------------------------------
> 
> ::: m4/glib-gettext.m4
> @@ +1,1 @@
> > +# Copyright (C) 1995-2002 Free Software Foundation, Inc.
> 
> There's no reason for those files to be in git though.

why ?

if they are not provided, the user must install libraries just for them. For example on Windows, i would have to install glib just for glib-gettext.m4, just for a set of macro, while I don't need glib at all.

Anyway, i think that all that intltool and glib stuff should be removed, and only plain gettext should be used.
Comment 8 Vincent Torri 2013-02-26 14:50:39 UTC
(In reply to comment #6)
> Comment on attachment 75398 [details] [review] [review]
> rename obsolete INCLUDES to AM_CPPFLAGS
> 
> Review of attachment 75398 [details] [review] [review]:
> -----------------------------------------------------------------
> 
> An explanation would be needed in the commit log.

the explanation is there : INCLUDES is obsolete. See automake manual.
Comment 9 Bastien Nocera 2013-02-26 16:04:55 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > Comment on attachment 75398 [details] [review] [review] [review]
> > rename obsolete INCLUDES to AM_CPPFLAGS
> > 
> > Review of attachment 75398 [details] [review] [review] [review]:
> > -----------------------------------------------------------------
> > 
> > An explanation would be needed in the commit log.
> 
> the explanation is there : INCLUDES is obsolete. See automake manual.

The explanation is in bugzilla, and not in the commit log, as I asked.
Comment 10 Bastien Nocera 2013-02-26 16:06:41 UTC
(In reply to comment #7)
> (In reply to comment #5)
> > Comment on attachment 75399 [details] [review] [review] [review]
> > use autoreconf and add m4 files
> > 
> > Review of attachment 75399 [details] [review] [review] [review]:
> > -----------------------------------------------------------------
> > 
> > ::: m4/glib-gettext.m4
> > @@ +1,1 @@
> > > +# Copyright (C) 1995-2002 Free Software Foundation, Inc.
> > 
> > There's no reason for those files to be in git though.
> 
> why ?
> 
> if they are not provided, the user must install libraries just for them. For
> example on Windows, i would have to install glib just for glib-gettext.m4,
> just for a set of macro, while I don't need glib at all.

glib is required to compile shared-mime-info, so you would need to install it...

> Anyway, i think that all that intltool and glib stuff should be removed, and
> only plain gettext should be used.

Good luck getting GNU gettext to translate XML files.
Comment 11 Bastien Nocera 2013-09-30 08:28:57 UTC
Comment on attachment 75399 [details] [review]
use autoreconf and add m4 files

I committed the autoreconf usage changes for autogen.sh
Comment 12 Bastien Nocera 2013-09-30 08:29:27 UTC
Considering this as fixed, as removing glib usage is highly unlikely.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.