head 1.3; access; symbols pkgsrc-2023Q4:1.1.0.24 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.22 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.20 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.18 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.16 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.14 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.12 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.10 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.8 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.6 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.4 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.2 pkgsrc-2021Q1-base:1.1; locks; strict; comment @ * @; 1.3 date 2026.04.17.19.14.28; author vins; state Exp; branches; next 1.2; commitid aX8XaKVUw56PvlCG; 1.2 date 2024.02.11.14.47.08; author vins; state dead; branches; next 1.1; commitid pfztCSOMtziXB1YE; 1.1 date 2021.01.29.20.35.11; author ryoon; state Exp; branches; next ; commitid AYszevAK02rcaFFC; desc @@ 1.3 log @devel/got: update to 0.124 # upstream changes (since 0.120) * got 0.124; 2026-04-13 - make the chroot path directive in gotwebd.conf actually work - fix a segfault in tog while using the & search feature - plug a tree object leak in the gotd repo_write process - fix gotd wrongly complaining about a missing gotsys.conf in pack files - expand tabs in log messages displayed by tog diff to prevent misalignment - prevent non-root users from blocking gotctl reload requests - plug a memory leak in got-read-commit - allow UTF-8 in gotsys.conf site owner names and repository descriptions - reject non-UTF-8-encoded reference names in gotsys.conf - make gotwebd display logged-in usernames in case of group-membership auth * got 0.123; 2026-02-25 - make gotsys-write-conf configure clone-urls for all accessible repositories - ensure visitors see the repository index page after logging into gotwebd - make 'gotadmin cleanup' run even if HEAD points at a non-existent branch - gotsys.conf.5 and got.1 wording and markup fixes - replace obsolete tmppath pledge in got-notify-http with wpath+cpath & unveil - avoid a malloc/free dance per parsed tree entry in got-read-pack - stop using the pack delta-cache in got-read-pack, cache-less is faster here - fix double-free in error path of the 'gotadmin pack' commit coloring phase - store first-level object_idset hash table entries inline to avoid malloc/free - avoid doing asprintf/free per tree entry in got_pack_load_tree_entries() - avoid a per tree-entry memcpy() in got-read-pack enumerate_tree() - avoid deltifying packed delta-base objects to speed up pack file generation - cache fewer but larger deltas in delta-cache to speed up got-index-pack * got 0.122; 2026-02-10 - fix gotd/gotsys-check trying to parse gotsys.conf from a non-zero file offset - fix setting of a custom HEAD reference during repository creation by gotsysd - tweak gotwebd's Content-Security-Policy (CSP) to allow javascript in websites - fix CSP-violating URL-paths to gotwebd static assets in generated HTML - document gotwebd's Content-Security-Policy in gotwebd.conf.5 - fix gotwebd serving websites from a branch other than HEAD - add a per-repository clone_url option to gotwebd.conf - make gotsys-write-conf set the clone_url option in gotwebd.conf - make 'tog diff' indent log messages above patches for safety - gotweb can now show SSH host key fingerprints for clone URLs and login hints - make gotsys-write-conf add ssh host key fingerprints to /etc/gotwebd.conf - only display the "Clone URL:" label if there is a clone URL to display - fix overflow CSS for gotwebd clone URL - scope gotwebd authentication cookies to gotweb URL root path instead of "/" - make gotwebd display the authenticated user name while logged in - provide a link which can be used to log out when logged into gotwebd * got 0.121; 2026-01-31 - plug fulltext delta cache memory leaks; found by otto malloc - make gotwebd serve its own static files if not they are not served by httpd - avoid deleting local HEAD and "refs/got/" refs during 'got fetch -d' - hint at PASSWDSKIP for security(8) in gotsh.1 - fix bogus 'got histedit' error when deleting files which do not exist on disk - standardize -h option exit status code across all commands - gotwebd: stop reading from client once request has been parsed; fixes hangs - gotwebd: add support for serving static web sites from Git repositories - gotwebd: fix login links when gotwebd is not served at the root URL location - gotwebd: add support for custom mime types, like in httpd.conf - gotwebd: allow for displaying non-default SSH port numbers in login hints - gotwebd: prepend 64 bits of randomness to login token data - gotwebd: stop gracefully when a TERM signal is received - remove undocumented support for macros from gotsys.conf parse.y - make it possible to set repository descriptions in gotwebd.conf - add gotwebctl, a utility which can be used to control gotwebd - fix gotsys.conf syntax check for empty hmac secrets - allow gotsysd to configure and restart gotwebd - remove gotsys-sshdconfig; gotsysd no longer modifies /etc/ssh/sshd_config - improve syntax error handling in gotsysd.conf, gotwebd.conf, and gotd.conf @ text @$NetBSD$ The userptr for panels is of type (char*), so add appropriate type casts. --- tog/tog.c.orig 2026-04-17 18:18:57.654265899 +0000 +++ tog/tog.c @@@@ -928,7 +928,7 @@@@ view_open(int nlines, int ncols, int beg } view->panel = new_panel(view->window); if (view->panel == NULL || - set_panel_userptr(view->panel, view) != OK) { + set_panel_userptr(view->panel, (char*)view) != OK) { view_close(view); return NULL; } @@@@ -1049,7 +1049,7 @@@@ view_border(struct tog_view *view) if (panel == NULL) return; - view_above = panel_userptr(panel); + view_above = (const struct tog_view *)panel_userptr(panel); if (view->mode == TOG_VIEW_SPLIT_HRZN) mvwhline(view->window, view_above->begin_y - 1, view->begin_x, ACS_HLINE, view->ncols); @ 1.2 log @got: use devel/got-portable to update to v0.95 Bring this package in sync with upstream by relying on its portable counterpart found at devel/got-portable. Practically speaking, we're renaming devel/got-portable to devel/got and making it supersede the former of the two. The previous devel/got package, an independent port of Game of Trees to NetBSD by @@ryoon, predating the official portable release, gets hereby silently deleted along with this commit. For reference, see: https://mail-index.netbsd.org/pkgsrc-users/2024/01/18/msg038795.html @ text @d1 1 a1 1 $NetBSD: patch-tog_tog.c,v 1.1 2021/01/29 20:35:11 ryoon Exp $ d3 4 a6 1 --- tog/tog.c.orig 2020-12-27 09:14:30.000000000 +0000 d8 12 a19 1 @@@@ -20,9 +20,13 @@@@ d21 5 a25 24 #include #include +#if !defined(_XOPEN_SOURCE_EXTENDED) #define _XOPEN_SOURCE_EXTENDED +#endif #include +#if !defined(_XOPEN_SOURCE_EXTENDED) #undef _XOPEN_SOURCE_EXTENDED +#endif #include #include #include @@@@ -838,7 +842,11 @@@@ view_input(struct tog_view **new, int *d if (errcode) return got_error_set_errno(errcode, "pthread_mutex_unlock"); +#if defined(__NetBSD__) + sched_yield(); +#else pthread_yield(); +#endif errcode = pthread_mutex_lock(&tog_mutex); if (errcode) return got_error_set_errno(errcode, @ 1.1 log @devel/got: import got-0.48 Game of Trees (Got) is a version control system which prioritizes ease of use and simplicity over flexibility. @ text @d1 1 a1 1 $NetBSD$ @