You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2016/02/09 23:14:44 UTC
svn commit: r1729484 - in
/subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris: mount-tmpfs.c
rebuild-svn-bits.sh serf.patch twisted.patch
Author: philip
Date: Tue Feb 9 22:14:43 2016
New Revision: 1729484
URL: http://svn.apache.org/viewvc?rev=1729484&view=rev
Log:
I don't know how long the Solaris buildbot will survive. These
files record how I built things.
* tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh: New.
* tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c: New.
* tools/buildbot/slaves/svn-sparc-solaris/serf.patch: New.
* tools/buildbot/slaves/svn-sparc-solaris/twisted.patch: New.
Added:
subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c (with props)
subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh
subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/serf.patch
subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch
Added: subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c?rev=1729484&view=auto
==============================================================================
--- subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c (added)
+++ subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c Tue Feb 9 22:14:43 2016
@@ -0,0 +1,38 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <unistd.h>
+#include <strings.h>
+
+int main(int argc, char **argv)
+{
+ const char *cmd;
+ const char *name = strrchr(argv[0], '/');
+
+ if (name)
+ ++name;
+ else
+ name = argv[0];
+
+ if (!strcmp(name, "mount-tmpfs"))
+ {
+ cmd = "/usr/sbin/mount -F tmpfs -o size=768m tmpfs /export/home/wandisco/buildbot/slave/svn-sparc-solaris/obj/subversion/tests/";
+ }
+ else if (!strcmp(name, "umount-tmpfs"))
+ {
+ cmd = "/usr/sbin/umount /export/home/wandisco/buildbot/slave/svn-sparc-solaris/obj/subversion/tests/";
+ }
+ else
+ {
+ fprintf(stderr, "command not recognised\n");
+ return -1;
+ }
+
+ if (setuid(0))
+ {
+ fprintf(stderr, "setuid failed\n");
+ return -1;
+ }
+
+ return system(cmd);
+}
Propchange: subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/mount-tmpfs.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh?rev=1729484&view=auto
==============================================================================
--- subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh (added)
+++ subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/rebuild-svn-bits.sh Tue Feb 9 22:14:43 2016
@@ -0,0 +1,219 @@
+#!/bin/sh
+
+GREP=/usr/bin/grep
+export GREP
+PATH=/usr/bin:/usr/ccs/bin:/opt/csw/bin:/opt/csw/gnu:/export/home/wandisco/buildbot/install/bin
+export PATH
+
+prefix=/export/home/wandisco/buildbot/install
+
+if [ "$1" = "m4" ] ; then
+ shift
+ gunzip -c m4-1.4.14.tar.gz | tar xf -
+ cd m4-1.4.14
+ ./configure --prefix=$prefix
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "autoconf" ] ; then
+ shift
+ gunzip -c autoconf-2.68.tar.gz | tar xf -
+ cd autoconf-2.68
+ ./configure --prefix=$prefix
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "openssl" ] ; then
+ shift
+ gunzip -c openssl-1.0.1e.tar.gz | tar xf -
+ cd openssl-1.0.1e
+ ./Configure --prefix=$prefix solaris64-sparcv9-cc -xcode=pic32
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "apr" ] ; then
+ shift
+ gunzip -c apr-1.5.0.tar.gz | tar xf -
+ cd apr-1.5.0
+ CFLAGS='-m64' LDFLAGS='-m64' ./configure --prefix=$prefix
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "apr-util" ] ; then
+ shift
+ gunzip -c apr-util-1.5.3.tar.gz | tar xf -
+ cd apr-util-1.5.3
+ CFLAGS='-m64' LDFLAGS='-m64' ./configure \
+ --prefix=$prefix \
+ --with-apr=$prefix/bin/apr-1-config
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "pcre" ] ; then
+ shift
+ gunzip -c pcre-8.34.tar.gz | xf -
+ cd pcre-8.34
+ CC='cc -m64' CXX='CC -m64' ./configure --prefix=$prefix
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "httpd" ] ; then
+ shift
+ gunzip -c httpd-2.4.16.tar.gz | tar xf -
+ cd httpd-2.4.16
+ CFLAGS='-m64' LDFLAGS='-m64' ./configure \
+ --prefix=$prefix \
+ --with-apr=$prefix/bin/apr-1-config \
+ --with-apr-util=$prefix/bin/apu-1-config \
+ --with-ssl=$prefix \
+ --with-pcre=$prefix \
+ --enable-so \
+ --enable-mpms-shared=all \
+ --enable-mods-static='core log_config logio version unixd authn_core authz_core http' \
+ --enable-mods-shared='alias authz_user authn_file authn_basic dav ssl env mime'
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "python" ] ; then
+ shift
+ gunzip -c Python-2.7.5.tgz | tar xf -
+ cd Python-2.7.5
+ CC='cc -mt -m64' CXX='CC -mt -m64' ./configure --prefix=$prefix
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "hashlib" ] ; then
+ shift
+ gunzip -c hashlib-20081119.tar.gz | tar xf -
+ cd hashlib-20081119
+ python setup.py build --openssl-prefix=$prefix
+ python setup.py install
+ cd ..
+fi
+
+if [ "$1" = "scons" ] ; then
+ shift
+ gunzip -c scons-2.3.0.tar.gz | tar xf -
+ cd scons-2.3.0
+ python setup.py install --prefix=$prefix
+ cd ..
+fi
+
+if [ "$1" = "serf" ] ; then
+ shift
+ gunzip -c serf-1.3.4.tar.gz | tar xf -
+ cd serf-1.3.4
+ patch -p0 ../serf.patch
+ scons install CC='cc -m64' \
+ PREFIX=$prefix APR=$prefix APU=$prefix OPENSSL=$prefix
+ cd ..
+fi
+
+if [ "$1" = "sqlite" ] ; then
+ shift
+ unzip sqlite-amalgamation-3071501.zip
+fi
+
+if [ "$1" = "pysqlite" ] ; then
+ shift
+ gunzip -c pysqlite-2.6.3.tar.gz | tar xf -
+ cd pysqlite-2.6.3
+ unzip ../sqlite-amalgamation-3071501.zip
+ mv sqlite-amalgamation-3071501/sqlite3.h src
+ mv sqlite-amalgamation-3071501/sqlite3.c .
+ python setup.py static_build
+ python setup.py install
+ cd ..
+fi
+
+if [ "$1" = "subversion" ] ; then
+ shift
+ gunzip -c subversion-1.8.8.tar.gz | tar xf -
+ cd subversion-1.8.8
+ unzip ../sqlite-amalgamation-3071501.zip
+ mv sqlite-amalgamation-3071501/ sqlite-amalgamation
+ LD_LIBRARY_PATH=/export/home/wandisco/buildbot/install/lib \
+ CC='cc -m64' ./configure \
+ --prefix=$prefix \
+ --with-apr=$prefix \
+ --with-apr-util=$prefix \
+ --with-serf=$prefix \
+ --with-apxs=$prefix/bin/apxs
+ make
+ cd ..
+fi
+
+if [ "$1" = "iconv" ] ; then
+ shift
+ gunzip -c libiconv-1.14.tar.gz | tar xf -
+ cd libiconv-1.14
+ CC='cc -m64' ./configure
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "automake" ] ; then
+ shift
+ gunzip -c automake-1.11.6.tar.gz | tar xf -
+ cd automake-1.11.6
+ configure --prefix=$prefix
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "libtool" ] ; then
+ shift
+ gunzip -c libtool-2.2.10.tar.gz | tar -xf -
+ cd libtool-2.2.10
+ configure --prefix=$prefix
+ make
+ make install
+ cd ..
+fi
+
+if [ "$1" = "zope.interface" ] ; then
+ shift
+ gunzip -c zope.interface-4.1.0.tar.gz | tar xf -
+ cd zope.interface-4.1.0
+ python setup.py install --prefix=$prefix
+ cd ..
+fi
+
+if [ "$1" = "twisted" ] ; then
+ shift
+ gunzip -c Twisted-13.2.0.tar.gz | tar xf -
+ cd Twisted-13.2.0
+ patch -p0 < ../twisted.patch
+ python setup.py install --prefix=$prefix
+ cd ..
+fi
+
+if [ "$1" = "buildbot" ] ; then
+ shift
+ gunzip -c buildbot-slave-0.8.8.tar.gz | tar xf -
+ cd buildbot-slave-0.8.8
+ python setup.py install --prefix=$prefix
+ cd ..
+fi
+
+if [ -n "$1" ] ; then
+ echo "Don't know what to do with" $1
+fi
Added: subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/serf.patch
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/serf.patch?rev=1729484&view=auto
==============================================================================
--- subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/serf.patch (added)
+++ subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/serf.patch Tue Feb 9 22:14:43 2016
@@ -0,0 +1,19 @@
+--- SConstruct.old Mon Mar 3 14:34:37 2014
++++ SConstruct Mon Mar 3 14:34:21 2014
+@@ -210,7 +210,7 @@
+ # Unfortunately we can't set the .dylib compatibility_version option separately
+ # from current_version, so don't use the PATCH level to avoid that build and
+ # runtime patch levels have to be identical.
+-env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
++#env['SHLIBVERSION'] = '%d.%d.%d' % (MAJOR, MINOR, 0)
+
+ LIBNAME = 'libserf-%d' % (MAJOR,)
+ if sys.platform != 'win32':
+@@ -248,6 +248,7 @@
+
+ if sys.platform == 'sunos5':
+ env.Append(LIBS='m')
++ env['PLATFORM'] = 'posix'
+ else:
+ # Warning level 4, no unused argument warnings
+ env.Append(CCFLAGS=['/W4', '/wd4100'])
Added: subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch?rev=1729484&view=auto
==============================================================================
--- subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch (added)
+++ subversion/trunk/tools/buildbot/slaves/svn-sparc-solaris/twisted.patch Tue Feb 9 22:14:43 2016
@@ -0,0 +1,11 @@
+--- twisted/python/sendmsg.c.old Mon Mar 3 14:32:08 2014
++++ twisted/python/sendmsg.c Mon Mar 3 14:30:22 2014
+@@ -6,6 +6,8 @@
+ #define PY_SSIZE_T_CLEAN 1
+ #include <Python.h>
+
++#define _XPG4_2 1
++
+ #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
+ /* This may cause some warnings, but if you want to get rid of them, upgrade
+ * your Python version. */