On Fri, Dec 28 2018, YASUOKA Masahiko <yasu...@openbsd.org> wrote:
> Hi,
>
> I'd like to add devel/cjose.  It's a C library of JOSE (JavaScript
> Object Signing and Encryption).  JOSE is used in "OpenID connect"
> protocol.
>
> The original diff is written by my colleague, Naoaki Hoshi.
>
> ok?

Fails to build on gcc archs, so not ok:

--8<--
cc1: warnings being treated as errors
In file included from include/jwk_int.h:8,
                 from jwk.c:8:
../include/cjose/jwk.h:283: warning: type qualifiers ignored on function return 
type
jwk.c:1003: warning: type qualifiers ignored on function return type
Error while executing cc -DPACKAGE_NAME="cjose" -DPACKAGE_TARNAME="cjose" 
-DPACKAGE_VERSION="0.6.1" -DPACKAGE_STRING="cjose 0.6.1" -DPACKAGE_BUGREPORT="" 
-DPACKAGE_URL="" -DPACKAGE="cjose" -DVERSION="0.6.1" -DSTDC_HEADERS=1 
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_LIBCRYPTO=1 
-DHAVE_LIBJANSSON=1 -I. -I/include -I/usr/local/include/ -std=gnu99 --pedantic 
-Wall -Werror -g -O2 -I../include -O2 -pipe -I/usr/local/include/ -MT 
libcjose_la-jwk.lo -MD -MP -MF .deps/libcjose_la-jwk.Tpo -c jwk.c -fPIC -DPIC -o
.libs/libcjose_la-jwk.o
-->8--

Please drop the -Werror, it's a recipe for problems.  The "-g -O2"
part should be dropped too, even if -O2 is overriden later ("-O2 -pipe").
A cheap way to do this is to patch src/Makefile.in and test/Makefile.in.

devel/check should be added to BUILD_DEPENDS instead of TEST_DEPENDS, so
that configure can detect it and activate regress tests.

COMMENT should not start with a capital letter ("Implementation") unless
for good reasons. Here I would suggest something like:

  COMMENT-main = Javascript Object Signing and Encryption library

COMMENT-docs could be improved ("documetations" -> "documentation").

DESCR could be improved.  I would suggest:

  cjose is a library implementing Javascript Object Signing and
  Encryption (JOSE).

and maybe a brief list of use cases for JOSE (RFCs?)

Regarding the docs: doxygen updates can be painful, so mechanically
adding API docs is not a good approach.  I would suggest dropping the
doxygen docs, unless of course if you really see value in them.

Except for these points, LGTM.
-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to