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

Bug 466412

Summary: net-print/cups-filters-1.0.30 fails with automake-1.13
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis <arfrever.fta>
Component: [OLD] PrintingAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal CC: sleeperseven
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 451744    
Attachments: Patch to use the new AC_CONFIG_HEADERS function
Apply patch in ebuild

Description Arfrever Frehtes Taifersar Arahesis 2013-04-19 00:53:25 UTC
>>> Preparing source in /var/tmp/portage/net-print/cups-filters-1.0.30/work/cups-filters-1.0.30 ...
 * Applying cups-filters-1.0.29-openrc.patch ...                                                                                                      [ ok ]
 * Applying cups-filters-1.0.30-noavahi.patch ...                                                                                                     [ ok ]
 * Running eautoreconf in '/var/tmp/portage/net-print/cups-filters-1.0.30/work/cups-filters-1.0.30' ...
 * Running libtoolize --install --copy --force --automake ...                                                                                         [ ok ]
 * Running aclocal -I m4 ...                                                                                                                          [ !! ]

 * Failed Running aclocal !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/net-print/cups-filters-1.0.30/temp/aclocal.out

 * ERROR: net-print/cups-filters-1.0.30 failed (prepare phase):
 *   Failed Running aclocal !


$ cat /var/tmp/portage/net-print/cups-filters-1.0.30/temp/aclocal.out
***** aclocal *****
***** PWD: /var/tmp/portage/net-print/cups-filters-1.0.30/work/cups-filters-1.0.30
***** aclocal -I m4

/usr/share/aclocal/gtkglextmm-1.2.m4:225: warning: underquoted definition of AC_GTKGLEXTMM_SUPPORTS_MULTIHEAD
/usr/share/aclocal/gtkglextmm-1.2.m4:225:   run info Automake 'Extending aclocal'
/usr/share/aclocal/gtkglextmm-1.2.m4:225:   or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:23: error: 'AM_CONFIG_HEADER': this macro is obsolete.
    You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
configure.ac:23: the top level
autom4te-2.69: /usr/bin/m4 failed with exit status: 1
aclocal-1.13: error: echo failed with exit status: 1
Comment 1 Daniel J. 2013-04-24 19:11:08 UTC
As a temporary workaround, you can add this to the ebuild to get it to work:
WANT_AUTOMAKE=1.12
Comment 2 Arfrever Frehtes Taifersar Arahesis 2013-04-24 19:16:07 UTC
Better to apply correct fix (already described in comment #0) than a workaround.

--- cups-filters-1.0.30.ebuild
+++ cups-filters-1.0.30.ebuild
@@ -49,6 +49,7 @@
 
 src_prepare() {
        base_src_prepare
+       sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac
        eautoreconf
 }
Comment 3 Daniel J. 2013-04-24 19:25:31 UTC
(In reply to comment #2)
> Better to apply correct fix (already described in comment #0) than a
> workaround.
Good point. I didn't realize that it was a drop-in solution. (But then, automake and m4 are black magic to me.)
Comment 4 Jan Bessai 2013-04-25 05:41:07 UTC
Created attachment 346564 [details, diff]
Patch to use the new AC_CONFIG_HEADERS function
Comment 5 Jan Bessai 2013-04-25 05:42:09 UTC
Created attachment 346566 [details]
Apply patch in ebuild
Comment 6 Patrick Lauer gentoo-dev 2013-04-25 09:47:54 UTC
+  25 Apr 2013; Patrick Lauer <patrick@gentoo.org> cups-filters-1.0.30.ebuild:
+  Apply automake fix #466412
+