[darcs-users] Building (statically) in Windows

Esa Ilari Vuokko eivuokko at adeptness.dyndns.org
Tue May 11 00:09:30 UTC 2004


  I've been trying to use darcs for a while now, and it just doesn't 
work (more on this at some other post) for me in Windows.  So I got 
around to get the source and see what's up.

  With help from #darcs (irc channel) people baka and arete I got a
clue what I need.  I decided I might go without openssl and pthreads.

I got curl and zlib, from mingw I got mingw, msys and msysdtk installers
and installed them.  From sh I ran curl configure and make

./configure --enable-shared=no && make

Which gave me only static library.

Then I ran
./configure && make
for zlib.  Got nice static library.

Then I check out darcs, applied changes in attached patch and ran
autoconf and configure with following specifics

$ GHC=/c/tools/haskell/ghc/ghc-6.2.1/bin/ghc\
PATH=$PATH:/c/source/build-darcs/curl-7.11.2 ./configure

then just make darcs (as the cgi piece doesn't compile on me)

Not that this darcs is especially anything better, but atleast it 
compiles "easily".

Accompanied patch makes threading-check more sane and removes
unneccesary include.  Hope it's of some help.  configure-stuff
could be better, I guess, especially providing a way to override
threading choice from command line might be nice.

Thanks for darcs and keep up the good work!

Esa Ilari Vuokko
-------------- next part --------------

New patches:

[Fix Windows threading vs autoconf issues
ei at vuokko.info**20040510232113] {
hunk ./configure.ac 316
-AC_CHECK_LIB(winmm, CreateThread,
-  [ZFLAGS="$ZFLAGS -lwinmm"
+AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <windows.h>]], [[&CreateThread]]),
hunk ./hscurl.c 7
-#include <pthread.h>


[add a blurb on the naming of unpull to docs.
David Roundy <droundy at abridgegame.org>**20040508114007] 
[make rollback leave pending changes.
David Roundy <droundy at abridgegame.org>**20040508105601] 
[actually add --match documentation....
David Roundy <droundy at abridgegame.org>**20040508102507] 
[fix unpull bug leading to spurious failures.
David Roundy <droundy at abridgegame.org>**20040507103804
 Unpull wasn't doing the proper commute to adjust the patch prior to
 applying its inverse.
[oops, fixed patch for darcs-createrepo.
David Roundy <droundy at abridgegame.org>**20040506102729] 
[update version number to 0.9.20.
David Roundy <droundy at abridgegame.org>**20040505100456] 
[fix warnings in darcs-createrepo.
David Roundy <droundy at abridgegame.org>**20040505094829] 
[fix bug in darcs-createrepo.
David Roundy <droundy at abridgegame.org>**20040505094805] 
[move patch choice of annotate into Match.lhs.
David Roundy <droundy at abridgegame.org>**20040504125327] 
[mark FIXME bugs on get_match etc when given a tag.
David Roundy <droundy at abridgegame.org>**20040504124326] 
[switch changes to use new "Match" infrastructure.
David Roundy <droundy at abridgegame.org>**20040504123642] 
[add --match to several more commands, and document it.
David Roundy <droundy at abridgegame.org>**20040504113624] 
[make match_patchset deal with tags appropriately.
David Roundy <droundy at abridgegame.org>**20040504110946] 
[Fix darcs diff on a --partial repo, and add --match support to diff.
David Roundy <droundy at abridgegame.org>**20040503103101] 
[quote num arguments in XML patch summary.
David Roundy <droundy at abridgegame.org>**20040502095441] 
[add new --match flag which matches logical expressions.
David Roundy <droundy at abridgegame.org>**20040502095050] 
[fail nicely on changes with file in partial repo.
David Roundy <droundy at abridgegame.org>**20040501105838] 
[mention we need to be in a repo when user tries to call pull etc outside repo dir.
David Roundy <droundy at abridgegame.org>**20040501104659] 
[improve error message in annotate.
David Roundy <droundy at abridgegame.org>**20040501104648] 
[fix up the context hunk printing.
David Roundy <droundy at abridgegame.org>**20040430115253
 This change fixes a bug when printing context of hunks near the beginning
 of a file, and also avoids context-overlap.
[add mention of OpenBSD port to web page.
David Roundy <droundy at abridgegame.org>**20040429100108] 
[add support for DARCS_SCP and DARCS_SSH environment variables.
David Roundy <droundy at abridgegame.org>**20040429095134] 
[on web site link to win32 directory, not zip.
droundy at civet.berkeley.edu**20040429092850] 
[add --test option to pull.
David Roundy <droundy at abridgegame.org>**20040428113002] 
[fix bug in pull -m where first patch prompted is wrong.
David Roundy <droundy at abridgegame.org>**20040428111515] 
[give diagnostic message on dependent patches for unpull.
David Roundy <droundy at abridgegame.org>**20040428110231] 
[add unified option to send and reorder contents of send.
David Roundy <droundy at abridgegame.org>**20040428103603] 
[don't look for package wx unless we want to use wx.
David Roundy <droundy at abridgegame.org>**20040427113144] 
[fix quoting problem in Regex autoconf tests.
David Roundy <droundy at abridgegame.org>**20040427113111] 
[look for System.Posix.Signals in unix not util.
David Roundy <droundy at abridgegame.org>**20040427113036] 
[fix warnings in Curl.hs.
David Roundy <droundy at abridgegame.org>**20040427113023] 
[update changelog.
David Roundy <droundy at abridgegame.org>**20040427104850] 
[add xml support for --summary in changes and annotate.
David Roundy <droundy at abridgegame.org>**20040427104700] 
[add xml output support for files to annotate.
David Roundy <droundy at abridgegame.org>**20040426111829] 
[don't output header in Changes when outputting XML.
David Roundy <droundy at abridgegame.org>**20040426110803] 
[use fail when failing in Apply.
David Roundy <droundy at abridgegame.org>**20040424132729] 
[better command-line completion on commands accepting a list of files or dirs.
David Roundy <droundy at abridgegame.org>**20040424132650] 
[allow empty patches if --ask-deps is specified.
David Roundy <droundy at abridgegame.org>**20040423094030] 
[documentation updates.
David Roundy <droundy at abridgegame.org>**20040423092211] 
[make slurp_write preserve modification times on undirty files.
David Roundy <droundy at abridgegame.org>**20040423090044] 
[give better error message in pull when patch isn't readable.
David Roundy <droundy at abridgegame.org>**20040423082257] 
[miscellaneous documentation improvements.
David Roundy <droundy at abridgegame.org>**20040422115815] 
[preserve pending changes when pulling or applying.
David Roundy <droundy at abridgegame.org>**20040422111530] 
[fix bug when testing patches that create subdirectories within subdirectories.
droundy at abridgegame.org**20040420200130] 
[_darcs/pref/tmpdir should be _darcs/prefs/tmpdir.
droundy at abridgegame.org**20040420195136] 
[fix bug where --all overrode file choice in record.
David Roundy <droundy at abridgegame.org>**20040420120746] 
[fix bug causing empty hunk patches to lead to failures.
David Roundy <droundy at abridgegame.org>**20040420120722] 
[add example to manual on publishing your repo.
David Roundy <droundy at abridgegame.org>**20040419095712] 
[add to TODO.
David Roundy <droundy at abridgegame.org>**20040417114912] 
[add /// operator to FileName module (as yet unused).
David Roundy <droundy at abridgegame.org>**20040417114853] 
[use fail for error reporting in DarcsCommands.
David Roundy <droundy at abridgegame.org>**20040417114818] 
[remove unused function in ArgumentDefaults.
David Roundy <droundy at abridgegame.org>**20040417114807] 
[improve error and usage messages on command arguments.
David Roundy <droundy at abridgegame.org>**20040417114609] 
[allow sendEmail with no "to", just "cc" recipients.
David Roundy <droundy at abridgegame.org>**20040411103241
 This should fix the trouble with trying to --reply to a patch coming from a
 push rather than a send.
[specify functions imported in SlurpDirectory.lhs.
David Roundy <droundy at abridgegame.org>**20040410211210] 
[use win32 threads by default under windows.
David Roundy <droundy at abridgegame.org>**20040410211109] 
[don't use nice when running tests.
David Roundy <droundy at abridgegame.org>**20040410210238
 nice may not be present on some (esp win32) systems...
[TAG 0.9.19
David Roundy <droundy at abridgegame.org>**20040409121904] 

More information about the darcs-users mailing list