* Michael Orlitzky <m...@gentoo.org> [150328 12:11]: > On 03/28/2015 10:36 AM, James wrote: > > James <wireless <at> tampabay.rr.com> writes: > > > > > >> Often, I need to inspect and ponder these files: configure.ac and Makefile > >> .am for a given ebuild. Is there an easy way to look at them with > >> compiling the ebuild ? > > > > oops, > > > > Should be : Often, I need to inspect and ponder these files: configure.ac > > and Makefile.am for a given ebuild. Is there an easy way to look at them > > *without* compiling the ebuild ? > > > > Those files are part of the upstream tarball. The easiest way to fetch > the sources without compiling them is with `emerge -f`. Then you can > copy the tarball out of $DISTDIR and unpack it somewhere. > > Some ebuilds may patch configure.ac or Makefile.am -- in that case it's > a little harder. I'm sure there's an elegant way to do it, but what I > usually do is begin to emerge the package and Ctrl-C it when it starts > compiling. Then you can find the sources under /var/tmp/portage. >
Wouldn't 'ebuild <ebuild_file_name> prepare' do what you want without trying to time a Ctrl-C?