diff --git a/devel/got/Makefile b/devel/got/Makefile index df3523c3f2bb..46c5d76e224a 100644 --- a/devel/got/Makefile +++ b/devel/got/Makefile @@ -1,34 +1,35 @@ PORTNAME= got DISTVERSION= 0.93 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://gameoftrees.org/releases/ MAINTAINER= naddy@FreeBSD.org COMMENT= Game of Trees version control system WWW= https://gameoftrees.org LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENCE USES= uidfix CONFLICTS_INSTALL= p5-App-GitGot # Insert #include "openbsd-compat.h" into each source file, # after the <...> includes and before the "..." ones. n= ${.newline} post-extract: @${FIND} ${WRKSRC} -name '*.[cy]' -exec \ ${REINPLACE_CMD} '1,/^#include "/{ \ /^#include "/i\$n#include "openbsd-compat.h"\$n$n}' \ {} + ${CP} -R ${FILESDIR}/openbsd-compat ${WRKSRC} # The regression test suite requires: # installed got # installed git # ssh to 127.0.0.1 regress: @(cd ${WRKSRC}/regress && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} regress) .include diff --git a/devel/got/files/patch-lib_repository.c b/devel/got/files/patch-lib_repository.c new file mode 100644 index 000000000000..68b194262533 --- /dev/null +++ b/devel/got/files/patch-lib_repository.c @@ -0,0 +1,11 @@ +--- lib/repository.c.orig 2023-09-29 20:30:16 UTC ++++ lib/repository.c +@@ -947,6 +947,8 @@ got_repo_remote_repo_dup(struct got_remote_repo **newp + + new->mirror_references = repo->mirror_references; + ++ new->fetch_all_branches = repo->fetch_all_branches; ++ + new->nfetch_branches = repo->nfetch_branches; + if (repo->fetch_branches) { + new->fetch_branches = calloc(repo->nfetch_branches,