! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Mousepad git won't build
Status:
RESOLVED: FIXED
Severity:
critical
Product:
Mousepad
Component:
General

Comments

Description webaake 2013-03-22 10:16:15 CET
Error message:
sh ./autogen.sh
Preparing package directory /home/mrmedia/Downloads/mousepad-git/src/mousepad...
Running glib-gettextize --force --copy...
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Running intltoolize --automake --copy --force
Patching file 'po/Makefile.in.in'
Running libtoolize --force --copy...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize:   `/usr/share/aclocal/libtool.m4'
libtoolize:   `/usr/share/aclocal/ltoptions.m4'
libtoolize:   `/usr/share/aclocal/ltversion.m4'
libtoolize:   `/usr/share/aclocal/ltsugar.m4'
libtoolize:   `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running aclocal   -I /usr/share/xfce4/dev-tools/m4macros -I /usr/share/xfce4/dev-tools/m4macros...
configure.ac:36: 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:36: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1

I'm the ARCH AUR maintainer of the git version and all dependencies are updated.
Versions:
automake 1.13.1-1 
xfce4-dev-tools 4.10.0-1
gettext 0.18.2.1-1
gtksourceview2 2.10.5-2
gcc 4.7.2-4

I'm on 32-bit fully updated ARCH. Please advise if more info is needed.
Comment 1 webaake 2013-03-22 12:43:59 CET
Seems to relate to automake version. Adding ;
sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.ac.in
to the ARCH build script fixes it.
Comment 2 Andre Miranda editbugs 2013-10-11 05:57:50 CEST
Strange, here I can build from git smoothly.
I'm also running an fully updated Arch setup, but 64-bit.
My versions are:
automake 1.14-1
xfce4-dev-tools 4.10.0-1
gettext 0.18.3.1-1
gtksourceview2 2.10.5-2
gcc 4.8.1-3

I ran makepkg with your PKGBUILD with and without the sed patch, no problems occurred.
Does the error still happens without the sed patch?
Comment 3 Andre Miranda editbugs 2014-05-05 19:19:50 CEST
Created attachment 5472 
Fix configure.ac.in

As noted by the bug's author, this bug is not affecting the build anymore[1].

The macro AM_CONFIG_HEADER is marked as deprecated for ages, but in automake 1.12 it started to throw errors instead of warnings.
In version 1.13, they changed their minds and the macro is again just throwing warnings again[2].

The attached patch fixes the configure.ac.in to use the correct macro.

[1] https://aur.archlinux.org/packages/mousepad-git/
[2] http://git.savannah.gnu.org/cgit/automake.git/tree/NEWS?id=v1.13.2#n128

Bug #9939

Reported by:
webaake
Reported on: 2013-03-22
Last modified on: 2014-07-12

People

Assignee:
Matthew Brush
CC List:
4 users

Version

Target Milestone:
Mousepad 0.2.x

Attachments

Fix configure.ac.in (436 bytes, patch)
2014-05-05 19:19 CEST , Andre Miranda
no flags

Additional information