commit eb427b1c53fb6c01794f6603557c1d626bf2b03c from: Thomas Adam date: Sun Jul 03 22:15:17 2022 UTC portable: add sigs/buf for signed commits Add support for upstream's tag signing commits, but adding the relevant files to autotools, and making those portable-compatible. commit - 94ff3fb6acdc73dd5e3ecfee1cf41683fc554593 commit + eb427b1c53fb6c01794f6603557c1d626bf2b03c blob - bc980d1de458ba2d7265ed5e5f09828ba2c2f9b2 blob + 2cfcb9975bf6d254fc3274e5ac625e34a64a60db --- got/Makefile.am +++ got/Makefile.am @@ -5,6 +5,7 @@ include $(top_builddir)/Makefile.common got_SOURCES = got.c \ $(top_srcdir)/lib/blame.c \ $(top_srcdir)/lib/commit_graph.c \ + $(top_srcdir)/lib/date.c \ $(top_srcdir)/lib/delta.c \ $(top_srcdir)/lib/diff.c \ $(top_srcdir)/lib/diffreg.c \ @@ -48,7 +49,8 @@ got_SOURCES = got.c \ $(top_srcdir)/lib/pack_create.c \ $(top_srcdir)/lib/dial.c \ $(top_srcdir)/lib/bloom.c \ - $(top_srcdir)/lib/murmurhash2.c + $(top_srcdir)/lib/murmurhash2.c \ + $(top_srcdir)/lib/sigs.c EXTRA_DIST = $(top_srcdir)/compat/*.[ch] \ $(top_srcdir)/lib/*.[ch] \ blob - 121994e457f30263580b315f528e4594869907d9 blob + 082d306add812b4b36ff4a52d04ea2c4e5706499 --- gotadmin/Makefile.am +++ gotadmin/Makefile.am @@ -28,7 +28,10 @@ gotadmin_SOURCES = gotadmin.c \ $(top_srcdir)/lib/sha1.c \ $(top_srcdir)/lib/bloom.c \ $(top_srcdir)/lib/murmurhash2.c \ - $(top_srcdir)/lib/worktree_open.c + $(top_srcdir)/lib/worktree_open.c \ + $(top_srcdir)/lib/date.c \ + $(top_srcdir)/lib/buf.c \ + $(top_srcdir)/lib/sigs.c gotadmin_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a EXTRA_DIST = gotadmin.1 blob - bbdfb381160453fb6cdcae5a97db2425cc3b4f3f blob + 8dae4b0721f0c01f068c6f6a8e6039da3698dfe6 --- lib/sigs.c +++ lib/sigs.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include @@ -27,7 +26,6 @@ #include #include #include -#include #include "got_error.h" #include "got_date.h" @@ -35,7 +33,7 @@ #include "got_opentemp.h" #include "got_sigs.h" - +#include "got_compat.h" #include "buf.h" #ifndef MIN blob - 326e02e8f8425ede7eb56a1e36bde7e5c3833e86 blob + 633edbc33bcfb15eb4bfc91ad86feadfb1315f3d --- tog/Makefile.am +++ tog/Makefile.am @@ -44,7 +44,9 @@ tog_SOURCES = tog.c \ $(top_srcdir)/lib/utf8.c \ $(top_srcdir)/lib/dial.c \ $(top_srcdir)/lib/bloom.c \ - $(top_srcdir)/lib/murmurhash2.c + $(top_srcdir)/lib/murmurhash2.c \ + $(top_srcdir)/lib/date.c \ + $(top_srcdir)/lib/sigs.c tog_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a