Update homebrew espeak formula

(Austek) #1

I thought, I will update the espeak formula to latest available as the current one is old.

I am able to build and install locally by following the guide on espeak-ng which would be to execute

./autogen.sh
./configure
make && make install

however the same steps

share.install "espeak-ng-data"
doc.install Dir["docs/*"]
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"

fails on brew, here is the file I updated

Error I get

Last 15 lines from /Users/austek/Library/Logs/Homebrew/espeak-ng/03.make:
  CC       src/libespeak-ng/test_la-fifo.lo
  CCLD     src/libespeak-ng-test.la
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: src/.libs/libespeak-ng-test.a(test_la-espeak_command.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: src/.libs/libespeak-ng-test.a(test_la-fifo.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: src/.libs/libespeak-ng-test.a(test_la-espeak_command.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: src/.libs/libespeak-ng-test.a(test_la-fifo.o) has no symbols
  CCLD     tests/readclause.test
  CC       tests/api_test-api.o
  CCLD     tests/api.test
ESPEAK_DATA_PATH=/private/tmp/espeak-ng-20190507-11315-19vs4ni/espeak-ng-1.49.2 src/espeak-ng --compile-intonations && \
                 ESPEAK_DATA_PATH=/private/tmp/espeak-ng-20190507-11315-19vs4ni/espeak-ng-1.49.2 src/espeak-ng --compile-phonemes && \
                 touch phsource/phonemes.stamp
Error processing file '/private/tmp/espeak-ng-20190507-11315-19vs4ni/espeak-ng-1.49.2/../phsource/intonation': No such file or directory.
make[1]: *** [phsource/phonemes.stamp] Error 1
make: *** [all] Error 2
(Sean Molenaar) #2

what if you use --interactive with the install. see https://docs.brew.sh/Manpage#install-options-formula

(Austek) #3

I already tried that, trying to figure out differences, I’ve tried to use gcc as well to no avail

Here is the output of make with brew install --interactive https://pastebin.com/u8XM4jdG
Here is the output of make with normal shell https://pastebin.com/Z0bfZGtt

make run in brew doesn’t seem to be trying to compile at all.