Try to fix auto-generated gtd-vcs-identifier.h properly.

While here, fix an implicit declaration.
This commit is contained in:
ajacoutot 2018-05-06 09:08:08 +00:00
parent 5e13c708e4
commit a430f89b24
3 changed files with 34 additions and 7 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.22 2018/05/05 19:22:55 jasper Exp $
# $OpenBSD: Makefile,v 1.23 2018/05/06 09:08:08 ajacoutot Exp $
COMMENT= simple task management application
GNOME_PROJECT= gnome-todo
GNOME_VERSION= 3.28.1
REVISION= 0
# GPLv3+
PERMIT_PACKAGE_CDROM= Yes
@ -21,10 +22,4 @@ MODGNOME_TOOLS= desktop-file-utils gobject-introspection \
LIB_DEPENDS= databases/evolution-data-server \
devel/libpeas
# XXX
# Generate this file upfront as it may not be created in time
# due to ninja's randomization.
pre-build:
exec ${SETENV} ${MAKE_ENV} \
${LOCALBASE}/bin/ninja -C ${WRKBUILD} -v src/gtd-vcs-identifier.h
.include <bsd.port.mk>

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-plugins_todoist_gtd-provider-todoist_c,v 1.3 2018/05/06 09:08:08 ajacoutot Exp $
warning: implicit declaration of function 'strptime' is invalid in C99
Index: plugins/todoist/gtd-provider-todoist.c
--- plugins/todoist/gtd-provider-todoist.c.orig
+++ plugins/todoist/gtd-provider-todoist.c
@@ -19,7 +19,7 @@
#define G_LOG_DOMAIN "GtdProviderTodoist"
-#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE 700
#include "gtd-debug.h"
#include "gtd-provider-todoist.h"

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_meson_build,v 1.1 2018/05/06 09:08:08 ajacoutot Exp $
https://gitlab.gnome.org/GNOME/gnome-todo/issues/170
Index: src/meson.build
--- src/meson.build.orig
+++ src/meson.build
@@ -99,6 +99,8 @@ sources += gnome.mkenums(
h_template: enum + '.h.template'
)
+sources += vcs_identifier_h
+
incs = [
top_inc,
include_directories(