After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 760393 - Stop using deprecated gnome-common and add hooks
Stop using deprecated gnome-common and add hooks
Status: RESOLVED FIXED
Product: five-or-more
Classification: Applications
Component: general
git master
Other Mac OS
: Normal major
: ---
Assigned To: Sahil Sareen
five-or-more-maint
Depends on:
Blocks:
 
 
Reported: 2016-01-10 12:56 UTC by Sahil Sareen
Modified: 2016-01-12 18:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Replace deprecated gnome-common and add hooks (3.39 KB, patch)
2016-01-10 13:14 UTC, Sahil Sareen
needs-work Details | Review

Description Sahil Sareen 2016-01-10 12:56:58 UTC
Gnome common is deprecated: https://wiki.gnome.org/Projects/GnomeCommon/Migration
Comment 1 Sahil Sareen 2016-01-10 13:14:26 UTC
Created attachment 318651 [details] [review]
Replace deprecated gnome-common and add hooks
Comment 2 Michael Catanzaro 2016-01-10 16:33:58 UTC
Review of attachment 318651 [details] [review]:

::: Makefile.am
@@ +1,3 @@
 SUBDIRS = data help po src
 
+ACLOCAL_AMFLAGS = --install -I m4 ${ACLOCAL_FLAGS}

Nope, ACLOCAL_AMFLAGS is deprecated. Instead use AC_CONFIG_MACRO_DIR([m4]) in configure.ac. Either way forces aclocal to copy needed m4 files from the system into the m4 directory.

Where did you see advise to use this?

@@ +3,3 @@
+ACLOCAL_AMFLAGS = --install -I m4 ${ACLOCAL_FLAGS}
+
+EXTRA_DIST = autogen.sh NEWS

We don't want to distribute autogen.sh, since it has no purpose in tarballs.

I think NEWS is automatically distributed?

::: configure.ac
@@ +2,3 @@
 AC_INIT([Five or More], [3.19.3], [https://bugzilla.gnome.org/],
         [five-or-more], [https://wiki.gnome.org/Apps/Five%20or%20more])
+AC_CONFIG_MACRO_DIR([m4])

Good.
Comment 3 Sahil Sareen 2016-01-12 15:08:36 UTC
(In reply to Michael Catanzaro from comment #2)

> Where did you see advise to use this?

I was just following gnome-chess, will fix gnome-chess as well.

> I think NEWS is automatically distributed?

I'm checking this but removed for now.
Comment 4 Sahil Sareen 2016-01-12 15:11:32 UTC
Fixed comments and pushed to master.

To ssh://ssareen@git.gnome.org/git/five-or-more
   4d9941c..036cedd  master -> master
Comment 5 Sahil Sareen 2016-01-12 15:30:01 UTC
(In reply to Michael Catanzaro from comment #2)

> I think NEWS is automatically distributed?

Confirmed, you are right.

ebassi on #gnome-hackers "sssareen: autotools automatically puts NEWS in the dist tarball, so you don't need to use EXTRA_DIST"
Comment 6 Michael Catanzaro 2016-01-12 15:43:59 UTC
(In reply to Sahil Sareen from comment #3)
> (In reply to Michael Catanzaro from comment #2)
> 
> > Where did you see advise to use this?
> 
> I was just following gnome-chess, will fix gnome-chess as well.

But gnome-chess does not use ACLOCAL_AMFLAGS anymore. :)
Comment 7 Sahil Sareen 2016-01-12 18:07:15 UTC
(In reply to Michael Catanzaro from comment #6)
> (In reply to Sahil Sareen from comment #3)
> > (In reply to Michael Catanzaro from comment #2)
> > 
> > > Where did you see advise to use this?
> > 
> > I was just following gnome-chess, will fix gnome-chess as well.
> 
> But gnome-chess does not use ACLOCAL_AMFLAGS anymore. :)

Oh! Thats right again! :P

I was looking at a stale branch.