View previous topic :: View next topic |
Author |
Message |
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Sat Jul 28, 2012 11:04 pm Post subject: [SOLVED] Can't run autogen.sh successfully within Portage... |
|
|
It seems that ac-wrapper is really getting in the way of things here. When I run ./autogen.sh and ./configure with the same arguments as Portage but outside of Portage, automake creates the Makefile.in file. Otherwise, it does not and ./configure fails. Any ideas to why this happens?
Only within Portage:
Code: |
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
|
Relevant part of ebuild:
Code: |
src_configure() {
myconf=""
if ! use bundled-libs; then
einfo "Disabling bundled libraries.."
myconf="${myconf} --with-system-pcre"
fi
chmod +x ./autogen.sh
./autogen.sh
egamesconf \
--disable-dependency-tracking \
--enable-lua-binaries \
--with-extdatadir \
$(use_enable gtk gtk2) \
$(use_with debug) \
$(use_with X x) \
$(use_with jpeg) \
$(use_with mad mp3) \
$(use_with vorbis) \
$(use_with network) \
$(use_with ffmpeg) \
$(use_with theora) \
${myconf}
}
|
Last edited by Tatsh on Sun Jul 29, 2012 12:01 am; edited 1 time in total |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Sat Jul 28, 2012 11:54 pm Post subject: |
|
|
Tatsh ...
I'm not exactly sure ... but I would place the (local) 'myconf' after the autogen.sh and I would make sure that nothing is getting passed to autogen.sh accidentally.
Code: | ./autogen.sh || die "autogen failed"
local myconf=""
if ! use bundled-libs; then
einfo "Disabling bundled libraries.."
myconf="${myconf} --with-system-pcre"
fi
egamesconf \
[...] |
HTH & best ... khay |
|
Back to top |
|
|
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Sat Jul 28, 2012 11:59 pm Post subject: |
|
|
I fixed it by using eautoreconf in src_prepare() after the patches are applied. I also had a misspelling (PRCE instead of PCRE). Now it works great.
If anyone is interested in a working StepMania 9999 ebuild, see here:
https://github.com/Tatsh/tatsh-overlay
Get the overlay and emerge stepmania. |
|
Back to top |
|
|
|