Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 581308

Summary: app-misc/gnote-3.18.1: aclocal: m4/glib-gettext.m4:39: error: m4_copy: won't overwrite defined macro: glib_DEFUN
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: Christopher.Lundgren, gentoo, rose, viachaslavic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 580302    

Description Ed Catmur 2016-04-26 23:07:52 UTC
>>> Preparing source in /var/tmp/portage/app-misc/gnote-3.18.1/work/gnote-3.18.1 ...
 * Applying gnote-3.18.2-x11-support-switch.patch ...                    [ ok ]
 * Running eautoreconf in '/var/tmp/portage/app-misc/gnote-3.18.1/work/gnote-3.18.1' ...
 * Running glib-gettextize --copy --force ...                            [ ok ]
 * Running intltoolize --automake --copy --force ...                     [ ok ]
 * Running libtoolize --install --copy --force --automake ...            [ ok ]
 * Running aclocal -I m4 ...                                             [ !! ]

 * Failed Running aclocal !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/app-misc/gnote-3.18.1/temp/aclocal.out

 * ERROR: app-misc/gnote-3.18.1::gentoo failed (prepare phase):
 *   Failed Running aclocal !

***** aclocal *****
***** PWD: /var/tmp/portage/app-misc/gnote-3.18.1/work/gnote-3.18.1
***** aclocal -I m4

m4/glib-gettext.m4:39: error: m4_copy: won't overwrite defined macro: glib_DEFUN
m4/glib-gettext.m4:39: the top level
autom4te-2.69: /usr/bin/m4 failed with exit status: 1
aclocal-1.15: error: echo failed with exit status: 1

Looks like bug 580302.

In that case per https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c13b5e88c6e9c7bd2698d844cb5ed127ed809f7e the fix is to nuke the shipped m4/glib-gettext.m4 prior to running eautoreconf:

	# Prevent m4_copy error when running aclocal
	# m4_copy: won't overwrite defined macro: glib_DEFUN
	rm m4/glib-gettext.m4 || die

This seems to work fine here.
Comment 1 Chris 2016-04-27 09:37:07 UTC
I can confirm that glib-gettext.m4 fixes this.
Comment 2 Tristan Heaven (RETIRED) gentoo-dev 2016-05-05 12:46:52 UTC
*** Bug 577246 has been marked as a duplicate of this bug. ***
Comment 3 Viachaslau Khalikin 2016-05-07 01:43:45 UTC
*** Bug 577246 has been marked as a duplicate of this bug. ***
Comment 4 Juergen Rose 2016-06-19 13:56:55 UTC
Any news? gnote-3.18.1 still does not compile.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2016-06-19 20:47:53 UTC
Fixed in git without a revision bump. Sorry for the long wait!

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f8551642b77435b0b2580e90ade514d328c2120