Automatically create sel_ldr scrips for executables.

For all executables listed in $EXECUTABLES we now generate
a wrapper script at the same time we do validation.
This simplifies quite many of the build script.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1110 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix jpeg8b glibc build.

Under glibc, the .nexe file for jpeg8b are created in the
.libs folder and the default post build step creates wrappers
in the same folder.  However, the test code needs wrappers in
the build directory, so we need to create these manually.

Ths change essentially reverts the change made to jpeg8b
in r1110.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1112 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix newlib build of toybox.

A recent change to newlib SDK headers meant the toybox
started to depend on major() and minor() libc functions.
This change add those functions to glibc-compat as well
as linking toybox againt glibc-compat.

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1113 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update and cleanup imagemagick port.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1114 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add libssh port.

This port, specifically the patch, comes from mosh-chrome:
https://github.com/rpwoodbu/mosh-chrome

R=binji@chromium.org, rpwoodbu@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1115 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add more inforation to the PortList wiki page

Add information to PortList page about which ports don't
build for certain architectures or certain c libraries.

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1116 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update ruby so that it doesn't require irt to be executable.

It seems that in some version of the SDK the IRT .nexe files
are not executable which was causing the ruby build to fail.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1117 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Build git with openssl

If openssl happended to built first it would cause
the git build to fail.  This change fixes that by
adding -ldl to the glibc link line and also makes
openssl an explicit dependency of git.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1118 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Resharding in preparation for new bots.

Switching parition listing to datafile.
Dropping a lot of old per-shard shell scripts and associated plumbing in favor
of enhancing partition.py to understand canned copies of its output.

Switch PRESUBMIT to test the shard sizes.

BUG=None
TEST=TEST_BUILDBOT=1
R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1119 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Resurrect sdk script (deleted by mistake).

BUG=None
TEST=None
TBR=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1120 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Bringing back a bot_common.sh as the sdk bundle needs it.

BUG=None
TEST=None
TBR=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1121 7dad1e8b-422e-d2af-fbf5-8013b78bd812
unzip: Add missing dependency on nacl-spawn

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1122 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix git newlib build

Now that we build git with openssl support we need to
make sure that nacl_io is after openssl on the link
line (we are currently getting undefined externals
for the shutdown symbol).

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1123 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update system dependency list

BUG=
R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1124 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Go back to the right directory before building each arch.

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

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1125 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix pnacl leveldb build.

Apparently using the system 'ar' doesn't work with PNaCl.

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1126 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Split CPPFLAGS into sperate variable.

Previously CPPFLAGS (such as -I and -D) were being added
to both CFLAGS and CXXFLAGS.  This should fix the libpng
build on the linux-sdk buildbot which was running cpp
itself (with CPPFLAGS) and expecting to be able to see
include paths set with -I.

Also, update some ports that could have been using the
SRC_DIR and BUILD_DIR variables but were not.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1127 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Fix nighly builders.

The nightly builder names were not being correctly
recognized by the regex.

Also, no need to pass SHARD or SHARDS globals to
StartBuild function.

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1128 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Add naclports.py 'build' command and use it to drive the build.

Dependencies and the list of all packages are no longer
stored in the top level Makefile.  The top level Makefile
is now just a tiny wrapper around 'naclports.py build'.

This is the first step towards building ports in parallel on
a single machine.

Build output is now captured by default and only shown
on failure.

R=bradnelson@google.com

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1129 7dad1e8b-422e-d2af-fbf5-8013b78bd812
Update license information for several ports.

R=binji@chromium.org

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

git-svn-id: https://naclports.googlecode.com/svn/trunk/src@1130 7dad1e8b-422e-d2af-fbf5-8013b78bd812