Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420223 - media-libs/libmng failed to emerge due to automake:1.12
Summary: media-libs/libmng failed to emerge due to automake:1.12
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Graphics Project
URL: https://sourceforge.net/tracker/?func...
Whiteboard:
Keywords:
: 420283 420589 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-08 09:45 UTC by Leonid Kopylov
Modified: 2012-06-14 03:07 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patched ebuild (libmng-1.0.10-r1.ebuild,1.30 KB, text/plain)
2012-06-11 13:02 UTC, madcabbit
Details
Patch (configure.in.patch,309 bytes, patch)
2012-06-11 20:19 UTC, Vadim Suharnikov
Details | Diff
Corrected patch (configure.in.patch,270 bytes, patch)
2012-06-12 05:29 UTC, Vadim Suharnikov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2012-06-08 09:45:57 UTC
/var/tmp/portage/media-libs/libmng-1.0.10-r1/temp/build.log
 * Package:    media-libs/libmng-1.0.10-r1
 * Repository: gentoo
 * Maintainer: graphics@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux lcms multilib userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking libmng-1.0.10.tar.gz to /var/tmp/portage/media-libs/libmng-1.0.10-r1/work
>>> Source unpacked in /var/tmp/portage/media-libs/libmng-1.0.10-r1/work
>>> Preparing source in /var/tmp/portage/media-libs/libmng-1.0.10-r1/work/libmng-1.0.10 ...
 * Running eautoreconf in '/var/tmp/portage/media-libs/libmng-1.0.10-r1/work/libmng-1.0.10' ...
 * Running libtoolize --install --copy --force --automake ...                                                                       [ ok ]
 * Running aclocal ...                                                                                                              [ !! ]

 * Failed Running aclocal !
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/media-libs/libmng-1.0.10-r1/temp/aclocal.out

 * ERROR: media-libs/libmng-1.0.10-r1 failed (prepare phase):
 *   Failed Running aclocal !
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_prepare
 *   environment, line 1485:  Called eautoreconf
 *   environment, line  577:  Called eaclocal
 *   environment, line  484:  Called autotools_run_tool '--at-m4flags' 'aclocal'
 *   environment, line  463:  Called die
 * The specific snippet of code:
 *           die "Failed Running $1 !";
 *
 * If you need support, post the output of `emerge --info '=media-libs/libmng-1.0.10-r1'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/libmng-1.0.10-r1'`.
/usr/lib64/portage/bin/isolated-functions.sh: line 214: wait: `Failed Running aclocal !': not a pid or valid job spec
 * The complete build log is located at '/var/tmp/portage/media-libs/libmng-1.0.10-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/libmng-1.0.10-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/libmng-1.0.10-r1/work/libmng-1.0.10'
 * S: '/var/tmp/portage/media-libs/libmng-1.0.10-r1/work/libmng-1.0.10'


# emerge -pqv '=media-libs/libmng-1.0.10-r1'
[ebuild  N    ] media-libs/libmng-1.0.10-r1  USE="lcms -static-libs"


# emerge --info '=media-libs/libmng-1.0.10-r1'
Portage 2.1.10.65 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.15-r2, 3.3.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.3.8-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Fri, 08 Jun 2012 07:45:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p29
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 Nero-EULA-US PUEL skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en he ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X X509 a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli colord consolekit cracklib crypt cryptsetup cups cxx dbus doc dri dts dvd dvdr eds emboss encode evo examples exif fam firefox flac fortran gcc gcj gd gdbm gif glibc-omitfp gmp gnome gnome-keyring gnome-online-accounts go gpm graphite gstreamer gtk hesiod iconv jpeg kerberos lcms ldap libnotify mad mbox minizip mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses netlink nis nls nptl objc objc++ objc-gc offensive ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd profile pulseaudio python qt3support qt4 readline sasl sdl session socialweb spell sqlite sse sse2 ssl startup-notification svg symlink tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wininst wxwidgets x264 xattr xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en he ru" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# cat /var/tmp/portage/media-libs/libmng-1.0.10-r1/temp/aclocal.out
***** aclocal *****
***** PWD: /var/tmp/portage/media-libs/libmng-1.0.10-r1/work/libmng-1.0.10
***** aclocal

configure.in:18: error: automatic de-ANSI-fication support has been removed
/usr/share/aclocal-1.12/protos.m4:12: AM_C_PROTOTYPES is expanded from...
configure.in:18: the top level
autom4te-2.69: /usr/bin/m4 failed with exit status: 1
aclocal-1.12: error: autom4te failed with exit status: 1
Comment 1 Rafał Mużyło 2012-06-08 13:46:50 UTC
That *obsolete* macro seems unused and should just be removed.
Comment 2 thanasis 2012-06-08 16:08:24 UTC
Encountered this too, trying to emerge cups on a new system (from stage3).
Comment 3 Rafał Mużyło 2012-06-08 19:09:55 UTC
*** Bug 420283 has been marked as a duplicate of this bug. ***
Comment 4 Rafał Mużyło 2012-06-08 19:29:58 UTC
@comment 2: again, file a separate bug with your build log
Comment 5 Alexander Kyte 2012-06-10 02:29:54 UTC
I'm currently stuck in a chroot'ed stage3 because of this bug. Is there a monkeypatch or a quick fix? Where could I get a copy of the ebuild previous to this bug?
Comment 6 Marek Bartosiewicz 2012-06-10 05:02:14 UTC
commenting out AM_C_PROTOTYPES in configure.in allows libmng to compile.
Comment 7 Alexander Kyte 2012-06-10 15:22:02 UTC
I've commented it out in /var/tmp/portage/media-libs/libmng-1.0.10-r1/work but that gets overwritten by emerge when it untars the archive. I've commented out the version in the tarball in /var/tmp/portage/media-libs/libmng-1.0.10-r1/distdir but emerge just downloads the new one. How do I make an edit that persists?
Comment 8 Rafał Mużyło 2012-06-10 17:47:36 UTC
@comment 5: 'man ebuild; man 5 ebuild'
Comment 9 Alexander Kyte 2012-06-10 19:43:51 UTC
@ comment 8

That tells me how to change the ebuild, not how to make portage use it as if it was unaltered. I want this to go through the package manager, otherwise portage will just try to reinstall it every time I try to merge qt4.
Comment 10 madcabbit 2012-06-11 01:44:38 UTC
Once you modify the ebuild, you need to update the manifest.  This can be done by running "ebuild ebuildname manifest" (using the correct filename) in the ebuild directory.  All changes will be wiped out with the next "emerge --sync" though.
Comment 11 madcabbit 2012-06-11 02:12:13 UTC
I modified the src_prepare section as follows, rebuild the manifest, and got the ebuild to work.


src_prepare() {
	sed -e "s/^AM_C_PROTOTYPES$/#AM_C_PROTOTYPES/" makefiles/configure.in > makefiles/configure.in.new
	mv makefiles/configure.in.new makefiles/configure.in
	ln -s makefiles/configure.in .
	ln -s makefiles/Makefile.am .

	eautoreconf
}
Comment 12 madcabbit 2012-06-11 02:14:31 UTC
sed -e "s/^AM_C_PROTOTYPES$/#AM_C_PROTOTYPES/" makefiles/configure.in > makefiles/configure.in.new

This part shouldn't wrap; its all one line.
Comment 13 Rafał Mużyło 2012-06-11 10:16:21 UTC
*** Bug 420589 has been marked as a duplicate of this bug. ***
Comment 14 Rafał Mużyło 2012-06-11 10:19:44 UTC
@comment 11: 'man sed'
'sed -i' perhaps ?
Comment 15 madcabbit 2012-06-11 12:50:33 UTC
(In reply to comment #14)
> @comment 11: 'man sed'
> 'sed -i' perhaps ?

Did you make sure the line didn't wrap as per my last comment?
Comment 16 madcabbit 2012-06-11 13:02:20 UTC
Created attachment 314981 [details]
Patched ebuild
Comment 17 SpanKY gentoo-dev 2012-06-11 15:40:38 UTC
Comment on attachment 314981 [details]
Patched ebuild

post diffs, not entire files.  it's hard to review entire files.
Comment 18 Vadim Suharnikov 2012-06-11 20:19:12 UTC
Created attachment 315031 [details, diff]
Patch
Comment 19 Vadim Suharnikov 2012-06-11 20:21:51 UTC
Comment on attachment 315031 [details, diff]
Patch

>*** configure.in	2012-06-12 00:04:00.660764200 +0000
>--- configure.in.patch	2012-06-12 00:04:58.205761797 +0000
>***************
>*** 15,21 ****
>  dnl Checks for programs.
>  AC_PROG_CC
>  AC_ISC_POSIX
>- AM_C_PROTOTYPES
>  if test "x$U" != "x"; then
>    AC_MSG_ERROR(Compiler not ANSI compliant)
>  fi
>--- 15,20 ----
Comment 20 Vadim Suharnikov 2012-06-11 20:23:42 UTC
My first patch
Comment 21 Rafał Mużyło 2012-06-11 21:34:54 UTC
(In reply to comment #20)
> My first patch

Use 'diff -u'. Other than than, it does what I said in comment 1.
automake 1.12 seems to be a bit of a pain (going up to gcc slot upgrade level), but on the other hand most of it is janitorial in its nature (after all, AM_C_PROTOTYPES is about a syntax construct that's implemented in any sane C compiler these days).
Comment 22 Vadim Suharnikov 2012-06-12 05:29:29 UTC
Created attachment 315067 [details, diff]
Corrected patch
Comment 23 SpanKY gentoo-dev 2012-06-12 13:14:45 UTC
Comment on attachment 315067 [details, diff]
Corrected patch

LGTM.  thanks!
Comment 24 SpanKY gentoo-dev 2012-06-14 03:07:41 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix by Vadim for building with newer automake
http://sources.gentoo.org/media-libs/libmng/libmng-1.0.10-r1.ebuild?r1=1.9&r2=1.10