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

Bug 447760

Summary: autotools.eclass: error: non-option arguments are not accepted: '"-I' aclocal
Product: Gentoo Linux Reporter: Markos Chandras (RETIRED) <hwoarang>
Component: EclassesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430520    

Description Markos Chandras (RETIRED) gentoo-dev 2012-12-18 19:28:29 UTC
Running eautoreconf on dev-libs/libmail-0.3 gives the following error

***** aclocal *****
***** PWD: /var/tmp/portage/dev-libs/libmail-0.3-r1/work/libmail-0.3
***** aclocal "-I m4"

aclocal-1.12: error: non-option arguments are not accepted: '"-I'.
aclocal-1.12: Try '/usr/bin/aclocal-1.12 --help' for more information.

I suspect this is because the Makefile.am has the following lines

ACLOCAL_AMFLAGS="-I m4"
SUBDIRS = man libmail
EXTRA_DIST = TODO

Dropping the quotes should solve the problem (haven't tested it yet). What is the proposed solution here? Fix the package's Makefile.am to not have the quotes around the ACLOCAL_AMFLAGS or fix the eclass instead?
Comment 1 SpanKY gentoo-dev 2012-12-18 19:48:52 UTC
that package is wrong.  run `autoreconf -f -i` and you'll see it fail too.  drop the quotes as they serve literally no purpose (other than perhaps to break).