external/naclports.git
9 hours agoAdding in curl and git to mingn. master
bradnelson@google.com [Wed, 23 Apr 2014 21:54:26 +0000 (21:54 +0000)]
Adding in curl and git to mingn.

Converting mingn to a v2 app.
Modifying git to use nacl-spawn.
Enabling sockets access for mingn.

Works for git init, add, commit. Clone falls over due to lack of pipes.
curl seems to have regressed, fixing so that it runs.
(It seems to be failing at connect, will debug separately).

Repartitioning to appease presubmit.

BUG=None
TEST=local/manual
R=binji@chromium.org, sbc@chromium.org

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

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

33 hours agoRemove __attribute__((section (".bss"))) that doesn't work for PNaCl
dpolukhin@google.com [Tue, 22 Apr 2014 21:59:52 +0000 (21:59 +0000)]
Remove __attribute__((section (".bss"))) that doesn't work for PNaCl

It seems that __attribute__((section (".bss"))) has no sense for us anyway and PNaCl doesn't support it.

BUG=chromuim:302044
TEST=manual
R=eugenis@chromium.org, mseaborn@chromium.org

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

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

4 days agoThe libpython2.7.a that should be generated from the
matthewturk@gmail.com [Sun, 20 Apr 2014 00:20:27 +0000 (00:20 +0000)]
The libpython2.7.a that should be generated from the
python-static build was being placed in the wrong
location.

BUG=
R=kestert@google.com

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

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

5 days agoEnabling glibc build for openal-ogg-demo.
bradnelson@google.com [Fri, 18 Apr 2014 17:11:09 +0000 (17:11 +0000)]
Enabling glibc build for openal-ogg-demo.

This seems to work with no changes.

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

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

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

5 days agoThis CL updates the nacl.patch file for python-static
matthewturk@gmail.com [Fri, 18 Apr 2014 16:50:29 +0000 (16:50 +0000)]
This CL updates the nacl.patch file for python-static
to match the nacl.patch in the current python build.
It should fix the build for case-insensitive filesystems.

R=sbc@chromium.org

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

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

6 days agoUse sf.net rather than sourceforge.net in download URLs.
sbc@google.com [Thu, 17 Apr 2014 20:20:39 +0000 (20:20 +0000)]
Use sf.net rather than sourceforge.net in download URLs.

This is for consistency but it also makes them a little
shorter and less likely to be over 80 chars in the
pkg_info files.

R=binji@chromium.org

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

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

6 days agoAdd more detailed information on prerequisites for building naclports.
sbc@google.com [Thu, 17 Apr 2014 17:49:46 +0000 (17:49 +0000)]
Add more detailed information on prerequisites for building naclports.

The 32-bit zlib on is especially hard to track down..

R=binji@chromium.org

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

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

7 days agoAdd glibc support to snes9x.
bradnelson@google.com [Wed, 16 Apr 2014 17:39:12 +0000 (17:39 +0000)]
Add glibc support to snes9x.

BUG= http://code.google.com/p/naclports/issues/detail?id=116
R=sbc@chromium.org
TEST=make_all

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

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

7 days agoMake "NACL_ARCH=pnacl make <foo>" work again.
binji@chromium.org [Wed, 16 Apr 2014 16:29:41 +0000 (16:29 +0000)]
Make "NACL_ARCH=pnacl make <foo>" work again.

BUG=none
R=sbc@chromium.org

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

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

8 days agoBuild system for statically-linked Python.
matthewturk@gmail.com [Tue, 15 Apr 2014 23:12:35 +0000 (23:12 +0000)]
Build system for statically-linked Python.

This adds a new subdirectory, python_modules/ , and a mechanism for
creating a statically linked Python build.  It is designed primarily for
PNaCl, where a lack of shared library support and the cost of
translation mean that a large Python stack requires a complex,
multi-step build process.  This process can be summarized as such:

 * Build a host python containing all necessary build-time dependencies
   for the stack
 * Build each individual module
 * Collect object files and construct unified libpython2.7.a and
   python.pexe
 * Add a dynload module for statically linked modules

When not automated, this is prone to error and difficult to add or
remove additional modules.  The system included here, while not perfect,
addresses this by enabling individual modules to be selected and built
ala carte, with a reubilding of python_static necessary to create the
unified python.pexe and libpython2.7.a.  The libpython2.7.a output by
this can then be used as a link target for a python_ppapi-like module.

As examples, and as components of a scientific python stack, this
changelist includes:

 * numpy (host and destination builds)
 * cython (host-only build)
 * setuptools (host-only build)
 * matplotlib (dest-only build)
 * sympy (dest-only build)
 * ipython (dest-only build)
 * pyzmq (dest-only build)
 * h5py (dest-only build; requires hdf5, under separate CL review)
 * jinja2 (dest-only build)
 * pyppapi (dest-only build)
 * six (dest-only build)
 * distribute (dest-only build)
 * nose (dest-only build)
 * pyparsing (dest-only build)
 * dateutil (dest-only build)
 * markupsafe (dest-only build)
 * yt (dest-only build)

This CL includes a port for the pyppapi module, which was developed in
support of this and which provides a Python API to communicate between
running Native Client modules and Chrome.  This includes serialization
of NumPy arrays into typed arrays as well as other Python/JS
translations.

Python module ports act very similarly to standard naclports modules,
with two exceptions.  The installation of the .py files has been moved
into the building phase and the collection of .o files occurs during
installation.  Additionally, they utilize modules.libs and modules.list
files.  The first of these files should append to the variable
PY_MOD_LINK to add on additional libraries for building the module, and
the second is a list of compiled modules (not object files) produced by
the python module which should be included in the symbol table in
libpython2.7.a.  For instance, if the compiled C module "fastcode"
exists in a Python module and it requires linking against cfast, these
files would look like:

modules.list:

fastcode

 modules.libs:

PY_MOD_LINK+=" -lcfast"

At present, this has been tested on PNaCl.  To construct a Python build
with a number of modules, a command like this can be issues:

NACL_ARCH=pnacl make numpy sympy matplotlib python_static

The resultant installed libpython2.7.a will contain all of those
modules.  Note that any pure-python modules auto-installed by setuptools
will be functional in the resultant python destination, but any
C-compiled python modules that have been auto-installed will simply
fail.

R=sbc@chromium.org, hamaji@chromium.org, kestert@google.com
BUG=

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

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

8 days agoSwitch python download code to use curl rather than wget.
sbc@google.com [Tue, 15 Apr 2014 21:05:01 +0000 (21:05 +0000)]
Switch python download code to use curl rather than wget.

This matches the code in common.sh which switched
to curl since it is available on mac by default.

Also, fix a bug where GetMirrorURL() contained two '/'
characters in row.

R=binji@chromium.org

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

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

9 days agoShard mac builds now that we have more builders.
bradnelson@google.com [Mon, 14 Apr 2014 21:00:19 +0000 (21:00 +0000)]
Shard mac builds now that we have more builders.

BUG=https://code.google.com/p/chromium/issues/detail?id=359625
TEST=None
R=sbc@chromium.org

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

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

9 days agolibgit2 compiles and links for newlib, with glibc-compat changes.
binji@chromium.org [Mon, 14 Apr 2014 14:47:22 +0000 (14:47 +0000)]
libgit2 compiles and links for newlib, with glibc-compat changes.

libgit2:
* Make some test global variables static. Interestingly, this succeeds on
  gcc/clang, but fails on PNaCl. Normally, it is OK to define the same symbol
  multiple times, as long as it is uninitialized. The nm documentation describes
  this as a "common" symbol. PNaCl doesn't allow this, and instead produces a
  multiple definition linker error.
* Add <limits.h> for PATH_MAX on newlib.
* newlib defines _SC_PAGESIZE, but not _SC_PAGE_SIZE. glibc defines both.

glibc-compat:
* added qsort_r (with implementation copied from qsort)
* added getaddrinfo, freeaddrinfo, gai_strerror (unimplemented)

BUG=none
R=sbc@chromium.org

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

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

12 days agoopenal: Disable use of cpuid.h on i686
sbc@google.com [Sat, 12 Apr 2014 00:39:54 +0000 (00:39 +0000)]
openal: Disable use of cpuid.h on i686

The cpuid.h that we ship in the toolchain contains asm that
doesn't validate.  So disable it for now.

Also add EXECUTABLES=openal-info so that the binary get
validate and we catch validations earlier.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3836
R=nfullagar@chromium.org

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

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

12 days agoswitch openssh to use naclspawn
sbc@google.com [Fri, 11 Apr 2014 22:45:07 +0000 (22:45 +0000)]
switch openssh to use naclspawn

R=bradnelson@google.com

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

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

12 days agoAdd --verbose-build option to naclports.py.
sbc@google.com [Fri, 11 Apr 2014 22:28:26 +0000 (22:28 +0000)]
Add --verbose-build option to naclports.py.

This option sets VERSOSE=1 in the environment which means
that common.py will call make and cmake with V=1.

R=binji@chromium.org

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

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

12 days agoAdd libgit2 v0.20.0.
binji@chromium.org [Fri, 11 Apr 2014 22:24:48 +0000 (22:24 +0000)]
Add libgit2 v0.20.0.

Currently only builds with glibc. No tests, but it does successfully link.

BUG=none
R=sbc@chromium.org

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

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

13 days agoUpdate openal-soft version.
sbc@google.com [Thu, 10 Apr 2014 19:01:07 +0000 (19:01 +0000)]
Update openal-soft version.

Also remove legacy code from openal-ogg-demo.

R=binji@chromium.org

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

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

13 days agoRemove use of legacy NACL_GLIBC variable.
sbc@google.com [Thu, 10 Apr 2014 18:59:56 +0000 (18:59 +0000)]
Remove use of legacy NACL_GLIBC variable.

R=binji@chromium.org

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

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

2 weeks agoDon't create PUBLISH_DIR for each port.
sbc@google.com [Wed, 9 Apr 2014 23:46:03 +0000 (23:46 +0000)]
Don't create PUBLISH_DIR for each port.

This ends up littering the out/publish folder with empty dirs
for apps that don't actaully publish anything.

BUG=
R=bradnelson@google.com

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

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

2 weeks agoAdding debugging extension.
bradnelson@google.com [Tue, 8 Apr 2014 22:31:01 +0000 (22:31 +0000)]
Adding debugging extension.

Adding an extension that communicates with the GDB app to allow modules to be
debugged on demand.
Some tests added, more to come.

BUG=None
TEST=debugger_test
R=binji@chromium.org

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

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

2 weeks agoRename hterm to libapps in third_party
sbc@google.com [Tue, 8 Apr 2014 21:10:13 +0000 (21:10 +0000)]
Rename hterm to libapps in third_party

This matches the name of the third party repo.

R=binji@chromium.org

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

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

2 weeks agoFixing pnacl bochs build.
bradnelson@google.com [Tue, 8 Apr 2014 20:24:15 +0000 (20:24 +0000)]
Fixing pnacl bochs build.

Adding in missed patch piece from https://codereview.chromium.org/225963005

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

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

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

2 weeks agoFix linking issues with DevIL and PNaCl.
binji@chromium.org [Tue, 8 Apr 2014 18:28:53 +0000 (18:28 +0000)]
Fix linking issues with DevIL and PNaCl.

"extern inline" and "inline" have reversed behaviors depending on whether you
are compiling in Gnu89 mode or C99 mode. DevIL checks for __GNUC__ to determine
whether it should use "extern inline" or "inline", but unfortunately LLVM
defines this but has different default behavior. This change forces LLVM to use
Gnu89 mode, where extern inline will not generate a global symbol (but may add
a reference to one).

Also, in libpng, png_set_gray_1_2_4_to_8 was renamed to to
png_set_expand_gray_1_2_4_to_8. I've updated nacl.patch to use this instead. It
seems the upstream DevIL has not been fixed.

BUG=none
R=sbc@chromium.org

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

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

2 weeks agoUpload openssl to 1.0.1g
binji@chromium.org [Tue, 8 Apr 2014 16:50:32 +0000 (16:50 +0000)]
Upload openssl to 1.0.1g

This version has a fix for the TLS Heartbeat read overrun.
See https://www.openssl.org/news/secadv_20140407.txt

BUG=none
R=sbc@chromium.org

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

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

2 weeks agoUpdate bochs to 2.6.2 and make it load again.
bradnelson@google.com [Mon, 7 Apr 2014 21:04:02 +0000 (21:04 +0000)]
Update bochs to 2.6.2 and make it load again.

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

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

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

2 weeks agoConsistent default values for NACL_ARCH and TOOLCHAIN.
sbc@google.com [Fri, 4 Apr 2014 23:46:59 +0000 (23:46 +0000)]
Consistent default values for NACL_ARCH and TOOLCHAIN.

Currently we derive values for TOOLCHAIN and NACL_ARCH
in both naclports.py and in nacl_env.sh.  This change
at least makes them consistent.  In the long run we
probably want only one of them to encode this information.

R=binji@chromium.org

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

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

2 weeks agoRefactoring to support tests of debug extension.
bradnelson@google.com [Fri, 4 Apr 2014 20:37:39 +0000 (20:37 +0000)]
Refactoring to support tests of debug extension.

Fixing support for inter-extension communication via the test extension.
Separating out common test code in gdb.
Renaming wait (for a duration) to sleep, to avoid confusion.
Provide a chrome version in the user agent string to work around an assumption baked into hterm.

BUG=None
TEST=gdb_test
R=binji@chromium.org

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

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

2 weeks agoFix bochs PNaCl build mac
sbc@google.com [Fri, 4 Apr 2014 16:53:20 +0000 (16:53 +0000)]
Fix bochs PNaCl build mac

This change teachs bochs to use $AR to create libraries
rather than hardcoding 'ar'.  This is only really important
on Mac when using PNaCl.

R=binji@chromium.org

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

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

2 weeks agoFixing gdb build on mac.
bradnelson@google.com [Fri, 4 Apr 2014 16:45:29 +0000 (16:45 +0000)]
Fixing gdb build on mac.

Turning off gdb tests on x86-64 mac as chrome can't run that combination.
Using 0.0.0.0 for localhost as that name doesn't work on osx.

R=sbc@chromium.org
BUG=None
TEST=poked around on bots

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

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

2 weeks agoRename demos so they have more meaningful names.
sbc@google.com [Fri, 4 Apr 2014 00:53:03 +0000 (00:53 +0000)]
Rename demos so they have more meaningful names.

Also, update openal-ogg-demo so that it depends on
stable versions of the pepper interfaces.  This allows
it to be compiled with pepper_canary and still run on
chrome stable.

R=binji@chromium.org

Committed: https://code.google.com/p/naclports/source/detail?r=1204

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

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

2 weeks agoFix sdk bundle buildbot.
sbc@google.com [Thu, 3 Apr 2014 21:36:24 +0000 (21:36 +0000)]
Fix sdk bundle buildbot.

Pass TOOLCHAIN=pnacl rather that TOOLCHAIN=newlib for PNaCl
builds.

R=binji@chromium.org

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

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

2 weeks agoFix typo in buildbot_sdk_bundle.sh
sbc@google.com [Thu, 3 Apr 2014 20:12:25 +0000 (20:12 +0000)]
Fix typo in buildbot_sdk_bundle.sh

R=binji@chromium.org

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

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

2 weeks agoRename demos so they have more meaningful names.
sbc@google.com [Thu, 3 Apr 2014 19:13:49 +0000 (19:13 +0000)]
Rename demos so they have more meaningful names.

Also, update openal-ogg-demo so that it depends on
stable versions of the pepper interfaces.  This allows
it to be compiled with pepper_canary and still run on
chrome stable.

R=binji@chromium.org

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

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

2 weeks agoAdd initial support for the bionic NaCl toolchain.
sbc@google.com [Thu, 3 Apr 2014 19:11:40 +0000 (19:11 +0000)]
Add initial support for the bionic NaCl toolchain.

This change deprecates the old NACL_GLIBC envronment variable
in favor of the using TOOLCHAIN, like the SDK example makefiles.

So rather then doing "NACL_GLIBC=1 make foo" one would now run
"TOOLCHAIN=glibc make foo".

Several packages already build with bionic but many don't.  The
purpose of this CL is to update the build system handle bionic,
not to ensure that any particular packages can be built with it.

R=binji@chromium.org, noelallen@chromium.org

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

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

3 weeks agoEnable gdb_test.py on the bots.
bradnelson@google.com [Wed, 2 Apr 2014 22:54:19 +0000 (22:54 +0000)]
Enable gdb_test.py on the bots.

The chrome_test testing framework is now more stable.
Enabling gdb_test.py on the bots.

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

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

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

3 weeks agoFixing messed up quotes introduced in emacs patch.
bradnelson@google.com [Wed, 2 Apr 2014 19:56:23 +0000 (19:56 +0000)]
Fixing messed up quotes introduced in emacs patch.

Sorry I'd forgotten I needed the patch to reapply and hadn't added the second
part of the change (so it worked on linux).

BUG=None
TEST=local
R=petewil@chromium.org, sbc@chromium.org

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

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

3 weeks agoAvoid linuxism in build for emacs, enable for x86-64 mac.
bradnelson@google.com [Wed, 2 Apr 2014 18:44:48 +0000 (18:44 +0000)]
Avoid linuxism in build for emacs, enable for x86-64 mac.

The emacs build used the -n option to echo which is not supported on mac.
Avoiding that pattern.
We've started shipping a 64-bit sel_ldr for mac, enabling it in naclports.

BUG=None
TEST=None
R=petewil@chromium.org, sbc@chromium.org

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

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

3 weeks agoSwitching to a promise pattern for onMessage.
bradnelson@google.com [Wed, 2 Apr 2014 16:23:47 +0000 (16:23 +0000)]
Switching to a promise pattern for onMessage.

Using various port waiter objects and methods to switch tests to an even more
promise like pattern.

BUG=None
TEST=plumbing_test and gdb_test
R=binji@chromium.org

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

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

3 weeks agoMake downloading and unzipping processes quieter.
sbc@google.com [Wed, 2 Apr 2014 00:01:10 +0000 (00:01 +0000)]
Make downloading and unzipping processes quieter.

Pass -q to unzip so it doesn't list the archive contents.

Pass --progress-bar to curl only if stdout is a tty and pass
--silent if stderr is not a tty.

R=binji@chromium.org

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

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

3 weeks agoEnable ARM builds for libthoera and bullet.
sbc@google.com [Tue, 1 Apr 2014 23:59:07 +0000 (23:59 +0000)]
Enable ARM builds for libthoera and bullet.

The bugs that stopped these from building previously seem
to have been fixed.

Also, add a comment to openvc about why its disabled on
ARM for now.

R=binji@chromium.org

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

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

3 weeks agoOn non-windows OSes, use process groups to be sure we can kill Chrome.
bradnelson@google.com [Tue, 1 Apr 2014 22:10:21 +0000 (22:10 +0000)]
On non-windows OSes, use process groups to be sure we can kill Chrome.

The bots have had some full duration timeouts while running the plumbing tests.
The recent Promises CL should have indirectly fixed this.
However, the built-in timeout should be catching this.
Using process groups on posix to be sure we kill it all (mimicking the
buildbot code).

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

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

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

3 weeks agoFix sdk bundle builder to handle new package file names.
sbc@google.com [Tue, 1 Apr 2014 20:51:51 +0000 (20:51 +0000)]
Fix sdk bundle builder to handle new package file names.

Not an ideal solution.  In the long run we'd like a better
way to identify the names of the packages produced.

R=binji@chromium.org

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

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

3 weeks agoRename buildbot related scripts so that all start with buildbot_.
sbc@google.com [Tue, 1 Apr 2014 19:50:51 +0000 (19:50 +0000)]
Rename buildbot related scripts so that all start with buildbot_.

BUG=
R=bradnelson@google.com

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

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

3 weeks agoSplit package NAME and VERSION into two fields in pkg_info.
sbc@google.com [Tue, 1 Apr 2014 18:53:30 +0000 (18:53 +0000)]
Split package NAME and VERSION into two fields in pkg_info.

This change adds the version number of the binary package
file. It also adds a consistent naming convention for
binary packages which is:
<name>_<version>_<arch>_[libc]_[debug]

Since we use _ to seperate these components, _ is now
illegal in the package name and package version, just like
debian or ubuntu package names.

R=binji@chromium.org

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

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

3 weeks agoSwitching to using Javascript Promises.
bradnelson@google.com [Mon, 31 Mar 2014 23:34:36 +0000 (23:34 +0000)]
Switching to using Javascript Promises.

Switching everything in the testing framework to use Javascript Promise
objects. Message and disconnect handles are left in continuation style for now
(will refactor them next).

BUG=None
TEST=plumbing_test and gdb_test
R=binji@chromium.org

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

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

3 weeks agoexport NACL_SDK_ROOT in buildbot_selector.sh
sbc@google.com [Mon, 31 Mar 2014 22:13:15 +0000 (22:13 +0000)]
export NACL_SDK_ROOT in buildbot_selector.sh

This was accidentally removed in a previous CL!

TBR=bradnelson

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

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

3 weeks agoFix bash syntax typo
sbc@google.com [Mon, 31 Mar 2014 20:02:14 +0000 (20:02 +0000)]
Fix bash syntax typo

TBR=bradnelson

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

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

3 weeks agoFix the sdk-bundle buildbot.
sbc@google.com [Mon, 31 Mar 2014 19:55:18 +0000 (19:55 +0000)]
Fix the sdk-bundle buildbot.

The actual fix for the builder was to update the name
of 'webp' to 'libwebp' in accordance with the recent
rename.

I also removed to NODEPS environment variable.  Its not
needed by the SDK builder anymore now that we have package
files.

Remove annotator messages from naclports.py and have
bot_common.sh decide when to emit annotations.

Also, update the buildbot scripts so they don't download
the SDK when in test mode and NACL_SDK_ROOT are both set.
Also, have bot_common.sh exit on first failure when running
in test mode.  These two changes speed up debugging and
testing.

R=bradnelson@google.com

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

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

3 weeks agoTry to get emacs building
petewil@chromium.org [Fri, 28 Mar 2014 23:27:43 +0000 (23:27 +0000)]
Try to get emacs building

BUG=NONE
TEST=None
R=bradnelson@google.com

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

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

3 weeks agoRename ports that include underscore in their name.
sbc@google.com [Fri, 28 Mar 2014 16:47:07 +0000 (16:47 +0000)]
Rename ports that include underscore in their name.

This change is in preparation for a change that outlaws
underscore in package names and versions so that they can
be used a special character in the file name of binary
packages (just like debian/ubuntu packages).

Also, rename webp to libwebp to the directory name matches
the package name.

This change is mostly pure rename operations.

R=bradnelson@google.com

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

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

3 weeks agoUse new nacl_io exit dance.
bradnelson@google.com [Fri, 28 Mar 2014 00:37:46 +0000 (00:37 +0000)]
Use new nacl_io exit dance.

A recent nacl_io change causes exit to do a shutdown dance via postmessage.
Added the proper logic to background.js and its tests to work with this.

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

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

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

4 weeks agoDisable mesagl demo until create_html.py is fixed in the SDK
sbc@google.com [Thu, 27 Mar 2014 00:49:59 +0000 (00:49 +0000)]
Disable mesagl demo until create_html.py is fixed in the SDK

Right now its broken because its doesn't know to accept
.bc files.

R=bradnelson@google.com

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

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

4 weeks agoSwitch httpd and chrome_test to use built-in shutdown.
bradnelson@google.com [Wed, 26 Mar 2014 23:27:09 +0000 (23:27 +0000)]
Switch httpd and chrome_test to use built-in shutdown.

Since python 2.6, BaseServer and its descendants now support shutdown()
and serve_forever() now polls at some interval for a shutdown.

The current QuittableHttpServer is likely susceptible to race conditions as it
only notices shutdowns in the case where more requests come in after a
shutdown.
This already manifested itself in the requirement that chrome_test send two
quit=1 requests to effect a shutdown.

This will hopefully fix the flake on the bots.

BUG=None
TEST=chrome_test + gdb_test
R=sbc@chromium.org

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

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

4 weeks agoFix tinyxml install step.
sbc@google.com [Wed, 26 Mar 2014 21:52:27 +0000 (21:52 +0000)]
Fix tinyxml install step.

R=bradnelson@google.com

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

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

4 weeks agoPass test extension via user agent and make messaging more interlocked.
bradnelson@google.com [Wed, 26 Mar 2014 20:17:54 +0000 (20:17 +0000)]
Pass test extension via user agent and make messaging more interlocked.

When running in the test harness, extensions meant to work together may not
know each others ids. Pass the testing extensions id as part of the user
agent so that extensions can use it in testing mode to locate their peers.

Provide reply messages to the 'proxy' and 'setDebugPort' messages so that
they are processed in order. (Seems they are not always).

Changed 'proxy' message to take an extension name instead of an extension id, as these are not fixed.

R=binji@chromium.org
BUG=None
TEST=plubming_test, gdb_test

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

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

4 weeks agoFix a few packages that were still not installing to DESTDIR.
sbc@google.com [Wed, 26 Mar 2014 20:13:10 +0000 (20:13 +0000)]
Fix a few packages that were still not installing to DESTDIR.

BUG=
R=bradnelson@google.com

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

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

4 weeks agoclapack: create DESTDIR_LIBDIR before copying to it
sbc@google.com [Wed, 26 Mar 2014 00:40:54 +0000 (00:40 +0000)]
clapack: create DESTDIR_LIBDIR before copying to it

R=binji@chromium.org

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

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

4 weeks agoFix agg build.sh script so it installs to DESTDIR
sbc@google.com [Tue, 25 Mar 2014 22:00:06 +0000 (22:00 +0000)]
Fix agg build.sh script so it installs to DESTDIR

TBR=binji

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

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

4 weeks agoConverting gdb into a background only app.
bradnelson@google.com [Tue, 25 Mar 2014 20:12:58 +0000 (20:12 +0000)]
Converting gdb into a background only app.

In order to allow multiple modules to be debugged using the gdb app,
converting it ot a background only app that provides its services via
messaging.

Implementing a limited subset of the gdb debug stub protocol in Javascript in
order to allow for faster and lighter weight management of debuggable modules.

Adding gdb_test to vet that it can provide kill, detach, continue, and load of
gdb itself.

BUG=None
TEST=gdb_test
R=binji@chromium.org

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

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

4 weeks agobuildbot: Add missing bzip2 to partition 0 of 3
sbc@google.com [Tue, 25 Mar 2014 19:55:52 +0000 (19:55 +0000)]
buildbot: Add missing bzip2 to partition 0 of 3

This dependency was added to freetype by a previous commit

Also, fix build_shard.sh so that is can handle failures
in partition.py in a sane way.

Also update BUILD_ROOT in naclports.py (it was still pointing
to the old 'repository' location).

R=binji@chromium.org

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

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

4 weeks agoInitial implementation of binary package system.
sbc@google.com [Tue, 25 Mar 2014 17:20:25 +0000 (17:20 +0000)]
Initial implementation of binary package system.

This is really the first step towards a system that will
allow developers to install directly from online binaries
without building anything themselves.

Packages are now extracted, built, and installed to,
different directories under 'out/build/<pkgname>'.

Installed files are then tarred up into binary package in
'out/packages'.

The bash (build.sh) scripts are still in charge of building
the package binary, but naclports.py looks after installing
the binaries and installing dependencies before building.

R=binji@chromium.org

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

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

4 weeks agoFixing gdb slow start and dropping nethack specific code.
bradnelson@google.com [Tue, 25 Mar 2014 00:04:51 +0000 (00:04 +0000)]
Fixing gdb slow start and dropping nethack specific code.

Gdb uses libiberty which makes the assumption that vfork calls actually work.
It compounds this mistake by using an invocation pattern for vfork in which it
sleeps and retries in the event of failure. As vfork does not currently work,
disabling the code path for a faster start.

BUG=None
TEST=forthcoming (other CL)
R=sbc@chromium.org

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

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

4 weeks agoDon't skip the STRIP command in lua_ppapi.
binji@chromium.org [Mon, 24 Mar 2014 22:38:50 +0000 (22:38 +0000)]
Don't skip the STRIP command in lua_ppapi.

A new change to nacl_llvm.mk (Chromium r248730) requires this file, so
the _unstripped.bc file can be used to debug .pexes.

BUG=none
R=sbc@chromium.org

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

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

4 weeks agoAdd gtest style filters to chrome_test, multiple test dirs, and refactor TEST() macro.
bradnelson@google.com [Mon, 24 Mar 2014 17:40:59 +0000 (17:40 +0000)]
Add gtest style filters to chrome_test, multiple test dirs, and refactor TEST() macro.

Adding a -f/--filter option to chrome_test that functions approximately like
googletest filters. This allows you to run a subset of the tests.

Refactoring TEST() macro to be implemented on top of the TEST_F() macro.

Adding support for multiple test dirs (to supported mixing checked in and generated files in a test).

BUG=None
TEST=plumbing_test
R=binji@chromium.org

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

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

5 weeks agoAdding timeout before begining test interaction with extensions.
bradnelson@google.com [Thu, 20 Mar 2014 00:30:29 +0000 (00:30 +0000)]
Adding timeout before begining test interaction with extensions.

Folk wisdom from rginda suggests that extensions may take 100ms to become
available for messaging. Sleeping.

BUG=None
TEST=on bot
R=binji@chromium.org
TBR=binji@chromium.org

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

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

5 weeks agoIgnore utility processes and fix linux-sdk bot.
bradnelson@google.com [Wed, 19 Mar 2014 20:03:29 +0000 (20:03 +0000)]
Ignore utility processes and fix linux-sdk bot.

The testProcessTypes test assumed that it knew all process types that a chrome
instance would have. Apparently under some circumstances a 'utility' process
can exist. Ignore these.

Changing buildbot_selector.sh to set OS in linux-sdk builds.

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

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

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

5 weeks agoActually turn on plumbing_tests.
bradnelson@google.com [Wed, 19 Mar 2014 19:16:03 +0000 (19:16 +0000)]
Actually turn on plumbing_tests.

Didn't actually uncomment the tests in the last change.

BUG=None
TBR=binji@chromium.org

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

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

5 weeks agoFix race condition in chrome_test, re-enable chrome_test tests on the bots.
bradnelson@google.com [Wed, 19 Mar 2014 18:34:49 +0000 (18:34 +0000)]
Fix race condition in chrome_test, re-enable chrome_test tests on the bots.

It turns out that if a message port is disconnected, outstanding messages are
not guaranteed to be delivered before onDisconnect. Changing the behavior of
the reset message to allow better synchronization.

Setting environment variable CHROME_DEVEL_SANDBOX on the bots to allow
plumbing_test to run.

Correcting filename in download code to ensure mac binaries are marked
executable.

BUG=None
TEST=local + on bot
R=binji@chromium.org

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

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

5 weeks agoRequire tests to close all open test extension connections.
bradnelson@google.com [Tue, 18 Mar 2014 21:37:42 +0000 (21:37 +0000)]
Require tests to close all open test extension connections.

In order to ensure tests don't interfere with each other, close any open
connections to the debugging extension at the begining of each test and at the
end, verifying that nothing has been left open.

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

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

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

5 weeks agoAdding an extension testing framework.
bradnelson@google.com [Tue, 18 Mar 2014 21:17:14 +0000 (21:17 +0000)]
Adding an extension testing framework.

This googletest style testing framework will allow us to use the browser to
test that the extensions and apps we build in naclports actually function.

The testing framework handles:
  - Downloading a pinned version of chromium.
  - Running chromium with a timeout.
  - Exposes a javascript testing library in the style of googletest.
  - Exposes a chrome extension that allows normal pages to probe extensions and
    apps in testing mode.

BUG=None
TEST=plumbing_test
R=binji@chromium.org, sbc@chromium.org

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

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

5 weeks agoFix mimetype in dosbox.html when building with PNaCl.
sbc@google.com [Tue, 18 Mar 2014 15:48:50 +0000 (15:48 +0000)]
Fix mimetype in dosbox.html when building with PNaCl.

BUG= https://code.google.com/p/naclports/issues/detail?id=113
R=binji@chromium.org

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

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

5 weeks agoFix sed calls to be mac compatible
sbc@google.com [Mon, 17 Mar 2014 23:15:30 +0000 (23:15 +0000)]
Fix sed calls to be mac compatible

R=binji@chromium.org

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

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

5 weeks agoFix for undefined variable error on linux-sdk bot.
sbc@google.com [Mon, 17 Mar 2014 17:37:01 +0000 (17:37 +0000)]
Fix for undefined variable error on linux-sdk bot.

This was previously going unnoticed because we were not
using 'set -o nounset'.

R=binji@chromium.org, binji

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

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

5 weeks agoFix buildbot upload location.
sbc@google.com [Fri, 14 Mar 2014 17:36:55 +0000 (17:36 +0000)]
Fix buildbot upload location.

Don't include bot_common.sh until PEPPER_DIR is set otherwise
UPLOAD_PATH cannot include it.

Also, set 'nounset' so that this kind of thing doesn't go
unnoticed in the future.

R=binji@chromium.org

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

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

5 weeks agoUse 'git number' in folder name when uploading results from buildbot.
sbc@google.com [Thu, 13 Mar 2014 22:30:10 +0000 (22:30 +0000)]
Use 'git number' in folder name when uploading results from buildbot.

Wihtout this the $BUILDBOT_GOT_REVISION is used which is simply
the full sha1.  With this new change foldernames are of the format
<git-number>-<short-hash> which makes them numerically sortable.
If we have build multiple branches we sould also need to include
the branch number here.

R=binji@chromium.org

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

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

6 weeks agoRemove gtest from DEPS
sbc@google.com [Wed, 12 Mar 2014 23:44:27 +0000 (23:44 +0000)]
Remove gtest from DEPS

Its not used by anything anymore.

R=binji@chromium.org

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

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

6 weeks agoflac: Add missing glibc-compat dependency.
sbc@google.com [Wed, 12 Mar 2014 22:15:48 +0000 (22:15 +0000)]
flac: Add missing glibc-compat dependency.

flac needs use glibc-compat during configure other wise
certain tests fail to link.

R=binji@chromium.org

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

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

6 weeks agoSet AR_FLAGS to 'cr' to avoid autotools default of 'cru'.
sbc@google.com [Wed, 12 Mar 2014 15:46:43 +0000 (15:46 +0000)]
Set AR_FLAGS to 'cr' to avoid autotools default of 'cru'.

The 'u' in the autotools default generates a lof of warnings
when passed to nacl's 'ar' which complains:
`u' modifier ignored since `D' is the default (see `U')

Why automake uses AR_FLAGS rather than ARFLAGS I do not know.

R=binji@chromium.org

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

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

6 weeks agodrawing-demo: Add dependency on agg.
sbc@google.com [Tue, 11 Mar 2014 18:15:09 +0000 (18:15 +0000)]
drawing-demo: Add dependency on agg.

R=binji@chromium.org

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

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

6 weeks agoAdd final summary step to buildbot.
sbc@google.com [Tue, 11 Mar 2014 17:56:05 +0000 (17:56 +0000)]
Add final summary step to buildbot.

This avoids the publish step being reported as a failure
when one or more builds fail.

Also, only perform publish step on linux bots.

R=binji@chromium.org

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

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

6 weeks agoResurrect old AGG drawing demo.
sbc@google.com [Tue, 11 Mar 2014 01:11:28 +0000 (01:11 +0000)]
Resurrect old AGG drawing demo.

This new version used ppapi_simple.

R=nfullagar@chromium.org

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

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

6 weeks agodosbox: Fix PNaCl mac build.
sbc@google.com [Mon, 10 Mar 2014 21:02:13 +0000 (21:02 +0000)]
dosbox: Fix PNaCl mac build.

On mac that system 'ar' is incompatible with pnacl's
'ar'.  This change forces dosbox to use pnacl-ar.

Also, fix the sed command in openal-off example
so that it also builds on mac.

R=binji@chromium.org

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

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

6 weeks agoFixed bash memory issue and make mingn and bash work as an extension.
bradnelson@google.com [Mon, 10 Mar 2014 19:49:44 +0000 (19:49 +0000)]
Fixed bash memory issue and make mingn and bash work as an extension.

Bash includes its own memory manager based on sbrk. As sbrk doesn't make
sense for NaCl, this unfortunately ends up providing only about 4MB of heap.
Switching it off for NaCl.

Chrome extensions are not allowed to point objects at data urls.
Using a blob object instead.

Adding the unlimitedStorage permission to the manifest for bash.

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

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

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

6 weeks agoFix agg build. /usr/include/freetype2 needs to be included explicitly.
binji@chromium.org [Sat, 8 Mar 2014 01:33:12 +0000 (01:33 +0000)]
Fix agg build. /usr/include/freetype2 needs to be included explicitly.

BUG=none
R=sbc@chromium.org

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

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

6 weeks agoFix building freetype w/ Glibc.
binji@chromium.org [Fri, 7 Mar 2014 22:36:24 +0000 (22:36 +0000)]
Fix building freetype w/ Glibc.

builds/unix/configure needs to be patched explicitly.

BUG=none
R=sbc@chromium.org

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

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

6 weeks agoopenssl: Fix non-glibc builds.
sbc@google.com [Fri, 7 Mar 2014 21:59:49 +0000 (21:59 +0000)]
openssl: Fix non-glibc builds.

The previous change broken non-glibc builds that don't
produce shared objects.

R=binji@chromium.org

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

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

6 weeks agoRoll freetype to version 2.5.2
binji@chromium.org [Fri, 7 Mar 2014 21:10:15 +0000 (21:10 +0000)]
Roll freetype to version 2.5.2

BUG=none
R=sbc@chromium.org

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

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

6 weeks agoopenssl: fix shared library permissions.
sbc@google.com [Fri, 7 Mar 2014 18:28:01 +0000 (18:28 +0000)]
openssl: fix shared library permissions.

R=binji@chromium.org

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

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

6 weeks agoUse config (Debug/Release) in sentinel. This fixes the SDK bundle script.
binji@chromium.org [Fri, 7 Mar 2014 18:15:14 +0000 (18:15 +0000)]
Use config (Debug/Release) in sentinel. This fixes the SDK bundle script.

Also: turn on errexit for the SDK script. It was failing but not breaking the
build.

BUG=none
R=sbc@chromium.org

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

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

6 weeks agoopenssl: build as shared library (when building with glibc)
sbc@google.com [Fri, 7 Mar 2014 02:08:31 +0000 (02:08 +0000)]
openssl: build as shared library (when building with glibc)

BUG=
R=binji@chromium.org

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

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

6 weeks agoForce build dependencies when running naclports.py -f
binji@chromium.org [Thu, 6 Mar 2014 23:54:07 +0000 (23:54 +0000)]
Force build dependencies when running naclports.py -f

BUG=none
R=sbc@chromium.org

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

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

6 weeks agoFix libtheora build after PNaCl upgrade to clang3.4
binji@chromium.org [Thu, 6 Mar 2014 22:18:45 +0000 (22:18 +0000)]
Fix libtheora build after PNaCl upgrade to clang3.4

The -fforce-addr command line flag is no longer supported by clang3.4.

BUG=none
R=sbc@chromium.org

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

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

6 weeks agocurl: add dependency on openssl.
sbc@google.com [Thu, 6 Mar 2014 19:35:14 +0000 (19:35 +0000)]
curl: add dependency on openssl.

- Add dependency to pkg_info
- Have the curl example fetch an https URL by default.
- Move curl into the same partition as openssl.

R=binji@chromium.org

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

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

7 weeks agoFixes for mac OSX builds.
sbc@google.com [Wed, 5 Mar 2014 00:24:26 +0000 (00:24 +0000)]
Fixes for mac OSX builds.

R=binji@chromium.org

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

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

7 weeks agoFix a few builds that were broken by running each step in a subshell.
sbc@google.com [Tue, 4 Mar 2014 22:01:41 +0000 (22:01 +0000)]
Fix a few builds that were broken by running each step in a subshell.

R=binji@chromium.org

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

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

7 weeks agoRun each build phase in its own subshell.
sbc@google.com [Tue, 4 Mar 2014 18:56:09 +0000 (18:56 +0000)]
Run each build phase in its own subshell.

This prevents variables, and directory changes, in one
phase effecting another, and ensure that phases can be run
independently if needed.

Also, ensure that each build phase runs with BUILD_DIR as
the working directory.

BUG=./make_all.sh
R=binji@chromium.org

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

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

7 weeks agonaclports.py: fix check for NACL_SDK_ROOT.
sbc@google.com [Tue, 4 Mar 2014 18:33:57 +0000 (18:33 +0000)]
naclports.py: fix check for NACL_SDK_ROOT.

Also, add a -f/--force option.

BUG= https://code.google.com/p/naclports/issues/detail?id=110
R=binji@chromium.org

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

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

7 weeks agoAdd EXECUTABLES line to ffmpeg build.
binji@chromium.org [Mon, 3 Mar 2014 23:26:43 +0000 (23:26 +0000)]
Add EXECUTABLES line to ffmpeg build.

BUG=none
R=sbc@chromium.org

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

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

7 weeks agoFix mac builds of various ports.
sbc@google.com [Mon, 3 Mar 2014 19:15:44 +0000 (19:15 +0000)]
Fix mac builds of various ports.

R=binji@chromium.org

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

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