I was searching for a cross-platform version control system with
minimal dependencies and FOSSIL came up in that search.

Decided to try it out, so I downloaded the source to Windows and
attempted to run configure.  Of course, it couldn't compile because of
references to termios.h.  So, I looked up how to build on Windows with
MinGW and tried again using make -f win/Makefile.mingw.  Had to move
the location of LIB in:
  $(TCC) -o $@ $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o
to
$(TCC) -o $@ $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(LIB)
since libraries need to be after the object files that reference them.

I also had to fix the location for zlib to where it is on my system.
I tried enabling the miniz library
FOSSIL_ENABLE_MINIZ=1
because I have both libz and libminizip (from zlib/contrib) on my system.

After those changes, it seems to build okay.

I did not see the MinGW issues mentioned at
https://www.fossil-scm.org/index.html/tktview/18cff45a4e210430e24c
"fossil extra" seems to work okay.
I'm using MinGW based on gcc 4.9.2, mingwrt-3.20-2, w32api-3.17-2 plus
my own patches and pthreads/C11 threads support.  Not seeing any
compiler issues at this point.

I'm not sure if my build of Fossil is using relevant system libraries.
Looks like the configure system checks for iconv and dlopen support
(libdl on Windows), but I don't see references to libiconv or libdl in
the Makefile.mingw file and I have them installed and available on my
system.

While building, I couldn't help thinking FOSSIL would be a great
candidate to use cDetect with instead of the supplied configure or a
hard-coded platform-specific Makefile.  The self-contained philosophy
of FOSSIL is a good match with the cDetect design philosophies.  I'm
thinking of creating the relevant files to build FOSSIL with cDetect,
GNU make and pkgconf instead of using the current build system.  If
that would be useful to anyone else, please let me know.

I'm still going through the Fossil Version Control Users Guide PDF,
but so far, FOSSIL appears to be a very portable, compact, useful
version control system.  It seems very impressive.

Sincerely,
Laura
http://www.distasis.com/cpp
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to