--- a/Makefile.mingw Sat Apr 20 21:52:37 2013 +0200
+++ b/Makefile.mingw Mon Apr 22 00:16:18 2013 +0200
@@ -99,6 +99,7 @@
$(MAKE) -C share/ca-certs -f $(MINGW_MAKEFILE) install
$(MAKE) -C share/sounds -f $(MINGW_MAKEFILE) install
cp $(PIDGIN_INST_DEP_DIR)/exchndl.dll $(PIDGIN_INSTALL_DIR)
+ chmod -R 777 $(PIDGIN_INSTALL_DIR) pidgin/win32/nsis/generate_gtk_zip.sh "`pwd`" "$(GPG_SIGN)"
--- a/pidgin/win32/prepare-workspace.sh Sat Apr 20 21:52:37 2013 +0200
+++ b/pidgin/win32/prepare-workspace.sh Mon Apr 22 00:16:18 2013 +0200
@@ -4,12 +4,14 @@
# Written by Tomek Wasilczyk <tomkiewicz@cpw.pidgin.im>, licensed under GNU GPL
-# * check, if PATH was correctly set (for mingw, perl, nsis)
BONJOUR_GUID_PACKED="5CA28B3B1DEA7654999C464610C010EB"
+ACTIVEPERL_GUID_PACKED="BC98F31FB8440B94CB3674649419766C 547A2C684F806164DB756F228DAB5840 5E7EC16051106BB43818746C209BC8D7" +PERL_DIR_FALLBACK="/cygdrive/c/Perl/bin" +DEBUG_SKIP_DOWNLOADING=0 #TODO: this is just a temporary mirror - Tomek Wasilczyk's <tomkiewicz@cpw.pidgin.im> Dropbox
DOWNLOAD_HOST="https://dl.dropbox.com/u/5448886/pidgin-win32/devel-deps/"
@@ -140,14 +142,36 @@
function reg_get_install_path() {
- reg_key="/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Installer/UserData/S-1-5-18/Products/${guid_packed}/InstallProperties/InstallLocation"
- if [ -f $reg_key ] ; then
- path_win32_to_cygwin "`cat ${reg_key}`"
+ for guid_packed in $1 ; do + reg_key="/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Installer/UserData/S-1-5-18/Products/${guid_packed}/InstallProperties/InstallLocation" + if [ -f $reg_key ] ; then + path_win32_to_cygwin "`cat ${reg_key}`" + expected=`${REALPATH} -e "$expected"` + current=`which "${chk_cmd}"` + if [ "$expected" == "" ] || [ "$current" == "" ]; then + echo "Error while checking path" + if [ "$expected" != "$current" ]; then + dir=`dirname "${expected}"` || exit 1 + echo "Adding $dir to PATH" + echo "export PATH=\"$dir\":\$PATH" >> ~/.bashrc @@ -255,7 +279,7 @@
# required and optional system dependencies
-REALPATH=`which realpath 2>/dev/null`
+REALPATH=`which realpath` BASENAME=`which basename`
@@ -266,7 +290,7 @@
if [ "$SED" == "" ] || [ "$CUT" == "" ] || [ "$BASENAME" == "" ] ||
[ "$WGET" == "" ] || [ "$SHA1SUM" == "" ] || [ "$TAR" == "" ] ||
- [ "$UNZIP" == "" ]; then
+ [ "$UNZIP" == "" ] || [ "$REALPATH" == "" ]; then echo ERROR: One or more required utilities were not found. Use Cygwin\'s setup.exe to
echo install all packages listed above.
@@ -284,7 +308,7 @@
-if [ -e "$WIN32DEV_BASE" ]; then
+if [ -e "$WIN32DEV_BASE" ] && [ $DEBUG_SKIP_INSTALL == 0 ]; then echo "win32-dev directory exists, please remove it before proceeding"
@@ -309,18 +333,39 @@
+reg_get_install_path "$ACTIVEPERL_GUID_PACKED" +if [ "$ACTIVEPERL_DIR" != "" ]; then + PERL_DIR="$ACTIVEPERL_DIR/bin" + PERL_DIR="$PERL_DIR_FALLBACK" +if ! ${REALPATH} -e "${PERL_DIR}/perl" &> /dev/null ; then + echo "Perl not found in \"${PERL_DIR}\", please install it." +if [ $DEBUG_SKIP_DOWNLOADING == 0 ]; then echo "Downloading and verifying archives..."
for ARCHIVE in $ARCHIVES ; do
download_archive "$ARCHIVE"
echo "Composing workspace..."
+if [ $DEBUG_SKIP_INSTALL == 0 ]; then mkdir "$WIN32DEV_BASE" || exit 1
path_real "$WIN32DEV_BASE"
WIN32DEV_BASE="$path_ret"
+if [ $DEBUG_SKIP_INSTALL == 0 ]; then echo "Installing Bonjour SDK..."
mkdir "$WIN32DEV_BASE/bonjour-sdk"
cp -r "${BONJOUR_SDK_DIR}"/* "$WIN32DEV_BASE/bonjour-sdk/"
@@ -329,8 +374,20 @@
extract_archive "$ARCHIVE"
echo "Removing bsdcpio..."
rm -rf "${WIN32DEV_BASE}/bsdcpio"
+check_path "gcc" "${WIN32DEV_BASE}/mingw/bin/gcc" || path_changed=1 +check_path "perl" "${PERL_DIR}/perl" || path_changed=1 +if [ $path_changed == 1 ]; then + echo "PATH changed - executing sub-shell" + echo "This session uses outdated PATH variable - please exit"