When patching gcc specs file use existing specs if found

This avoids clobbering the specs file that ships with the
bionic toolchain.

This allows a lot more packages to build with bionic.

R=noelallen@chromium.org

Review URL: https://codereview.chromium.org/632743004
Update openal-soft port

As well as the pevious patches this also required
the follow extra mods:
- Remove use of C11 stdatomic under PNaCL as it didn't compile
- Fix declations of U64() since the CMake-time checks for
  sizeof 'long' and 'long long' do not work under PNaCl.

Also, format ppapi.c such that matches the openal
upstream coding style.

BUG=
R=binji@chromium.org

Review URL: https://codereview.chromium.org/631113004
Cleanup bash scripts

This change was partially created with help of shellcheck:
https://github.com/koalaman/shellcheck

In order to get a clean report I disabled some of shellcheck
warnings (for now):
shellcheck -e SC2044,SC2129,SC2046,SC2035,SC2034,SC2086,SC2148  `git ls-files "*.sh"`

R=binji@chromium.org

Review URL: https://codereview.chromium.org/622873002
Fix gcc mac build by adding required argument to 'find' command.

GNU 'find' doesn't require this arg but BSD 'find' does.
This went unnoticed until we changed this line to use
the Remove the function recently.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/634283003
Fix SDl2 build when libiconv is present.

If libiconv is built and installed then its headers
will override the system iconv.h and end up requiring
-liconv at link time.

This brings in single change from the SDL git repo:
b406d6b4 Add -liconv to SDL_LIBC is iconv is present.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/633313003
Don't include fonts.dir and fonts.scale in font packages.

Otherwise each package ends up with its own copy
of these files and the conflict at pkg install type.

Instread use mkfontdir and mkfontscale on all the
font directories when we create the final fonts.zip
archive.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/641643003
Update PNaCl toolchain paths le32-nacl/local -> le32-nacl/usr

This is the new default path baked into the PNaCl
toolchain and is in line with the paths we use in the
other toolchains.

For pepper_39 support we still use le32-nacl/local.
Prior to pepper_39 we used usr/local.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/646713003
Fixing devenv-latest for glibc.

Adding wait3 and wait4 + fixing waitpid signature.

Changing the link order for make.

This allows the correct wait version to be found.

BUG=None
TEST=local + trybots
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/650273002
Fix fvwm build in the presence of libpng.

In fact, make fvwm depends on libpng.

Also, add EXECUTABLES list of libpng build.sh.

R=binji@chromium.org

Review URL: https://codereview.chromium.org/649753002
Require CHROME_DEVEL_SANDBOX environment variable in chrome-test

Without this chrome won't start, so error out early
here.

R=bradnelson@google.com

Review URL: https://codereview.chromium.org/646723002
Skip sel_ldr tests for x86_64 targets when running a 32-bit host.

The logic for setting the default is currently duplicated
since the nacl-env.sh script needs to work stand alone.

BUG= https://code.google.com/p/naclports/issues/detail?id=103
R=bradnelson@google.com

Review URL: https://codereview.chromium.org/634693003
Fixing wait3 + wait4 signature mismatch with bionic.

Submitting TBR to green bots.

BUG=None
TEST=trybots
TBR=sbc@chromium.org

Review URL: https://codereview.chromium.org/649333003
Fix cmake warnings and cleanup PNaCl translate steps.

Also, remote timing information from translate and
finalize runs.  The output was needlessly spamming
stdout.  Anyone who wants timing information here
can easlity add it back

Also, don't translate or finalize pnexes until the
source file has changed.  This speeds up null
rebuilds.

Also pass NACL_LIBC and add NACL_SDK_LIBDIR to the
library path for cmake builds.  This is needed for
the libyuv port which links against gtest.

R=bradnelson@google.com

Review URL: https://codereview.chromium.org/650293004
Add wait3 and wait4 back in for bionic.

Previously disable them, but we just need to change their signature.

BUG=None
TEST=trybots
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/654033002
Don't rely on 'touch' to force source file to get rebuilt.

This was causing flake on the mac bots in particular where
file timestamp granularity is most likely more coarse than
on linux.  However even on linux, touching a source right
after building an object doesn't always result in a more
recent source (they can end up with the same timestamp).

Better to simply remove the object we want to force a
rebuild of.

R=bradnelson@google.com

Review URL: https://codereview.chromium.org/655033002
Update BLIS to 0.1.5

TEST=./make_all.sh blis
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/654993004
Update protobuf to 2.6.0

TEST=./make_all.sh protobuf
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/658573003
Update protobuf-c to 1.0.2

TEST=./make_all.sh protobuf-c
R=sbc@chromium.org

Review URL: https://codereview.chromium.org/645373003
Remove spawn.h from glibc-compat

This is no longer needed as newlib's spawn.h is now
includes everything we need.

Also, move nacl-spawn includes into thier own folder
and make sure CFLAGS and CPPFLAGS are used consistenly
when building it.

R=bradnelson@google.com

Review URL: https://codereview.chromium.org/644823002
Update SDL version

This brings in the change that causes SDL
to use ppapi_simple+cli_main:

 c845b4 NaCl: Switch to using ppapi_simple library
 d3aabfe Add .gitignore (copy of .hgignore)

R=binji@chromium.org

Review URL: https://codereview.chromium.org/589803002