external/naclports.git
7 weeks agoUpdate libgit2 version from 0.20.0 to 0.21.1 master
sbc@google.com [Tue, 9 Sep 2014 22:09:06 +0000 (22:09 +0000)]
Update libgit2 version from 0.20.0 to 0.21.1

It seems that couple of our patches are now upstream.

Also, set EXECUTABLES= in the build.sh file so the test
binary gets validated and translated.

Also, fix compiler warnings (mostly adding ll to
integer constants).

R=binji@chromium.org

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

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

7 weeks agoEnable cmake builds to (optionally) use ninja
sbc@google.com [Tue, 9 Sep 2014 22:06:17 +0000 (22:06 +0000)]
Enable cmake builds to (optionally) use ninja

For now just switch libgit2 to ninja.  Hopefully
we can switch to ninja by default at some point.

R=binji@chromium.org

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

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

7 weeks agoRemove code.google.com wiki pages from DEPS file.
sbc@google.com [Tue, 9 Sep 2014 21:00:00 +0000 (21:00 +0000)]
Remove code.google.com wiki pages from DEPS file.

This was an unpinned dependency which I believe was
causing the nightly builders to think that they were
building an SVN revision.

R=bradnelson@google.com

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

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

7 weeks agoFix openssl build on OSX
sbc@google.com [Tue, 9 Sep 2014 20:46:53 +0000 (20:46 +0000)]
Fix openssl build on OSX

openssl's config script would use `uname` to try to
figure out the build configuration.  For the NaCl
build we instead want to explicitly specify $MACHINE
$SYSTEM and $RELEASE.

This change allows openssl to build on Mac OSX as
all the packages the depend on openssl.

Also, change the was the broken ssl tests are filtered
out in the newlib build because the sed invocation was
using a gnu-sed-ism which wasn't working on OSX.

R=bradnelson@google.com

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

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

7 weeks agoRevert to non-parallel build for subversion.
sbc@google.com [Tue, 9 Sep 2014 19:36:01 +0000 (19:36 +0000)]
Revert to non-parallel build for subversion.

It was occationally flaking on the bots due to a lack
of make dependency between of the object files and the
build output directories being created.

R=bradnelson@google.com

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

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

7 weeks agoFixing endian.h + dirent.h to make subversion green.
bradnelson@google.com [Tue, 9 Sep 2014 05:11:49 +0000 (05:11 +0000)]
Fixing endian.h + dirent.h to make subversion green.

The newlib dirent.h includes sys/dirent.h inside extern "C" guards.
This clashes with nested guards. Gating on the define guard in dirent.h.

endian.h uses the inline keyword, which is not always valid.
Including _ansi.h and using _ELIDABLE_INLINE instead.

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

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

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

7 weeks agoProperly handle converting paths in pnacl manifests.
bradnelson@google.com [Tue, 9 Sep 2014 00:49:40 +0000 (00:49 +0000)]
Properly handle converting paths in pnacl manifests.

Handle properly converting mount paths in pnacl nmf files, by looking at the
right keys and structure.

Switch NACL_ARCH to be set by javascript based on
chrome.runtime.getPlatformInfo.

Set NACL_BOOT_ARCH to based on the architecture (include pnacl in this case) of
the first nexe/pexe run.

Re-enable devenv for pnacl + devenv_tests for pnacl.

Handle extra error case in chrome_test.js

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

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

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

7 weeks agoModifying library dependency checker to also expose architecture.
bradnelson@google.com [Tue, 9 Sep 2014 00:41:22 +0000 (00:41 +0000)]
Modifying library dependency checker to also expose architecture.

Generating a prototype nmf for naclprocess.js requires not only knowing the
dependencies of a library, but also its architecture (to set the arch
dictionary key in the nmf).
Changing FindLibraryDependencies to FindArchAndLibraryDependencies.

Applying this to generate a valid pnacl manifest.

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

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

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

7 weeks agoSwitch elf_reader to read both 32 and 64 bit elf files.
bradnelson@google.com [Tue, 9 Sep 2014 00:38:50 +0000 (00:38 +0000)]
Switch elf_reader to read both 32 and 64 bit elf files.

As a PNaCl build of elf_reader will not know which arch it will run on at
compile time, it needs to be able to cope with both kinds of elf files (32/64).
Switching it to read initially into EHDR32 (which has the same layout
regardless of bitage), then switch to use the proper struct size dynamically.
Publish 64-bit structures for maximum generality, copying the fields.

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

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

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

7 weeks agoFix nacl-spawn to rebuild when already installed.
bradnelson@google.com [Mon, 8 Sep 2014 23:22:21 +0000 (23:22 +0000)]
Fix nacl-spawn to rebuild when already installed.

Since nacl-spawn installs spawn.h, which has a name overlap with a system
header. Using "" in nacl_spawn.cc so we get the local header when building.
Also move the include guards in spawn.h so we always get the proper
include_next chain, even when including thru a prior version.

BUG=None
TEST=rebuild nacl-spawn
R=sbc@chromium.org

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

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

7 weeks agoFix glibc-compat dirent.h by including sys/cdefs.h
sbc@google.com [Mon, 8 Sep 2014 23:14:06 +0000 (23:14 +0000)]
Fix glibc-compat dirent.h by including sys/cdefs.h

This is needed for __BEGIN/__END_DECLS.  For some
reason the toolchain dirent.h doesn't include this
to use those macros.

R=binji@chromium.org

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

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

7 weeks agoFix for glibc-compat to make libgit2 compile cleanly.
sbc@google.com [Mon, 8 Sep 2014 22:10:40 +0000 (22:10 +0000)]
Fix for glibc-compat to make libgit2 compile cleanly.

Add readdir_r declaration to dirent.h.  This function
is present in newlib but not declared in the headers
for some reason.

Update htonl macros so they work with non-constant
values.

BUG=

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

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

7 weeks agoAdd working realpath implementation to glibc-compat
sbc@google.com [Mon, 8 Sep 2014 19:40:55 +0000 (19:40 +0000)]
Add working realpath implementation to glibc-compat

This is a temporary measure that can be removed
once a working realpath is added to libnacl.

This is needed in order to run the libgit2 tests
under sel_ldr.

R=binji@chromium.org

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

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

7 weeks agoOnly inject system headers if they differ to the existing ones.
sbc@google.com [Mon, 8 Sep 2014 18:23:43 +0000 (18:23 +0000)]
Only inject system headers if they differ to the existing ones.

This prevents build systems that check timestamps of
system headers (cmake seems to do this) from rebuilding
from scratch each time.

Also, allow CONFIGURE_SENTINEL to be used for both
autotools and cmake build system.

Also, don't check builbot config on ever CL upload as
its pretty slow (instead run check_deps which is fast).

R=binji@chromium.org

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

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

7 weeks agoFix non-verbose cmake builds.
sbc@google.com [Mon, 8 Sep 2014 17:59:01 +0000 (17:59 +0000)]
Fix non-verbose cmake builds.

Rather than setting VERBOSE=0 to disable verbose
builds, remove it from the environment.  Turns
out cmake will be verbose any time $VERBOSE is
non-empty.

BUG=
R=binji@chromium.org

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

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

7 weeks agoFix nacl-env.sh in the case the $TOOLCHAIN is not defined
sbc@google.com [Mon, 8 Sep 2014 17:57:04 +0000 (17:57 +0000)]
Fix nacl-env.sh in the case the $TOOLCHAIN is not defined

BUG=
R=binji@chromium.org

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

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

7 weeks agoCheck that NACL_SDK_ROOT looks correct.
sbc@google.com [Mon, 8 Sep 2014 16:45:16 +0000 (16:45 +0000)]
Check that NACL_SDK_ROOT looks correct.

Without this strange backtraces are produced
later on which are not helpful.

R=bradnelson@google.com

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

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

7 weeks agoTeX Live updated to version 2014
phosek@chromium.org [Mon, 8 Sep 2014 09:45:49 +0000 (09:45 +0000)]
TeX Live updated to version 2014

This updates TeX Live to version 2014. The new version supports both
glibc and newlib and is built for for NaCl DevEnv.

BUG=none
TEST=FORCE=1 FROM_SOURCE=1 ./make_all.sh texlive
R=bradnelson@google.com

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

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

7 weeks agoAdding xorg-server ported to SDL based on android-xsdl.
bradnelson@google.com [Sat, 6 Sep 2014 05:49:30 +0000 (05:49 +0000)]
Adding xorg-server ported to SDL based on android-xsdl.

Took stock xorg-server + make driver file and Makefile.am from
android-xsdl.

Switched from SDL to SDL2 use pattern.

Known limitations:
- Manual install into devenv required
- glibc only for now
- Keyboard is messed up

BUG=None
TEST=local + run thru devenv.
R=sbc@chromium.org

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

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

7 weeks agoAdding missing dependency on setuptools to fix the bots.
bradnelson@google.com [Sat, 6 Sep 2014 04:12:49 +0000 (04:12 +0000)]
Adding missing dependency on setuptools to fix the bots.

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

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

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

7 weeks agoFixing blackbox build.
bradnelson@google.com [Sat, 6 Sep 2014 03:56:35 +0000 (03:56 +0000)]
Fixing blackbox build.

The recent change to libxcb broke blackbox by adding a link dependency on
nacl_io. Fixing.

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

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

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

7 weeks agoFix build of 'six' python module.
sbc@google.com [Fri, 5 Sep 2014 23:55:30 +0000 (23:55 +0000)]
Fix build of 'six' python module.

When this module was built in isolation it was
failing because the python site-packages directory
was not yet created.

This change creates this directory in the
DefaultPythonModuleBuildStep.

As a most long term solution we should have all
python modules depend on the python package but
we currently have conflict with the python-static
package.

TBR=bradnelson

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

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

7 weeks agoReving to a new chrome version and re-enabling tests.
bradnelson@google.com [Fri, 5 Sep 2014 23:04:06 +0000 (23:04 +0000)]
Reving to a new chrome version and re-enabling tests.

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

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

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

7 weeks agoRegenerating libxcb patch so it applies cleanly on mac.
bradnelson@google.com [Fri, 5 Sep 2014 22:52:38 +0000 (22:52 +0000)]
Regenerating libxcb patch so it applies cleanly on mac.

BUG=None
TEST=on mac bot
R=sbc@chromium.org

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

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

7 weeks agoRename CleanAll -> CleanAllToolchains.
sbc@google.com [Fri, 5 Sep 2014 20:57:43 +0000 (20:57 +0000)]
Rename CleanAll -> CleanAllToolchains.

This was missing from my previous commit.

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

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

7 weeks agoUpdate buildbot scripts to only clean the toolchain they are working with.
sbc@google.com [Fri, 5 Sep 2014 20:20:40 +0000 (20:20 +0000)]
Update buildbot scripts to only clean the toolchain they are working with.

This fixes the bionic builders which were not cleaning the
bionic toolchain directory.

The exception is the SDK bot which builds for all toolchains.
For this case add bionic to the list of all toolchains.

R=bradnelson@google.com

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

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

7 weeks agoCalling ki_fcntl explicitly to ensure it gets called in libxcb.
bradnelson@google.com [Fri, 5 Sep 2014 20:07:19 +0000 (20:07 +0000)]
Calling ki_fcntl explicitly to ensure it gets called in libxcb.

Without this workaround, libxcb fails to call the right version of this
function and misbehaves at run time.

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

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

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

7 weeks agoSwitching off memory allocation using brk for emacs.
bradnelson@google.com [Fri, 5 Sep 2014 19:53:24 +0000 (19:53 +0000)]
Switching off memory allocation using brk for emacs.

Also adds in a few graphical files that need to be included for X to work.

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

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

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

7 weeks agoAdding env option to naclterm, using it for emacs.
bradnelson@google.com [Fri, 5 Sep 2014 19:52:18 +0000 (19:52 +0000)]
Adding env option to naclterm, using it for emacs.

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

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

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

7 weeks agoAdding x11 dependency to emacs and configuring emacs to use it.
bradnelson@google.com [Fri, 5 Sep 2014 19:27:46 +0000 (19:27 +0000)]
Adding x11 dependency to emacs and configuring emacs to use it.

While we are starting to experiment with the x11 version (and should start
building it that way for uniformity), another CL will turn on -nw by default
for now.

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

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

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

7 weeks agoRepartitioning for better load balancing.
bradnelson@google.com [Fri, 5 Sep 2014 16:14:34 +0000 (16:14 +0000)]
Repartitioning for better load balancing.

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

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

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

8 weeks agoDisabling broken ports to green the tree.
bradnelson@google.com [Fri, 5 Sep 2014 05:24:07 +0000 (05:24 +0000)]
Disabling broken ports to green the tree.

xkeyboard-config is currently a runtime only dependency of xorg-server.
It doesn't build on the bots for lack of a fresher intltool.
Disabling everywhere.

Disabling xkbcomp on the mac bots because it doesn't build there.
Will investigate.

Disabling xfonts + the fonts on mac because the lack of mkfontdir there.

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

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

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

8 weeks agoFix PKG_CONFIG_PATH and PKG_CONFIG_PREFIX in nacl-env.sh.
sbc@google.com [Fri, 5 Sep 2014 01:38:04 +0000 (01:38 +0000)]
Fix PKG_CONFIG_PATH and PKG_CONFIG_PREFIX in nacl-env.sh.

This bug wasn't effecting naclports itself since common.sh
sets these variables independently.

R=bradnelson@google.com

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

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

8 weeks agoFix bionic build.
sbc@google.com [Fri, 5 Sep 2014 01:36:38 +0000 (01:36 +0000)]
Fix bionic build.

Don't copy the contents of $NACL_SDK_ROOT/include/newlib
into the bionic toolchain. The bionic toolchain is missing
far fewer headers but already contains most of the ones in
$NACL_SDK_ROOT/include/newlib.

Disable a bunch of other builds that are currently
failing due to undefined symbols:
https://code.google.com/p/nativeclient/issues/detail?id=3938

Set default NACL_ARCH=ARM when TOOLCHAIN=bionic.

R=bradnelson@google.com, noelallen@chromium.org

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

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

8 weeks agoAdding x11 fonts, font tools, and agregating package.
bradnelson@google.com [Thu, 4 Sep 2014 23:30:46 +0000 (23:30 +0000)]
Adding x11 fonts, font tools, and agregating package.

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

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

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

8 weeks agoAdding a port of xkeyboard config.
bradnelson@google.com [Thu, 4 Sep 2014 23:17:37 +0000 (23:17 +0000)]
Adding a port of xkeyboard config.

This is an incremental part of an xserver.

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

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

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

8 weeks agoAdding an xkbcomp port.
bradnelson@google.com [Thu, 4 Sep 2014 23:15:25 +0000 (23:15 +0000)]
Adding an xkbcomp port.

This is an incremental step towards landing an xserver.
This keymap compiler is spawned as parts of the xorg-server.

BUG=None
TEST=./make_all.sh xkbcomp
R=sbc@chromium.org

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

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

8 weeks agoRemove #! line from build.sh files.
sbc@google.com [Wed, 3 Sep 2014 21:57:41 +0000 (21:57 +0000)]
Remove #! line from build.sh files.

These files are not directly exexutable as
shell scripts.  Also, remove executable bit.

BUG=
R=bradnelson@google.com

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

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

8 weeks agoFix glibc build of python-static
sbc@google.com [Wed, 3 Sep 2014 20:21:37 +0000 (20:21 +0000)]
Fix glibc build of python-static

It was linking with ppapi_simple but not including an
entry point for ppapi_simple.  Switch to cli_main which
provides the ppapi_simple entry point.

R=bradnelson@google.com

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

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

8 weeks agoDisables shared libraries when linking with ppapi_simple.
sbc@google.com [Wed, 3 Sep 2014 00:53:01 +0000 (00:53 +0000)]
Disables shared libraries when linking with ppapi_simple.

A recent change the SDK means that ppapi_simple references
symbols from libppapi_stub.a which cannot be linked into
shared libraries.

R=bradnelson@google.com

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

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

8 weeks agoSet CHROME_HEADELESS=1 when calling 'git number' of common.sh
sbc@google.com [Wed, 3 Sep 2014 00:51:51 +0000 (00:51 +0000)]
Set CHROME_HEADELESS=1 when calling 'git number' of common.sh

This suppresses the error that git number otherwise
throws.

Clearly we need to find a replacement for 'git number' in
the near future.

R=bradnelson@google.com

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

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

8 weeks agoDisable python-ppapi build on mac.
sbc@google.com [Wed, 3 Sep 2014 00:29:13 +0000 (00:29 +0000)]
Disable python-ppapi build on mac.

Python depends on openssl which is currently not buildable
on mac.

TBR=bradnelson@chromium.org

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

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

8 weeks agoEnable PNaCl build of ruby, libtoo, libunistring
sbc@google.com [Tue, 2 Sep 2014 21:43:14 +0000 (21:43 +0000)]
Enable PNaCl build of ruby, libtoo, libunistring

Not sure why these were ever disabled but the build
fine now.

TEST=make libtool libunistring ruby-ppapi F=1 TOOLCHAIN=pnacl
R=bradnelson@google.com

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

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

8 weeks agoUse local cache of git repositories.
sbc@google.com [Tue, 2 Sep 2014 20:50:57 +0000 (20:50 +0000)]
Use local cache of git repositories.

When upstream points directly to a git repo clone
it just once into out/cache (renamed from
out/tarballs/) and then clone from these into the
build directory.

This means that it is possible to work offline with
git repos just like with tarballs.

R=bradnelson@google.com

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

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

8 weeks agoUpdate GetRevision so that errors from git number are not hidden.
sbc@google.com [Mon, 1 Sep 2014 17:10:12 +0000 (17:10 +0000)]
Update GetRevision so that errors from git number are not hidden.

git number seems to be failing on the bots but the error
is being sent to /dev/null.

R=bradnelson@google.com
TBR=bradnelson@chromium.org

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

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

2 months agoTemporarily disable chrome tests.
sbc@google.com [Sat, 30 Aug 2014 13:23:01 +0000 (13:23 +0000)]
Temporarily disable chrome tests.

TBR=bradnelson@chromium.org

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

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

2 months agoFix x264 pnacl build.
sbc@google.com [Sat, 30 Aug 2014 13:21:58 +0000 (13:21 +0000)]
Fix x264 pnacl build.

Now that the config.sub patch is generic make conf_host
match the one in common.sh.

TBR=bradnelson

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

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

2 months agoTemporarily disable plumbing tests
sbc@google.com [Sat, 30 Aug 2014 01:33:51 +0000 (01:33 +0000)]
Temporarily disable plumbing tests

These tests are failing due to a 404 while downloading
chrome image.  TBRing this change so that we can
verify the new git waterfall is otherwise healthy.

R=bradnelson@chromium.org

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

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

2 months agoDisable tar build for PNaCl
sbc@google.com [Sat, 30 Aug 2014 00:46:25 +0000 (00:46 +0000)]
Disable tar build for PNaCl

Previously I fixed the newlib build but there are
additional issues (multiply defined symbols) with
the PNaCl build.

TBR=bradnelson

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

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

2 months agoRemove the need for individual packges to set CONFIG_SUB.
sbc@google.com [Sat, 30 Aug 2014 00:11:12 +0000 (00:11 +0000)]
Remove the need for individual packges to set CONFIG_SUB.

Instead, the default patch step will simple patch any
files in the source tree called config.sub.

R=bradnelson@google.com

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

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

2 months agoEnable newlib build of tar
sbc@google.com [Fri, 29 Aug 2014 23:55:22 +0000 (23:55 +0000)]
Enable newlib build of tar

This adds the sysexits.h headers to glibc-compat which is
needed by tar.

Add include of 'locale.h' to tar.c since it used the LC_ALL
macro.

TEST=./make_all.sh tar
R=bradnelson@google.com

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

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

2 months agoTaking architecture into account for devenv c tests.
bradnelson@google.com [Fri, 29 Aug 2014 22:33:53 +0000 (22:33 +0000)]
Taking architecture into account for devenv c tests.

Adding ${NACL_ARCH} to executable names (as we archive one zip for consistency
with the rest of the publish step).
Fixing LD_LIBRARY_PATH (I mistakenly thought that wrong arch so's would be
ignored).

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

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

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

2 months agoUpdate SDL version: c74378f -> d61de00
sbc@google.com [Fri, 29 Aug 2014 19:46:48 +0000 (19:46 +0000)]
Update SDL version: c74378f -> d61de00

Second attempt to fix dosbox build. This time
it should be fixed for both glibc and newlib.

This brings in the following change:
  d61de00 NaCl: Fix library order for glibc build.

TEST=./make_all.sh sdl dosbox F=1 V=1
R=bradnelson@google.com

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

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

2 months agoRemove TODO from libtiff build script.
sbc@google.com [Fri, 29 Aug 2014 16:12:23 +0000 (16:12 +0000)]
Remove TODO from libtiff build script.

The pnacl compiler was fixed in the pepper_32 release.

R=binji@chromium.org

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

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

2 months agoUpdate SDL version: 8ccf0e8 -> c74378f
sbc@google.com [Fri, 29 Aug 2014 14:25:54 +0000 (14:25 +0000)]
Update SDL version: 8ccf0e8 -> c74378f

This change is needed to fix the current dosbox build
failures.

This brings in the following change:
  c74378f NaCl: add -Dmain=SDL_main to SDL_CFLAGS

TEST=make sdl dosbox F=1 V=1
TBR=bradnelson

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

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

2 months agoUse bundled version of config.guess to set --build machine.
sbc@google.com [Fri, 29 Aug 2014 11:37:40 +0000 (11:37 +0000)]
Use bundled version of config.guess to set --build machine.

It turns out that config.guess is not always present
in the package source tree and not always in the root.

The change means we can always get a reasonable string
to pass as that --build machine to configure.

TBR=bradnelson

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

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

2 months agoAdd openssl support to python.
sbc@google.com [Fri, 29 Aug 2014 00:55:31 +0000 (00:55 +0000)]
Add openssl support to python.

This brings the python library closer to python-static
(which generally includes more dependencies).

R=bradnelson@google.com

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

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

2 months agoFix running of config.guess in common.sh
sbc@google.com [Fri, 29 Aug 2014 00:54:28 +0000 (00:54 +0000)]
Fix running of config.guess in common.sh

config.guess is not always executable so run it in via
/bin/sh.

Also, preprend SRC_DIR since the configure step runs in
BUILD_DIR.

Also, run config.guess before setting up cross build
environment since we want it to report the host
system.

Also, fix rebuilding jpeg6b.  Previously the calling
'make jpeg6b F=1' twice in a row would fail.

TBR=bradnelson

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

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

2 months agoPass --build as well as --host to configure scripts.
sbc@google.com [Thu, 28 Aug 2014 23:20:55 +0000 (23:20 +0000)]
Pass --build as well as --host to configure scripts.

Apparently this is the recommended practice.

This fixes the build on my desktop where configure wasn't
detecting correctly that it was cross compiling libtar
for pnacl (it was able to run a simple .bc test program
via binfmt_misc!)

R=bradnelson@google.com

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

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

2 months agoSwitch to github for managing SDL patch.
sbc@google.com [Thu, 28 Aug 2014 18:43:34 +0000 (18:43 +0000)]
Switch to github for managing SDL patch.

This change removes the nacl.patch file from naclports
and instead uses github as the source for the modified
upstream sources.

This change also brings in a few minor changes which
can be seen here:
https://github.com/sbc100/SDL-mirror/compare/spurious:26de2eb...SDL12_nacl

TEST=build and run scummvm and snes9x
R=bradnelson@google.com

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

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

2 months agoDont clobber existing checkouts when upstream URLs change.
sbc@google.com [Thu, 28 Aug 2014 18:26:51 +0000 (18:26 +0000)]
Dont clobber existing checkouts when upstream URLs change.

This changes the behaviour of the git clone step to
match the archive extract step and instead ask the
user to manually remove the old directory.

R=bradnelson@google.com

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

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

2 months agoAdding fvwm window manager port.
bradnelson@google.com [Thu, 28 Aug 2014 17:33:54 +0000 (17:33 +0000)]
Adding fvwm window manager port.

BUG=None
TEST='FORCE=1 FROM_SOURCE=1 ./make_all.sh fvwm'
R=sbc@chromium.org, binji@chromium.org

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

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

2 months agoAdding blackbox window manager port.
bradnelson@google.com [Thu, 28 Aug 2014 16:26:19 +0000 (16:26 +0000)]
Adding blackbox window manager port.

BUG=None
TEST='FORCE=1 FROM_SOURCE=1 ./make_all.sh blackbox'
R=sbc@chromium.org, binji@chromium.org

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

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

2 months agoUpdate SDL2 versio 9cd11ad->308fae8
sbc@google.com [Thu, 28 Aug 2014 14:11:21 +0000 (14:11 +0000)]
Update SDL2 versio 9cd11ad->308fae8

This brings in the following change:
 308fae8 Build libSDLmain using libtool

This fixes the glibcs builds of sdl2-ttf and sdl2-gfx

TBR=binji@chromium.org

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

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

2 months agoBLIS 0.1.4 (update)
sbc@google.com [Thu, 28 Aug 2014 12:47:19 +0000 (12:47 +0000)]
BLIS 0.1.4 (update)

A large portion of code was upstreamed and removed from the patch.

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

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

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

2 months agoAdd testing framework for syscalls
channingh@google.com [Wed, 27 Aug 2014 21:55:19 +0000 (21:55 +0000)]
Add testing framework for syscalls

This adds a testing framework for syscalls and adds tests for getpid(),
getppid(), and the pgid calls.

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

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

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

2 months agoFix sdl2 build.
sbc@google.com [Wed, 27 Aug 2014 11:19:30 +0000 (11:19 +0000)]
Fix sdl2 build.

This updates the version of sdl2 from 7d3f7d4
to 9cd11ad which brings in a single change to
EXTRA_LDFLAGS in configure.in.

This change should have been part of the previous
sdl2 fix.

TBR=bradnelson@google.com

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

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

2 months agoFix gmp ARM build by definining LONGLONG_STANDALONE.
sbc@google.com [Wed, 27 Aug 2014 11:08:36 +0000 (11:08 +0000)]
Fix gmp ARM build by definining LONGLONG_STANDALONE.

Without this longlong.h will on ARM will reference
machine dependent functions which are not compiled.

TBR=bradnelson@google.com

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

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

2 months agoAdd waitpid({x|x<-1 or x=0},...) and checking of parent-child relationships
channingh@google.com [Tue, 26 Aug 2014 19:34:18 +0000 (19:34 +0000)]
Add waitpid({x|x<-1 or x=0},...) and checking of parent-child relationships

Add support for waitpid(x,...) where x<-1 (wait by pgid) or x=0 (wait by pgid
for current process pgid). Also, check that only parents can call setpgid()
or waitpid().

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

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

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

2 months agoFix sdl2-tests
sbc@google.com [Tue, 26 Aug 2014 17:28:12 +0000 (17:28 +0000)]
Fix sdl2-tests

This change re-enabled the sdl2-tests package by
bringing in some fixes from the SDL repository.

It also updates SDL2 to the latest upstream revision.

Some basic tests now work on newlib and pnacl (testgles2
for example).

R=binji@chromium.org

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

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

2 months agoStrip binaries in PublishByArchForDevEnv.
sbc@google.com [Tue, 26 Aug 2014 17:03:15 +0000 (17:03 +0000)]
Strip binaries in PublishByArchForDevEnv.

I noticed that the coreutils zip file was pretty huge
and that it contained unstripped binaries.

The change causes PublishByArchForDevEnv to strip
all binaries before zipping them zip.

An alternative would be to use the 'install-strip'
target that automake generates, but that would be
a larger change and would only work with automake
packages.

Also removed the custom build step from coreutils
as it appears to be doing nothing (arguments to
DefaultBuildStep are ignored).

R=bradnelson@google.com

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

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

2 months agoFix libtomcrypt build.
sbc@google.com [Tue, 26 Aug 2014 17:01:54 +0000 (17:01 +0000)]
Fix libtomcrypt build.

It seems that this package was not being compiled with
the NaCl toolchain at all.

This change fixes the build and also builds and runs
the test binary.

Also disables asm so that the binary validates.

BUG= https://code.google.com/p/naclports/issues/detail?id=134
TEST= ./make_all.sh libtommath libtomcrypt
R=bradnelson@google.com

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

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

2 months agoFix geturl so that it reports http error codes.
sbc@google.com [Tue, 26 Aug 2014 17:00:24 +0000 (17:00 +0000)]
Fix geturl so that it reports http error codes.

Previously it would silentsly succeed even if the
request failed.

Also, allow devenv to connect to localhost (so
that packages can be installed from a local
webserver).

R=bradnelson@google.com

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

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

2 months agoFix libtar configure step.
sbc@google.com [Tue, 26 Aug 2014 16:58:13 +0000 (16:58 +0000)]
Fix libtar configure step.

Override compat_cv_func_snprintf_works which was
previously being set to 'no' since configure
is unable to run test code when cross compiling.

Also remove the compat_makedev which was causing
many build warnings.

TETS= ./make_all.sh libtar
R=bradnelson@google.com

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

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

2 months agoUpdate leveldb and fix some issues.
sbc@google.com [Tue, 26 Aug 2014 12:37:25 +0000 (12:37 +0000)]
Update leveldb and fix some issues.

This allows more unittests to be run (but still not all).

Switch to direct git access since leveldb stopped shipping
tarballs.

Update GitCloneStep so that it removes the patch stamp.

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

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

2 months agoUpdate (and fix) generate_port_list.py.
sbc@google.com [Tue, 26 Aug 2014 10:00:18 +0000 (10:00 +0000)]
Update (and fix) generate_port_list.py.

Now shows clearly which architectures and toolchains
are not supported by each port.

This version of the script was used to generated to the
current wiki page.

R=bradnelson@google.com

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

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

2 months agoUpdate SDL version to 1.2.15.
sbc@google.com [Mon, 25 Aug 2014 18:54:00 +0000 (18:54 +0000)]
Update SDL version to 1.2.15.

Several chucks of the nacl.patch file are no
longer needed as they are upstream in this version.

This is in preparation for switching to github
for SDL patch maintenance.

Also, update scummvm patch so that it doesn't
try to mkdir(/home) which is already mounted
by SDLmain.

TEST=build and run scummvm and snes9x
R=bradnelson@google.com

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

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

2 months agoAdding libpng to drod.
bradnelson@google.com [Sat, 23 Aug 2014 17:29:07 +0000 (17:29 +0000)]
Adding libpng to drod.

phosek's recent change added a dependency from freetype on libpng.
As drod uses freetype, adding a libpng dependency and link the library
in order to green the build.

BUG=None
TEST=local
TBR=binji@chromium.org,phosek@chromium.org

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

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

2 months agoFix gforth quota javascript to handle running incognito.
bradnelson@google.com [Fri, 22 Aug 2014 23:42:31 +0000 (23:42 +0000)]
Fix gforth quota javascript to handle running incognito.

Not all faiure paths were previously covered, resulting in silent failure when
running incognito.

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

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

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

2 months agoChange PRESUBMIT.py to check all partitions, and repart for emacs.
bradnelson@google.com [Fri, 22 Aug 2014 22:24:56 +0000 (22:24 +0000)]
Change PRESUBMIT.py to check all partitions, and repart for emacs.

Previously all partitions were not checked, fixing.
Repartioning in preparation for emacs now building against X11 and some
graphics libs.

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

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

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

2 months agoAdd -fPIC when building freetype as a shared library
phosek@chromium.org [Fri, 22 Aug 2014 18:34:14 +0000 (18:34 +0000)]
Add -fPIC when building freetype as a shared library

BUG=sdl-ttf build error
TEST=TEST=FORCE=1 FROM_SOURCE=1 ./make_all.sh sdl-ttf
R=bradnelson@google.com

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

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

2 months agoUpdate fontconfig to version 2.11.1
phosek@chromium.org [Fri, 22 Aug 2014 16:53:50 +0000 (16:53 +0000)]
Update fontconfig to version 2.11.1

This is needed for the new texlive which depends on the latest version of fontconfig.

BUG=none
TEST=FORCE=1 FROM_SOURCE=1 ./make_all.sh fontconfig
R=bradnelson@google.com, sbc@chromium.org

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

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

2 months agoUpdate freetype to version 2.5.3
phosek@chromium.org [Fri, 22 Aug 2014 16:52:32 +0000 (16:52 +0000)]
Update freetype to version 2.5.3

This is needed for the new texlive which depends on the latest version of freetype.

BUG=none
TEST=FORCE=1 FROM_SOURCE=1 ./make_all.sh freetype
R=bradnelson@google.com, sbc@chromium.org

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

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

2 months agoDropping -fforce-addr from gforth as gcc aliases to clang on the bots.
bradnelson@google.com [Fri, 22 Aug 2014 06:58:55 +0000 (06:58 +0000)]
Dropping -fforce-addr from gforth as gcc aliases to clang on the bots.

Gforth's build uses the -fforce-addr option, which clang doesn't support.
Dropping this (as they've also dropped similary flags previously judging by the
change log).

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

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

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

2 months agoAdding gforth port.
bradnelson@google.com [Fri, 22 Aug 2014 06:03:35 +0000 (06:03 +0000)]
Adding gforth port.

BUG=None
TEST=./make_all.sh gforth
R=sbc@chromium.org, binji@chromium.org

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

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

2 months agoUpdate plumbing tests to match new tcp testing app.
bradnelson@google.com [Fri, 22 Aug 2014 03:49:20 +0000 (03:49 +0000)]
Update plumbing tests to match new tcp testing app.

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

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

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

2 months agoAdd pipe()
channingh@google.com [Fri, 22 Aug 2014 00:14:45 +0000 (00:14 +0000)]
Add pipe()

Add the pipe() call, using the PipeServer API.

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

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

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

2 months agoAdd PipeServer
channingh@google.com [Fri, 22 Aug 2014 00:12:25 +0000 (00:12 +0000)]
Add PipeServer

The PipeServer object allows for creation of a server that listens on two ports,
echoing all received input from one port to the other. This will be used to
simulate unnamed pipes.

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

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

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

2 months agoAdding xcb-util.
bradnelson@google.com [Thu, 21 Aug 2014 22:36:49 +0000 (22:36 +0000)]
Adding xcb-util.

Dependency of awesome.

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

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

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

2 months agoGeneralize SendRequest()
channingh@google.com [Thu, 21 Aug 2014 19:56:51 +0000 (19:56 +0000)]
Generalize SendRequest()

Make sendrequest() return a dictionary instead of an int, so we can support
returning arbitrary values.

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

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

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

2 months agoAdding missing darksky-catalog dependency on thingking.
bradnelson@google.com [Thu, 21 Aug 2014 04:41:08 +0000 (04:41 +0000)]
Adding missing darksky-catalog dependency on thingking.

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

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

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

2 months agoFixing curl build.
bradnelson@google.com [Thu, 21 Aug 2014 04:37:40 +0000 (04:37 +0000)]
Fixing curl build.

Add glibc-compat so autoconf works with new shim for pnacl.

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

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

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

2 months agoAdd getsid() and setsid().
channingh@google.com [Thu, 21 Aug 2014 00:51:40 +0000 (00:51 +0000)]
Add getsid() and setsid().

This adds the getsid() and setsid() calls, and adds session-related
errors to other process management functions.

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

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

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

2 months agoPass pnacl compiles thru a shim to inject -O0 / drop options for autoconf.
bradnelson@google.com [Wed, 20 Aug 2014 23:44:31 +0000 (23:44 +0000)]
Pass pnacl compiles thru a shim to inject -O0 / drop options for autoconf.

Autoconf invokes pnacl in some cases 500+ times per package.
This is very slow for -O2 builds. Switching to -O0 for invocations containing
conftest.c, to detect autoconf.
Also dropping libraries under some circumstances.

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

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

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

2 months agoCleanup bash build.
bradnelson@google.com [Wed, 20 Aug 2014 20:06:42 +0000 (20:06 +0000)]
Cleanup bash build.

Dropping workaround for mknod as it's now in glibc-compat.
Using -Dmain=nacl_main instead of workaround.
Avoiding calling gethostname for now as the stub version breaks the tests.

BUG=None
TEST=./make_all.sh devenv (does bash + tests)
R=binji@chromium.org

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

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

2 months agoUpdate README.rst and build_tools/README.txt
sbc@google.com [Wed, 20 Aug 2014 17:08:28 +0000 (17:08 +0000)]
Update README.rst and build_tools/README.txt

Added xsltproc to list of requirments in README.rst.

Removed dependencies from build_tools/README.txt that
are now part of install_build_deps.sh.

R=bradnelson@google.com

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

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

2 months agoAdd a lock file to prevent multiple copies of naclports being run at the same time.
sbc@google.com [Wed, 20 Aug 2014 15:48:10 +0000 (15:48 +0000)]
Add a lock file to prevent multiple copies of naclports being run at the same time.

R=bradnelson@google.com

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

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

2 months agoDisable darksky-catalog and thingking python modules on mac.
sbc@google.com [Wed, 20 Aug 2014 15:44:30 +0000 (15:44 +0000)]
Disable darksky-catalog and thingking python modules on mac.

They depends on yt which is not buildable on mac.

R=matthewturk@gmail.com
TBR=matthewturk

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

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

2 months agoFix opencv dependency on old newlib behavior.
bradnelson@google.com [Tue, 19 Aug 2014 22:32:34 +0000 (22:32 +0000)]
Fix opencv dependency on old newlib behavior.

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

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

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

2 months agoFixing glibc build of tk.
bradnelson@google.com [Tue, 19 Aug 2014 22:16:43 +0000 (22:16 +0000)]
Fixing glibc build of tk.

Adding -fPIC to tcl build as the lack of it causes a problem when linked into
tk.

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

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

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