external/naclports.git
5 hours agoFixing libxaw build for arm, disabling xeyes on mac. master
bradnelson@google.com [Tue, 29 Jul 2014 04:57:02 +0000 (04:57 +0000)]
Fixing libxaw build for arm, disabling xeyes on mac.

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

fixing xaw

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

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

9 hours agoAdding xeyes program.
bradnelson@google.com [Tue, 29 Jul 2014 00:58:12 +0000 (00:58 +0000)]
Adding xeyes program.

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

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

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

9 hours agoAdding libxpm and libxaw.
bradnelson@google.com [Tue, 29 Jul 2014 00:52:16 +0000 (00:52 +0000)]
Adding libxpm and libxaw.

Adding workaround for strings.h

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

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

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

13 hours agoMake DevEnvWidget check if the DevEnv extension exists.
channingh@google.com [Mon, 28 Jul 2014 21:36:23 +0000 (21:36 +0000)]
Make DevEnvWidget check if the DevEnv extension exists.

Make DevEnvWidget ping the DevEnv extension to check whether it exists or not,
and display an error message if the extension cannot be found.

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

37 hours agoRepartion bots.
bradnelson@google.com [Sun, 27 Jul 2014 21:22:38 +0000 (21:22 +0000)]
Repartion bots.

Re-load-balance.

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

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

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

41 hours agoFixing more use of uname -o to fix yaji.
bradnelson@google.com [Sun, 27 Jul 2014 17:39:42 +0000 (17:39 +0000)]
Fixing more use of uname -o to fix yaji.

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

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

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

2 days agoFix nacl-env.sh on mac (fix yaji).
bradnelson@google.com [Sat, 26 Jul 2014 20:01:52 +0000 (20:01 +0000)]
Fix nacl-env.sh on mac (fix yaji).

Yaji uses golden output, errors from nacl-env.sh break this.
The recent windows fix doesn't run correctly on mac.

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

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

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

2 days agoExplicitly turn on iconv support in libarchive and libxml2.
bradnelson@google.com [Sat, 26 Jul 2014 17:49:50 +0000 (17:49 +0000)]
Explicitly turn on iconv support in libarchive and libxml2.

By default libxml2 builds with libiconv support if libiconv is detected.
Thus making it order dependent.
In turn libarchive2 does not correctly detect libiconv,
so fails to be able to link with libxml2 with iconv.

Explicitly turning off libiconv support in both for now to green the waterfall.

BUG=None
TEST=local
TBR=cmihail@chromium.org,sbc@chromium.org

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

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

2 days agoChange devenvwidget copy step to work in an svn checkout.
bradnelson@google.com [Sat, 26 Jul 2014 17:34:23 +0000 (17:34 +0000)]
Change devenvwidget copy step to work in an svn checkout.

The .svn files are marked read only on the bots.
Changing the copy step to avoid issues caused by them.

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

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

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

3 days agoAdding libxmu, libxrender, libxt.
bradnelson@google.com [Sat, 26 Jul 2014 05:06:51 +0000 (05:06 +0000)]
Adding libxmu, libxrender, libxt.

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

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

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

3 days agoVarious fixes for building ports on windows.
sbc@google.com [Sat, 26 Jul 2014 00:20:04 +0000 (00:20 +0000)]
Various fixes for building ports on windows.

Only check BUILD_OS when building, not when installing.
This allows binary packages to be installed on windows
even when they can't be built locally.

Fix NACL_SDK_ROOT using cygpath so it doesn't end up
containing backslash characters which are then ignored
when read back in (e.g. if they end up in pkg-config files).

Add FindInPath() function that is then used to find
curl and produce readable error messages when it is
missing.

Add check for uppercase characters in package names.

R=bradnelson@google.com

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

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

3 days agoAdd the ability to create a DevEnv widget
channingh@google.com [Sat, 26 Jul 2014 00:04:36 +0000 (00:04 +0000)]
Add the ability to create a DevEnv widget

This adds the ability to create a development environment widget in a web
page. A user enters C code in a text area, clicks Run, and the plugin
communicates with the NaCl Development Environment Chrome extension to compile
the code using GCC.

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

3 days agoMake Emacs install.
petewil@chromium.org [Fri, 25 Jul 2014 18:44:13 +0000 (18:44 +0000)]
Make Emacs install.

Latest set of changes for Emacs to get it building so that it deploys
properly and is debuggable.

BUG=
R=bradnelson@google.com

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

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

3 days agoDisabling x11 for mac and dependent builds.
bradnelson@google.com [Fri, 25 Jul 2014 18:14:07 +0000 (18:14 +0000)]
Disabling x11 for mac and dependent builds.

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

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

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

3 days agoDisabling cairo use of x11.
bradnelson@google.com [Fri, 25 Jul 2014 17:58:19 +0000 (17:58 +0000)]
Disabling cairo use of x11.

Cairo auto-detects x11 by default.
Building against it does not work in all combinations.
Disabling generally for now.

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

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

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

3 days agoAdd key to devenv
channingh@google.com [Fri, 25 Jul 2014 17:26:10 +0000 (17:26 +0000)]
Add key to devenv

This adds a key to devenv, so local versions have the same extension ID as the
web store version.

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

4 days agoAdd workaround for Mac build break for libarchive.
cmihail@chromium.org [Fri, 25 Jul 2014 01:11:52 +0000 (01:11 +0000)]
Add workaround for Mac build break for libarchive.

Libarchive doesn't build on Mac due to xml2-config script that's unable to find libxml2 library.
This is a workaround until a solution on Mac is found.

BUG=388077
R=mtomasz@chromium.org, sbc@chromium.org

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

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

4 days agoUse glibc-compat creat instead of one in grep patch.
bradnelson@google.com [Fri, 25 Jul 2014 00:16:40 +0000 (00:16 +0000)]
Use glibc-compat creat instead of one in grep patch.

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

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

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

4 days agoFixing typo in xinerama archive root.
bradnelson@google.com [Fri, 25 Jul 2014 00:12:56 +0000 (00:12 +0000)]
Fixing typo in xinerama archive root.

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

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

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

4 days agoAdd os.spawnve() to python
channingh@google.com [Thu, 24 Jul 2014 23:14:43 +0000 (23:14 +0000)]
Add os.spawnve() to python

This change adds os.spawnve() to python. This also updates the constants in
nacl_spawn.h to be in line with the python constants.

BUG=None
R=binji@chromium.org, bradnelson@google.com, sbc@chromium.org

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

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

4 days agoMake the X11 packages use lowercase names.
bradnelson@google.com [Thu, 24 Jul 2014 22:53:40 +0000 (22:53 +0000)]
Make the X11 packages use lowercase names.

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

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

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

4 days agoAdding libICE and libSM.
bradnelson@google.com [Thu, 24 Jul 2014 21:42:16 +0000 (21:42 +0000)]
Adding libICE and libSM.

Moving glibc-compat fcntl.h to sys/fcntl.h as in newlib, unlike glibc, fcntl.h
is a redirect to sys/fcntl.h so need to be there to overidded both inclusion
possibilities.

Adding a define for creat in newlib.

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

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

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

4 days agoAdding libXi, libXext, libXinerama, and libXtst.
bradnelson@google.com [Thu, 24 Jul 2014 21:33:21 +0000 (21:33 +0000)]
Adding libXi, libXext, libXinerama, and libXtst.

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

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

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

4 days agoAdding in libX11, xtrans fixes to packaging and glib-compat.
bradnelson@google.com [Thu, 24 Jul 2014 19:27:42 +0000 (19:27 +0000)]
Adding in libX11, xtrans fixes to packaging and glib-compat.

Adding libX11, xtrans.
Adding symbol to glib-compat.
Fixing handling of /share/pkgconfig packages.

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

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

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

4 days agoFixing create_nmf invocation for ByArch packaging.
bradnelson@google.com [Thu, 24 Jul 2014 18:49:55 +0000 (18:49 +0000)]
Fixing create_nmf invocation for ByArch packaging.

The invocation being used to setup devenv packages use with devenv was not
correctly invoking create_nmf (it passed /dev/null for the nmf path,
which results in lib32/lib64 not being populated in the archive as intended.

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

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

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

4 days agoAdding libxcb and libXau.
bradnelson@google.com [Thu, 24 Jul 2014 18:18:16 +0000 (18:18 +0000)]
Adding libxcb and libXau.

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

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

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

4 days agoAdding several X11 proto packages.
bradnelson@google.com [Thu, 24 Jul 2014 17:35:10 +0000 (17:35 +0000)]
Adding several X11 proto packages.

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

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

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

5 days agoAdd libarchive.
cmihail@chromium.org [Thu, 24 Jul 2014 00:32:51 +0000 (00:32 +0000)]
Add libarchive.

Libarchive (http://www.libarchive.org/) is required for decompressing rar
archives. Most of the library was ported successfuly, with the exception of
bsdtar and bsdcpio. Unfortunately, make throws a few warnings, especially for
libarchive/archive_read_disk_posix.c and libarchive/archive_write_disk_posix.c
(e.g. implicit declaration of function 'fchdir' with all error being similar to
this one). I was unable to resolve these issues, but maybe nacl_io library might
help.

The library was tested with rar and zip archives for decompressing and it works
correctly. I have used only custom read functions (see
https://github.com/libarchive/libarchive/wiki/Examples#List_contents_of_Archive_with_custom_read_functions).
The posix based API for reading files from disk might fail (not tested).
But the custom functions should be enough for most needs.

The make check command for testing fails because of similar errors as above.

TEST=./make_all.sh libarchive
BUG=388077
R=mtomasz@chromium.org, sbc@chromium.org

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

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

5 days agoUpdate regal to latest version.
sbc@google.com [Wed, 23 Jul 2014 19:14:53 +0000 (19:14 +0000)]
Update regal to latest version.

Add unittests to regal build.

Clean regal between builds (git clean isn't enough as
it ignores the build tree).

Use parallel building to speed up regal build (a lot!)

TEST=./make_all.sh quakespasm (and run it)
R=binji@chromium.org

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

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

5 days agoDisable quakespasm for PNaCl.
sbc@google.com [Wed, 23 Jul 2014 16:47:12 +0000 (16:47 +0000)]
Disable quakespasm for PNaCl.

Since Regal doesn't build on PNaCl currently we can't
build quakespasm.

R=jvoung@chromium.org

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

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

6 days agoFix ARM build of quakespasm.
sbc@google.com [Tue, 22 Jul 2014 17:55:34 +0000 (17:55 +0000)]
Fix ARM build of quakespasm.

Our ARM version of gcc doesn't define __unix and so was
not being detected correctly as a unix platform.

R=binji@chromium.org

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

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

7 days agoUse strcasecmp rather than stricmp in SDLmain.
sbc@google.com [Mon, 21 Jul 2014 23:05:54 +0000 (23:05 +0000)]
Use strcasecmp rather than stricmp in SDLmain.

Its looks like the later is available in newlib but
not in glibc. Should have done more testing of that
last change, sorry.

R=binji@chromium.org

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

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

7 days agoAdd the ability to access the HTML5 filesystem from tests
channingh@google.com [Mon, 21 Jul 2014 18:16:37 +0000 (18:16 +0000)]
Add the ability to access the HTML5 filesystem from tests

This uses the HTML5 filesystem api to directly access the HTML5 filesystem
in tests. This allows for testing of ports that manipulate files.

BUG=None
TEST=devenv_test
R=binji@chromium.org, bradnelson@google.com

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

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

7 days agoAdd quakespasm, an OpenGL+SDL-based port of quake1.
sbc@google.com [Mon, 21 Jul 2014 18:11:08 +0000 (18:11 +0000)]
Add quakespasm, an OpenGL+SDL-based port of quake1.

Add zip.fs to DEPS which is used to extract the quake
data zip file, if its not found alongside the executable.

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

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

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

7 days agoMove README for libtar to correct folder.
sbc@google.com [Mon, 21 Jul 2014 18:07:27 +0000 (18:07 +0000)]
Move README for libtar to correct folder.

This file was mistakenly added to top level at r1435

R=noelallen@chromium.org

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

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

7 days agoFix a bug in SDL_audio the the pause status was not
sbc@google.com [Mon, 21 Jul 2014 16:28:21 +0000 (16:28 +0000)]
Fix a bug in SDL_audio the the pause status was not
honoured and the sound callback could trigger before
the application was ready to generate audio.

Also update SDLmain to be a little more intelligent about
mounting. Now we always use a memfs on '/' and by default
mount httpfs on /home and chdir('/home') on startup.

These changes are both needed for the new quakespasm port.

R=binji@chromium.org

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

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

7 days agoAdding port of m4 for newlib, glibc, pnacl.
bradnelson@google.com [Mon, 21 Jul 2014 16:25:12 +0000 (16:25 +0000)]
Adding port of m4 for newlib, glibc, pnacl.

BUG=https://code.google.com/p/nativeclient/issues/detail?id=3902
TEST=./make_all.sh m4
R=binji@chromium.org

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

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

7 days agoNew port: BLIS library (Linear Algebra)
sbc@google.com [Mon, 21 Jul 2014 16:22:07 +0000 (16:22 +0000)]
New port: BLIS library (Linear Algebra)

BLIS is low-level linear algebra library optimized for
efficient use of cache and TLB. BLIS supports the standard
BLAS interface, in addition to its own, more flexible, set
of functions.

This release supports only PNaCl architecture. When
targeting Pepper >= 36 it accelerates single-precision
(S and Z functions) operations with Portable SIMD vectors.

AUTHOR=Marat Dukhan <maratek@gmail.com>
TEST=./make_all.sh blis
R=sbc@chromium.org

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

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

10 days agoFixing bash to work in pnacl + devenv tests.
bradnelson@google.com [Sat, 19 Jul 2014 00:53:50 +0000 (00:53 +0000)]
Fixing bash to work in pnacl + devenv tests.

Adding a naclType parameter to spawn.
Adding a check to detect nexe vs pexe invocation.

BUG=None
TEST=devenv_test
R=binji@chromium.org, channingh@google.com, channingh@chromium.org

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

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

10 days agoSwitching nacl_spawn to mimic spawnve, wait, waitpid.
bradnelson@google.com [Sat, 19 Jul 2014 00:42:14 +0000 (00:42 +0000)]
Switching nacl_spawn to mimic spawnve, wait, waitpid.

Now that waitpid(-1) is supported we can sufficiently closely mimic spawnve,
wait, and waitpid.

Switching to use the standard wait and waitpid, and the semi-standard spawnve.
(The flexibility to specify a separate argv[0] from the executable is useful
for porting of pnacl).

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

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

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

10 days agoFixing subversion to build on newlib + pnacl, use nacl-spawn.
bradnelson@google.com [Fri, 18 Jul 2014 23:45:30 +0000 (23:45 +0000)]
Fixing subversion to build on newlib + pnacl, use nacl-spawn.

Refactor publish step.

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

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

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

10 days agoAdding geturl utility to provide devenv access to URLLoader.
bradnelson@google.com [Fri, 18 Jul 2014 23:41:57 +0000 (23:41 +0000)]
Adding geturl utility to provide devenv access to URLLoader.

Using curl to download packages has the drawback that it both bypasses the
browser's proxy settings and requires a separate root certificate set.

Providing a ppapi based download utility (geturl) to download packages using
URLLoader.

Updating the devenv packaging script to use geturl and to include a separate
package for curl (downloaded by default).

Updating the packaging script to handle packages in which the nexe get
_ppapi added to the nexe name (curl_ppapi).

Updating devenv manifest.json to include access to naclports.storage.googleapis.com.

Switching from http to https, as geturl can use the browser's root certs implicitly.

Updating partitions manually to include geturl, as introducing a new dependency
in one step for devenv is not handled by the current partitioning tool.

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

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

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

10 days agoAdd and utilize index of pre-built online packages.
sbc@google.com [Fri, 18 Jul 2014 23:33:11 +0000 (23:33 +0000)]
Add and utilize index of pre-built online packages.

The default behavior is now to use prebuilt packages
from google storage.  These are downloaded on demand
to 'out/pacakges/prebuilt'.

The index of available prebuilt packages is stored in
source control at lib/prebuilt.txt and generated
manually using the scan_packages.py script.

R=binji@chromium.org

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

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

11 days agoClean up home directory after tests
channingh@google.com [Thu, 17 Jul 2014 20:08:20 +0000 (20:08 +0000)]
Clean up home directory after tests

This adds a cleanup of the home directory in the teardown phase of a test
for tests that manipulate files. (e.g. mkdir tests)

BUG=None
TEST=devenv_test
R=binji@chromium.org, bradnelson@google.com

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

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

12 days agoAdd more tests of devenv.
channingh@google.com [Thu, 17 Jul 2014 00:22:01 +0000 (00:22 +0000)]
Add more tests of devenv.

This adds more tests to devenv, including "echo", installing coreutils,
and "ls".

I also tried expressing the logic of waiting for a nacl_spawn_reply message
while keeping track of stdout in a waitWhile construct. I'm not sure if that
makes the code more or less confusing (as opposed to defining custom functions
for every loop and explicitly calling devEnv.wait().then(loopFunction))

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

12 days agoDelete correct background.js
channingh@google.com [Wed, 16 Jul 2014 23:35:15 +0000 (23:35 +0000)]
Delete correct background.js

Accidentally deleted background.js from bash instead of devenv.

BUG=the one on the waterfall
R=binji@chromium.org, bradnelson@google.com

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

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

12 days agoCompress binary packages with bzip2 compression.
sbc@google.com [Wed, 16 Jul 2014 23:17:04 +0000 (23:17 +0000)]
Compress binary packages with bzip2 compression.

Also, fix missing symbols in package.py.

R=binji@chromium.org

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

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

12 days agoUpdate default MIN_SDK_VERSION to pepper_35.
sbc@google.com [Wed, 16 Jul 2014 20:34:29 +0000 (20:34 +0000)]
Update default MIN_SDK_VERSION to pepper_35.

R=binji@chromium.org

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

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

13 days agoMove devenv test framework from bash/ to devenv/
channingh@google.com [Tue, 15 Jul 2014 17:46:38 +0000 (17:46 +0000)]
Move devenv test framework from bash/ to devenv/

Move the code in background.js for testing from the bash/ folder to the
devenv/ folder, and update the build script to get the new background.js.

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

13 days agoDisable libiconv in sdl, disable libiconv on mac.
bradnelson@google.com [Tue, 15 Jul 2014 16:36:20 +0000 (16:36 +0000)]
Disable libiconv in sdl, disable libiconv on mac.

Disabling libiconv use in sdl (as it breaks scummvm).

Disabling libiconv on mac as it tickles a pnacl internal error.

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

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

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

2 weeks agoAdd tests for devenv.
channingh@google.com [Tue, 15 Jul 2014 00:44:58 +0000 (00:44 +0000)]
Add tests for devenv.

Add the basics of a testing framework to naclports. This adds a test that runs
"bash -c 'exit 42'" with NaClProcessManager and makes sure the exit code is
correct.

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoFix the case where foreground_process is null
channingh@google.com [Mon, 14 Jul 2014 18:32:18 +0000 (18:32 +0000)]
Fix the case where foreground_process is null

Since the root process can exit now without terminating the entire program,
we have to handle the case where foreground_process is null or becomes
null when the root process ends.

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoRepartitioning naclports in preparation for sdl -> iconv dependency.
bradnelson@google.com [Mon, 14 Jul 2014 17:24:41 +0000 (17:24 +0000)]
Repartitioning naclports in preparation for sdl -> iconv dependency.

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

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

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

2 weeks agoAdding ninja port.
bradnelson@google.com [Sat, 12 Jul 2014 01:16:32 +0000 (01:16 +0000)]
Adding ninja port.

Builds for newlib, glibc, pnacl.

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

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

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

2 weeks agoAdding a libffi port.
bradnelson@google.com [Sat, 12 Jul 2014 00:25:57 +0000 (00:25 +0000)]
Adding a libffi port.

Platform code is gated out.

BUG=None
TEST=./make_all.sh libffi
R=sbc@chromium.org, sivachandra@chromium.org

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

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

2 weeks agoDisabling builds currently broken on bionic.
bradnelson@google.com [Sat, 12 Jul 2014 00:19:18 +0000 (00:19 +0000)]
Disabling builds currently broken on bionic.

BUG=None
TEST=trybots
R=binji@chromium.org, noelallen@chromium.org

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

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

2 weeks agoAdding libiconv port.
bradnelson@google.com [Sat, 12 Jul 2014 00:01:00 +0000 (00:01 +0000)]
Adding libiconv port.

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

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

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

2 weeks agoAdding libunistring port.
bradnelson@google.com [Fri, 11 Jul 2014 23:48:11 +0000 (23:48 +0000)]
Adding libunistring port.

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

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

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

2 weeks agoFixing ncurses under bionic.
bradnelson@google.com [Fri, 11 Jul 2014 23:34:31 +0000 (23:34 +0000)]
Fixing ncurses under bionic.

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

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

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

2 weeks agoSplit onTerminalResize
channingh@google.com [Fri, 11 Jul 2014 22:40:34 +0000 (22:40 +0000)]
Split onTerminalResize

Split onTerminalResize to the resizing component and the component that handles
the initial spawning of bash.

BUG=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoFixing libtar under bionic.
bradnelson@google.com [Fri, 11 Jul 2014 22:30:09 +0000 (22:30 +0000)]
Fixing libtar under bionic.

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

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

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

2 weeks agoReplace underscore variable names with camel case.
channingh@google.com [Fri, 11 Jul 2014 22:16:59 +0000 (22:16 +0000)]
Replace underscore variable names with camel case.

We replace variable_name with variableName, for style.

BUG=None
TESTS=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoReplace onEnd handler with waitpid
channingh@google.com [Fri, 11 Jul 2014 22:13:39 +0000 (22:13 +0000)]
Replace onEnd handler with waitpid

Replace explicit setting of the onEnd handler for the root process (which
closes the window when bash terminates, etc.) with a call to waitpid on the PID
of the root process.

BUG=None
TESTS=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoRemove ability to add arbitrary event handlers from outside NaClProcessmanager
channingh@google.com [Fri, 11 Jul 2014 22:11:45 +0000 (22:11 +0000)]
Remove ability to add arbitrary event handlers from outside NaClProcessmanager

Before, one could directly add event handlers to spawned processes from outside
of NaClProcessManager. However, NaClProcessmanager.prefix is not available from
outside of NaClProcessmanager so it is not possible to handle events from
processes in the general case. Thus, we do preprocessing on the event objects
and extract relevant information (like contents of the message for handling
stdout). Clients of NaClProcessmanager can attach handlers to listen for these
modified events.

BUG=None
TESTS=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoTurn global variables into instance variables
channingh@google.com [Fri, 11 Jul 2014 22:08:29 +0000 (22:08 +0000)]
Turn global variables into instance variables

This changes global variables in naclprocess.js (like foreground_process) into
instance variables of a NaClProcessManager instance.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoRemove calls to print in naclprocess.
channingh@google.com [Fri, 11 Jul 2014 22:05:30 +0000 (22:05 +0000)]
Remove calls to print in naclprocess.

This removes calls to print() in naclprocess, since naclprocess more of a class
to be used by other code rather than an end user. Instead, we throw errors
if an error occurs.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

2 weeks agoFixing grep build on arm and pnacl.
bradnelson@google.com [Fri, 11 Jul 2014 20:59:39 +0000 (20:59 +0000)]
Fixing grep build on arm and pnacl.

BUG=http://code.google.com/p/naclports/issues/detail?id=126
TEST=None
R=binji@chromium.org

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

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

2 weeks agoAdding libtool port (for libltdl).
bradnelson@google.com [Fri, 11 Jul 2014 20:05:00 +0000 (20:05 +0000)]
Adding libtool port (for libltdl).

BUG=None
TEST=./make_all.sh libtool
R=sbc@chromium.org, sivachandra@chromium.org

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

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

2 weeks agoAdding a libatomic-ops port.
bradnelson@google.com [Fri, 11 Jul 2014 19:29:49 +0000 (19:29 +0000)]
Adding a libatomic-ops port.

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

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

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

3 weeks agoMove onvtkeystroke to NaClTerm
channingh@google.com [Thu, 3 Jul 2014 00:00:46 +0000 (00:00 +0000)]
Move onvtkeystroke to NaClTerm

Move onvtkeystroke to NaClTerm, and expose methods sendStdinForeground
and sigint in NaClProcessManager.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

3 weeks agoMove terminalresize to naclterm
channingh@google.com [Wed, 2 Jul 2014 23:56:26 +0000 (23:56 +0000)]
Move terminalresize to naclterm

Move the terminal resize handler to naclterm, and expose a setDimensions()
method in naclprocess.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com
DIFFBASE=367023005

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

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

3 weeks agoMake clients of naclterm all use the same prefix.
channingh@google.com [Wed, 2 Jul 2014 23:47:30 +0000 (23:47 +0000)]
Make clients of naclterm all use the same prefix.

Remove prefix customization by clients of NaClTerm, since changing the prefix
doesn't really do anything.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com
DIFFBASE=361013003

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

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

3 weeks agoMake spawn() immediately return a process ID
channingh@google.com [Wed, 2 Jul 2014 23:45:35 +0000 (23:45 +0000)]
Make spawn() immediately return a process ID

This change makes spawn() immediately return a process ID instead of waiting
until the process has loaded. This speeds up spawning processes in parallel.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

3 weeks agoFix reference to old build_toolds/naclports.py in buildbot_common.sh
sbc@google.com [Wed, 2 Jul 2014 23:39:24 +0000 (23:39 +0000)]
Fix reference to old build_toolds/naclports.py in buildbot_common.sh

Also fix bash warnings in buildbot_selector.sh.

R=bradnelson@google.com

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

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

3 weeks agoRevert part of last change to buildbot_common.sh.
sbc@google.com [Wed, 2 Jul 2014 23:15:21 +0000 (23:15 +0000)]
Revert part of last change to buildbot_common.sh.

This change broke the builders by clobber the TOOLCHAIN
and NACL_ARCH globals.  Add comment as to why these locals
are named differently.

R=bradnelson@google.com

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

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

3 weeks agoAdd gclient run-hooks script to clean stale pyc files.
sbc@google.com [Tue, 1 Jul 2014 18:20:20 +0000 (18:20 +0000)]
Add gclient run-hooks script to clean stale pyc files.

This should fix the current bot failures and prevent
confused devleopers.

R=binji@chromium.org

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

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

3 weeks agoFix partition.py and check_sums.py WRT to new naclports python module.
sbc@google.com [Tue, 1 Jul 2014 17:52:36 +0000 (17:52 +0000)]
Fix partition.py and check_sums.py WRT to new naclports python module.

These slipped through local testsing because I still have a
naclports.pyc file locally.

R=binji@chromium.org

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

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

4 weeks agoUpdate location of naclports_test.py to fix the bots.
sbc@google.com [Tue, 1 Jul 2014 06:31:42 +0000 (06:31 +0000)]
Update location of naclports_test.py to fix the bots.

TBR=binji

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

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

4 weeks agoSplit naclports python script into python module with multiple files.
sbc@google.com [Tue, 1 Jul 2014 00:45:04 +0000 (00:45 +0000)]
Split naclports python script into python module with multiple files.

This change mostly re-factor.  There should be no
semantic changes.

Also, remove the make_bin_wrappers script and instead
simply check the wrappers into the bin folder and
maintain them manually.

TEST=bots
R=binji@chromium.org

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

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

4 weeks agoTemporarily disable sdl2-image.
sbc@google.com [Tue, 1 Jul 2014 00:07:58 +0000 (00:07 +0000)]
Temporarily disable sdl2-image.

Currently the pkg-config file for SDL2 doesn't link against
all the required libraries for SDL2, and sdl2-image attempts
to link binaries and fails.

R=binji@chromium.org

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

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

4 weeks agoUpdate sdl2 to latest upstream version.
sbc@google.com [Mon, 30 Jun 2014 22:51:41 +0000 (22:51 +0000)]
Update sdl2 to latest upstream version.

sdl2-tests still have trouble linking due to LDFLAGS not
containing all the required libraries.

TEST=./make_all.sh sdl2
R=binji@chromium.org

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

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

4 weeks agoMove terminal-specific event handlers to NaClTerm.
channingh@google.com [Mon, 30 Jun 2014 22:15:22 +0000 (22:15 +0000)]
Move terminal-specific event handlers to NaClTerm.

This moves the terminal-specific event handlers for events emitted from
NaCl processes (i.e. handleLoad_, handleProgress_, etc, not onVTKeystroke)
from NaClProcessManager to NaClTerm. This includes things like printing
error messages to the terminal.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

4 weeks agoAdding grep to naclports.
bradnelson@google.com [Mon, 30 Jun 2014 21:08:30 +0000 (21:08 +0000)]
Adding grep to naclports.

Builds for newlib, glibc, pnacl.

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

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

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

4 weeks agoFixing rm -rf in coreutils.
bradnelson@google.com [Mon, 30 Jun 2014 20:12:03 +0000 (20:12 +0000)]
Fixing rm -rf in coreutils.

Disable checks based on inodes.

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

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

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

4 weeks agoAdd watchlist.
sbc@google.com [Mon, 30 Jun 2014 18:27:53 +0000 (18:27 +0000)]
Add watchlist.

Adding myself to default watchlist so I get CC'd on all
naclports changes.

R=binji@chromium.org

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

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

4 weeks agoSeparate naclterm.js into naclprocess.js and naclhterm.js
channingh@google.com [Mon, 30 Jun 2014 18:13:13 +0000 (18:13 +0000)]
Separate naclterm.js into naclprocess.js and naclhterm.js

This separates naclterm.js into naclprocess.js and naclhterm.js, and updates
ports that are dependent upon NaClTerm.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

4 weeks agoReplace lib.f.parseQuery call with inline code.
channingh@google.com [Fri, 27 Jun 2014 23:17:58 +0000 (23:17 +0000)]
Replace lib.f.parseQuery call with inline code.

This replaces a call to lib.f.parseQuery with non-library code that does the
same thing. This removes NaClTerm's dependence on the libraries in
hterm.concat.js, making it easier to separate out NaClTerm.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

4 weeks agoMerge createEmbed() and spawn()
channingh@google.com [Fri, 27 Jun 2014 23:15:28 +0000 (23:15 +0000)]
Merge createEmbed() and spawn()

This merges the createEmbed() and spawn() calls into one function. We also
change the parameters such that instead of passing e (pretty much a dump of
all available data), we explicitly pass the parent element and the spawn ID.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com, binji@google.com

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

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

4 weeks agoSplit NaClTerm into NaClTerm and NaClTermHTerm
channingh@google.com [Fri, 27 Jun 2014 20:36:30 +0000 (20:36 +0000)]
Split NaClTerm into NaClTerm and NaClTermHTerm

This change splits off the hterm-specific parts of NaClTerm into a separate
class. Before, in order to instantiate a NaClTerm, one needed to pass in an
hterm to the constructor, making it difficult to create a standalone
NaClTerm.

BUG=None
TEST=None
R=binji@chromium.org, bradnelson@google.com

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

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

4 weeks agoAdd PNaCl support to sdlquake.
sbc@google.com [Fri, 27 Jun 2014 18:44:52 +0000 (18:44 +0000)]
Add PNaCl support to sdlquake.

There were a few duplicate symbol defintions that ended
up on the BSS segment which is fine on GCC but errors
out on PNaCl right now.

Also, export EXEEXT to the Makefile so it can know what
extension to use for the executable.

TEST=run PNaCl build of sdlquake with shareware level.
R=binji@chromium.org

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

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

4 weeks agoFix sdlquake by removing asm files.
sbc@google.com [Fri, 27 Jun 2014 01:21:58 +0000 (01:21 +0000)]
Fix sdlquake by removing asm files.

The original NaCl port didn't used asm so it hasn't been
ported yet.

R=binji@chromium.org
TBR=binji

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

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

4 weeks agoRevive ancient sdlquake port.
sbc@google.com [Thu, 26 Jun 2014 23:31:47 +0000 (23:31 +0000)]
Revive ancient sdlquake port.

Amazingly removing pretty much all the Pepper-specific
code and just running the game seemed to work fist time.
This is mostly thanks to nacl_io and the SDLmain library.

Right now you still need to download some data files
(such as the shareware level and unzip them alongside
the nexe in the publish directory) to actually play the
game.

R=binji@chromium.org

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

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

4 weeks agoExport $STRIP variable when setting up the build environment.
sbc@google.com [Thu, 26 Jun 2014 23:30:35 +0000 (23:30 +0000)]
Export $STRIP variable when setting up the build environment.

Also, add NACL_PREIFX/bin to the path so things like
sdl-config can be found by default.

R=binji@chromium.org

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

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

4 weeks agoDelete old/experimental v8 port.
sbc@google.com [Thu, 26 Jun 2014 22:45:31 +0000 (22:45 +0000)]
Delete old/experimental v8 port.

The original authors are apparently hosting this stuff
on github now anyway.

R=binji@chromium.org

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

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

4 weeks agoFix python manifest.json and name of nano app archive.
sbc@google.com [Wed, 25 Jun 2014 17:07:22 +0000 (17:07 +0000)]
Fix python manifest.json and name of nano app archive.

TBR=bradnelson

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

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

4 weeks agoSplitting up bashrc into separate parts.
bradnelson@google.com [Wed, 25 Jun 2014 01:52:33 +0000 (01:52 +0000)]
Splitting up bashrc into separate parts.

Dividing bashrc into:
  package - a package management script
  setup-environment - a script that scans for existing pacakages and sets
                      them up
  bashrc - minimal bashrc

Drop use of stubs in bash.

Suppress warning in newlib unzip.

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

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

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

4 weeks agoFix opencv URL so it points to upstream rather than mirror.
sbc@google.com [Wed, 25 Jun 2014 00:37:21 +0000 (00:37 +0000)]
Fix opencv URL so it points to upstream rather than mirror.

R=binji@chromium.org

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

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

4 weeks agoAdd missing dependencies on python to markupsafe and jinja2
sbc@google.com [Wed, 25 Jun 2014 00:36:35 +0000 (00:36 +0000)]
Add missing dependencies on python to markupsafe and jinja2

R=bradnelson@google.com

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

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

4 weeks agoAdd the ability to view graphical output of programs within the dev
channingh@google.com [Wed, 25 Jun 2014 00:33:57 +0000 (00:33 +0000)]
Add the ability to view graphical output of programs within the dev
environment.

This change adds the ability to view the graphical output of programs
(from Pepper APIs) within the dev environment in either a popup window
or as a section of the terminal window. This is enabled by setting
the PROCESS_SPAWN_MODE environment variable to either 'popup' or 'embed'.
The dimensions of the viewing area can also be configured.

BUG=none
TEST=none
R=binji@chromium.org, bradnelson@google.com

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

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

4 weeks agonaclports.py: Split file downloading into its own function.
sbc@google.com [Wed, 25 Jun 2014 00:26:40 +0000 (00:26 +0000)]
naclports.py: Split file downloading into its own function.

Also, fix Package.__init__ logic for searching for source
packages given package names rather than pathnames.

Also, add more docstrings.

BUG=
R=binji@chromium.org

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

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