[Box Backup-commit] COMMIT r2832 - in box/trunk: docs/api-notes infrastructure/mingw

subversion at boxbackup.org subversion at boxbackup.org
Sat Jan 8 22:06:04 GMT 2011


Author: chris
Date: 2011-01-08 22:06:04 +0000 (Sat, 08 Jan 2011)
New Revision: 2832

Modified:
   box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
   box/trunk/infrastructure/mingw/configure.sh
Log:
Update instructions for OpenSSL 1.0.0a and PCRE 8.10.

Instruct users to install PCRE in the MinGW cross-compiler's directory
instead of /usr/{lib,include}/mingw, as it's more standard.

(merges [2742] from 0.11)


Modified: box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt
===================================================================
--- box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt	2011-01-08 22:04:13 UTC (rev 2831)
+++ box/trunk/docs/api-notes/win32_build_on_cygwin_using_mingw.txt	2011-01-08 22:06:04 UTC (rev 2832)
@@ -25,25 +25,31 @@
 If you already have Cygwin installed, please re-run the installer and
 ensure that those packages are installed.
 
+You may also want to install the debugger, Devel/gdb.
+
 == Base Directory ==
 
 Choose a directory where you will unpack and compile OpenSSL, Zlib and Box Backup. We will call this the ''base directory''. An example might be:
 
-  C:\Cygwin\Home\Your Username
+  C:\Cygwin\Home\YourUsername
 
 Make sure you know the full path to this directory.
 
+If your user name has spaces in it, which is quite common on Windows,
+please rename your home directory to one without any spaces, and change
+your user's home directory in /etc/passwd to match.
+
 == OpenSSL ==
 
-Download OpenSSL from [http://www.openssl.org/source/openssl-0.9.7i.tar.gz]
+Download OpenSSL from [http://www.openssl.org/source/openssl-1.0.0a.tar.gz]
 
 Open a Cygwin shell, go to the base directory, and unpack OpenSSL:
 
-	tar xzvf openssl-0.9.7i.tar.gz
+	tar xzvf openssl-1.0.0a.tar.gz
 
 Configure OpenSSL for MinGW compilation, and build and install it:
 
-	cd openssl-0.9.7i
+	cd openssl-1.0.0a
 	./Configure --prefix=/usr/i686-pc-mingw32/ mingw
 	make
 	make install
@@ -53,20 +59,20 @@
 This step is only required to support regular expressions in including/excluding files from backups. However, this is a very useful feature.
 
 Download PCRE from 
-[http://prdownloads.sourceforge.net/pcre/pcre-6.3.tar.bz2?download]
+[http://prdownloads.sourceforge.net/pcre/pcre-8.10.tar.bz2?download]
 
 Open a Cygwin shell, go to the base directory, and unpack PCRE:
 
-	tar xjvf pcre-6.3.tar.bz2
+	tar xjvf pcre-8.10.tar.bz2
 
 Configure PCRE for MinGW compilation, and build and install it:
 	
-	cd pcre-6.3
+	cd pcre-8.10
 	export CFLAGS="-mno-cygwin"
-	./configure
-	make winshared
-	cp .libs/libpcre.a .libs/libpcreposix.a /lib/mingw
-	cp pcreposix.h /usr/include/mingw
+	export CXXFLAGS="-mno-cygwin"
+	./configure --prefix=/usr/i686-pc-mingw32
+	make 
+	make install
 
 == Readline (Optional) ==
 

Modified: box/trunk/infrastructure/mingw/configure.sh
===================================================================
--- box/trunk/infrastructure/mingw/configure.sh	2011-01-08 22:04:13 UTC (rev 2831)
+++ box/trunk/infrastructure/mingw/configure.sh	2011-01-08 22:06:04 UTC (rev 2832)
@@ -1,14 +1,16 @@
 #!/bin/sh
 
-if [ ! -r "/usr/i686-pc-mingw32/lib/libssl.a" ]; then
+DEP_PATH=/usr/i686-pc-mingw32
+
+if [ ! -r "$DEP_PATH/lib/libssl.a" ]; then
 	echo "Error: install OpenSSL as instructed by" \
 		"docs/backup/win32_build_on_cygwin_using_mingw.txt" >&2
 	exit 2
 fi
 
-if [ ! -r "/usr/lib/mingw/libpcreposix.a" \
-	-o ! -r "/usr/lib/mingw/libpcre.a" \
-	-o ! -r "/usr/include/mingw/pcreposix.h" ]; then
+if [ ! -r "$DEP_PATH/lib/libpcreposix.a" \
+	-o ! -r "$DEP_PATH/lib/libpcre.a" \
+	-o ! -r "$DEP_PATH/include/pcreposix.h" ]; then
 	echo "Error: install PCRE as instructed by" \
 		"docs/backup/win32_build_on_cygwin_using_mingw.txt" >&2
 	exit 2




More information about the Boxbackup-commit mailing list