Re: [Sks-devel] spodhuis keyserver: ocaml 4.02.3

2017-01-16 Thread Phil Pennock
On 2017-01-16 at 16:56 -0500, Phil Pennock wrote:
> sks-peer.spodhuis.org (serving clients as sks.spodhuis.org) is currently
> reporting version 1.1.6+; if it stops reporting "+" then I discovered
> something broke and reverted.
> 
> The code is the build-cleaner branch in my bitbucket clone:
> 
>   https://bitbucket.org/philpennock/sks-keyserver-philp/branch/build-cleaner
> 
> There are two changesets:

Oh right, there was a reason I went into this code in the first place.

The code running now includes two more changesets, which can be seen at:

  https://bitbucket.org/philpennock/sks-keyserver-philp/branch/opt-long-keyids

On the SKS keyserver, including the `longkeyid` bool flag in the query
string will result in the visible display including the 16-character
format keyid.

  
https://sks.spodhuis.org/pks/lookup?op=vindex=0x4D1E900E14C1CC04=on

Use https://sks.spodhuis.org/ to see this in action: it's in the form as
an option.

(I wanted to be able copy/paste something where I needed the long-form
for a bunch of sigs).

-Phil


signature.asc
Description: Digital signature
___
Sks-devel mailing list
Sks-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/sks-devel


[Sks-devel] spodhuis keyserver: ocaml 4.02.3

2017-01-16 Thread Phil Pennock
sks-peer.spodhuis.org (serving clients as sks.spodhuis.org) is currently
reporting version 1.1.6+; if it stops reporting "+" then I discovered
something broke and reverted.

The code is the build-cleaner branch in my bitbucket clone:

  https://bitbucket.org/philpennock/sks-keyserver-philp/branch/build-cleaner

There are two changesets:

 * stop hard-coding gcc; ocaml on FreeBSD is built with clang and since
   I switched sks to clang a year ago, I've had no more issues with
   "badness" when telling sks to write stats via signal from cron.

 * make it compile with ocaml 4.02.3

The dev mode forces warnings to be errors; since I was in here anyway,
and I have 4.02.3 as the system ocaml, I decided to hack away grossly to
get things working again.

The main issues appear to my ocaml-naive eyes to be that a bunch of
aliases in StdLabels are giving deprecation warnings, and the syntactic
sugar for setting a byte in a string via `<-` is not available with the
replacement BytesLabels module.

In the first few files, I only changed the places which had to be
changed to get the source to compile, deciding that if stuff like
String.length was type-happy then so was I.  I got a little more
aggressive in later files.

A few apparently-unused functions got deleted, because they led to type
complaints.  Strange that the only remaining functions to cause issues
were all unused.  I'm hoping that there's no
reflection-constructing-function-names magic going on.

I see key retrievals happening, and uploading an existing key with no
changes works fine, so I'm just leaving this running to see what
happens.

(Before switching binaries, I stopped SKS, did a DB recover and took a
filesystem snapshot, so worst case scenario I restore the snapshot and
downgrade the binary to release, then catch up on some missing updates).

-Phil


signature.asc
Description: Digital signature
___
Sks-devel mailing list
Sks-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/sks-devel