From e887f810aed993286ce0e4767253dfe81e43e8aa Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 18 Sep 2007 16:12:27 +0100 Subject: [PATCH] Add a recipe on how to recompile perl We still have problems with Perl, and this is a first step to be able to compile Perl modules ourselves. Note: this does not (yet) install the perl stuff into lib/perl5/5.8.8/, but rather into /lib/. Signed-off-by: Johannes Schindelin --- share/msysGit/dmake.patch | 48 ++++++++++++++++++++++++++++++++++++ share/msysGit/howto-compile-perl.txt | 42 +++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 share/msysGit/dmake.patch create mode 100644 share/msysGit/howto-compile-perl.txt diff --git a/share/msysGit/dmake.patch b/share/msysGit/dmake.patch new file mode 100644 index 00000000..f21af3a0 --- /dev/null +++ b/share/msysGit/dmake.patch @@ -0,0 +1,48 @@ +This patch contains minimal fixups to compile dmake in msysGit + +If you want to build dmake from scratch, you need to get the source first: + +cvs -d :pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co dmake + +Then pply this patch, and do + + ./configure --prefix=/ && make && + cp -R dmake.exe startup /bin/ + +(make install installs startup/ to /share/, but somehow dmake.exe does +not pick up on that.) + +Index: configure +=================================================================== +RCS file: /cvs/tools/dmake/configure,v +retrieving revision 1.22 +diff -u -r1.22 configure +--- configure 3 Jul 2007 11:29:09 -0000 1.22 ++++ configure 18 Sep 2007 14:57:24 -0000 +@@ -4045,7 +4045,7 @@ + OS_VERSION=cygwin + CASE_INSENSITIVE_FS=true + ;; +- "MINGW") ++ *"MINGW"*) + OS_VERSION=mingw + OS_TYPE=winnt + BUILDINFO="Windows / MinGW" +Index: quit.c +=================================================================== +RCS file: /cvs/tools/dmake/quit.c,v +retrieving revision 1.6 +diff -u -r1.6 quit.c +--- quit.c 18 Jan 2007 09:32:09 -0000 1.6 ++++ quit.c 18 Sep 2007 14:57:24 -0000 +@@ -32,6 +32,10 @@ + * first time. */ + + ++#ifdef __MINGW32__ ++#define SIGQUIT -1 ++#endif ++ + PUBLIC void + Quit( sig )/* + ======== Error or quit */ diff --git a/share/msysGit/howto-compile-perl.txt b/share/msysGit/howto-compile-perl.txt new file mode 100644 index 00000000..851e50ef --- /dev/null +++ b/share/msysGit/howto-compile-perl.txt @@ -0,0 +1,42 @@ +This is a recipe how to recompile perl on msysGit + +First, you need to get dmake. +----------------------------- + +Either install the precompiled version from + + http://search.cpan.org/dist/dmake/ + +and unpack it in /bin/, or build from scratch: + +--------------------------------------------------------------------- +cvs -d :pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co dmake +cd dmake +git apply /share/msysGit/dmake.patch +./configure --prefix=/ +make +cp -R dmake.exe startup/ /bin/ +--------------------------------------------------------------------- + +(When I tried, make install did not work, because startup/ was installed +into /share/, and dmake.exe did not find it.) + +Second, get & compile the perl sources +-------------------------------------- + +Get them from http://ftp.funet.fi/pub/CPAN/src/. (Tried and tested with +version 5.8.8.) + +Then, do something like + +--------------------------------------------------------------------- +cd perl-5.8.8/win32/ +TMP="$(echo "$TMP" | tr '/' '\\')" dmake install \ + INST_TOP="$(cd /; pwd -W | tr '/' '\\')" +--------------------------------------------------------------------- + +The ugly tr calls are needed because dmake does not understand "/" path +delimiters, but wants "\" ones. + +If it worked: congratulations. + -- 2.11.4.GIT