devel/got: update to 0.77

No significant user-visible changes.
This commit is contained in:
Christian Weisgerber 2022-10-24 21:17:19 +00:00
parent fa1bb6c2f3
commit d0546eb107
4 changed files with 19 additions and 10 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= got
PORTVERSION= 0.76
PORTVERSION= 0.77
CATEGORIES= devel
MASTER_SITES= https://gameoftrees.org/releases/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1663960911
SHA256 (got-0.76.tar.gz) = a2d735cbbf4537bac728d87e345e0458d7fa45f51a7533226ac1da7879a39350
SIZE (got-0.76.tar.gz) = 777980
TIMESTAMP = 1666621785
SHA256 (got-0.77.tar.gz) = de2a1361c9cac212632f140c123871c7bdb07dbfb616a685032a137936d08456
SIZE (got-0.77.tar.gz) = 830525

View File

@ -1,14 +1,14 @@
--- libexec/got-index-pack/got-index-pack.c.orig 2022-06-19 18:47:42 UTC
--- libexec/got-index-pack/got-index-pack.c.orig 2022-10-20 14:40:52 UTC
+++ libexec/got-index-pack/got-index-pack.c
@@ -15,6 +15,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/capsicum.h>
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/stat.h>
#include <sys/time.h>
@@ -1020,6 +1021,11 @@ main(int argc, char **argv)
#include <sys/mman.h>
@@ -110,6 +111,11 @@ main(int argc, char **argv)
/* revoke access to most system calls */
if (pledge("stdio recvfd", NULL) == -1) {
err = got_error_from_errno("pledge");

View File

@ -1,9 +1,18 @@
--- regress/cmdline/common.sh.orig 2021-03-22 10:05:11 UTC
--- regress/cmdline/common.sh.orig 2022-08-23 09:11:50 UTC
+++ regress/cmdline/common.sh
@@ -26,6 +26,20 @@ export GOT_TEST_ROOT="/tmp"
@@ -27,6 +27,29 @@ export GOT_IGNORE_GITCONFIG=1
export MALLOC_OPTIONS=S
+# work around the fix for CVE-2022-39253 in Git 2.38.1
+git()
+(
+ if [ "$1" = submodule ]; then
+ set - -c protocol.file.allow=always "$@"
+ fi
+ exec git "$@"
+)
+
+# compat wrapper
+sed()
+(