darcs

Issue 2477 Update darcs wiki to newest version of gitit

Title Update darcs wiki to newest version of gitit
Priority Status unknown
Milestone Resolved in
Superseder Nosy List waldyrious
Assigned To
Topics

Created on 2015-10-17.19:13:48 by waldyrious, last changed 2017-04-11.15:49:52 by simon.

Files
File name Uploaded Type Edit Remove
unnamed DaniilFrumin, 2015-10-17.19:38:52 text/html
Messages
msg18795 (view) Author: waldyrious Date: 2015-10-17.19:13:46
While editing some pages on the wiki, I noticed that the "preview"
button had a different padding than the "save" and "discard" ones. I was
about to submit a patch to gitit, when I realized that this had already
been fixed in https://github.com/jgm/gitit/pull/354 -- included in gitit
since 0.10.3.1, https://github.com/jgm/gitit/commit/eda6e08, released
over two years ago. The latest release (at the time of writing) is
0.12.0.1, from 24 August 2015, so besides the fix above, there are
probably several other advantages to upgrading, as described in
https://github.com/jgm/gitit/blob/master/CHANGES.
msg18796 (view) Author: DaniilFrumin Date: 2015-10-17.19:38:52
A +1 on this :)

The only gitit version available on Debian Squeeze is 0.7. I think Ganesh
was in the process of upgrading the darcs.net box, but even with the
upgrade to Wheeze, the available version will be 0.10.
Should we just compile our own gitit binary?


On Sat, Oct 17, 2015 at 9:13 PM, Waldir Pimenta <bugs@darcs.net> wrote:

>
> New submission from Waldir Pimenta <waldir@email.com>:
>
> While editing some pages on the wiki, I noticed that the "preview"
> button had a different padding than the "save" and "discard" ones. I was
> about to submit a patch to gitit, when I realized that this had already
> been fixed in https://github.com/jgm/gitit/pull/354 -- included in gitit
> since 0.10.3.1, https://github.com/jgm/gitit/commit/eda6e08, released
> over two years ago. The latest release (at the time of writing) is
> 0.12.0.1, from 24 August 2015, so besides the fix above, there are
> probably several other advantages to upgrading, as described in
> https://github.com/jgm/gitit/blob/master/CHANGES.
>
> ----------
> messages: 18795
> nosy: waldir
> status: unknown
> title: Update darcs wiki to newest version of gitit
>
> __________________________________
> Darcs bug tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue2477>
> __________________________________
> _______________________________________________
> darcs-devel mailing list
> darcs-devel@darcs.net
> http://lists.osuosl.org/mailman/listinfo/darcs-devel
>



-- 
Sincerely yours,
-- Daniil
Attachments
msg19440 (view) Author: waldyrious Date: 2017-04-11.12:46:02
Jessie now includes gitit version 0.10.4-2
(https://packages.debian.org/search?keywords=gitit&searchon=names&suite=stable&section=all),
so the upgrade should be possible now :)
msg19441 (view) Author: simon Date: 2017-04-11.15:49:50
I explored a little as an ordinary user. Some notes:

darcs.net is running debian squeeze (2011), and the last package installation was in 2015. It has ghc-
7.4.1 installed. It is running gitit 0.10.0.1, installed in 2012. It has only 0.5G of ram, which is not 
enough for building haskell packages easily.

I was able to build an up-to-date cabal-install: /home/simonmichael/.cabal/bin/cabal .

I could not build the current gitit, for two reasons:

1. while building cmark, gcc runs out of memory. I don't know how to limit gcc memory use.

$ cabal install cmark --ghc-options='+RTS -M200m -RTS' +RTS -M200m -RTS
Preprocessing library cmark-0.5.5.1...
[1 of 1] Compiling CMark            ( dist/build/CMark.hs, dist/build/CMark.o )
gcc: Internal error: Killed (program cc1)

2. while building foundation, this error happens, probably needs a newer version of some C lib:

Building foundation-0.0.6...
Preprocessing library foundation-0.0.6...
Posix.hsc: In function 'main':
Posix.hsc:243: error: 'O_NOFOLLOW' undeclared (first use in this function)
Posix.hsc:243: error: (Each undeclared identifier is reported only once
Posix.hsc:243: error: for each function it appears in.)
Posix.hsc:244: error: 'O_CLOEXEC' undeclared (first use in this function)
compiling dist/build/Foundation/System/Bindings/Posix_hsc_make.c failed (exit code 1)
command was: /usr/bin/gcc -c dist/build/Foundation/System/Bindings/Posix_hsc_make.c -o 
dist/build/Foundation/System/Bindings/Posix_hsc_make.o -fno-stack-protector -fno-stack-protector -Wl,--
hash-size=31 -Wl,\
--reduce-memory-overheads -Wl,--hash-size=31 -Wl,--reduce-memory-overheads -D__GLASGOW_HASKELL__=704 -
Dlinux_BUILD_OS=1 -Di386_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Di386_HOST_ARCH=1 -Icbits -
DARCH_IS_LITTLE_ENDIA\
N -Idist/build/autogen -include dist/build/autogen/cabal_macros.h -I/usr/local/lib/ghc-7.4.1/base-
4.5.0.0/include -I/usr/local/lib/ghc-7.4.1/include -I/usr/local/lib/ghc-7.4.1/include/

I also tried the GHC 8 https://www.haskell.org/ghc/download_ghc_8_0_2#linux_i386 -> Centos 6.7 binary, 
but it needs the libtinfo5 package installed.

Recommendations: ask the vps provider for more memory, or start fresh on a new linode server costing 
$5/mo.
History
Date User Action Args
2015-10-17 19:13:48waldyriouscreate
2015-10-17 19:38:54DaniilFruminsetfiles: + unnamed
messages: + msg18796
2017-04-11 12:46:03waldyrioussetmessages: + msg19440
2017-04-11 15:49:52simonsetmessages: + msg19441