git: 7d39e9babc9a - main - x11/gtklock: update to 5.0.0

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 28 Oct 2026 21:54:40 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7d39e9babc9a4cb1650080613b341df3c972f3d4

commit 7d39e9babc9a4cb1650080613b341df3c972f3d4
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2026-10-27 21:38:57 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2026-10-28 21:54:03 +0000

    x11/gtklock: update to 5.0.0
    
    Changes:        https://github.com/jovanlanik/gtklock/releases/tag/v5.0.0
    Reported by:    GitHub (watch releases)
---
 x11/gtklock/Makefile                  |  2 +-
 x11/gtklock/distinfo                  |  6 +++---
 x11/gtklock/files/patch-meson.build   | 13 -------------
 x11/gtklock/files/patch-src_gtklock.c | 26 ++++++++++++++++++++++++++
 4 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/x11/gtklock/Makefile b/x11/gtklock/Makefile
index 232a4f4d34f0..7c0400f52baa 100644
--- a/x11/gtklock/Makefile
+++ b/x11/gtklock/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gtklock
 DISTVERSIONPREFIX=	v
-DISTVERSION=	4.0.0
+DISTVERSION=	5.0.0
 CATEGORIES=	x11 wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
diff --git a/x11/gtklock/distinfo b/x11/gtklock/distinfo
index 2ea5ec835e23..dd0047bf872b 100644
--- a/x11/gtklock/distinfo
+++ b/x11/gtklock/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1729542593
-SHA256 (jovanlanik-gtklock-v4.0.0_GH0.tar.gz) = db20bf27bd5dd01901ea1753c89c170777dd7cf8fca19130cf90f5f4e3fb9633
-SIZE (jovanlanik-gtklock-v4.0.0_GH0.tar.gz) = 57368
+TIMESTAMP = 1793137137
+SHA256 (jovanlanik-gtklock-v5.0.0_GH0.tar.gz) = 018c50cf1d7b626f823e797750e5b304511b3b359e7277e8abb3383c11e7aed9
+SIZE (jovanlanik-gtklock-v5.0.0_GH0.tar.gz) = 59254
diff --git a/x11/gtklock/files/patch-meson.build b/x11/gtklock/files/patch-meson.build
deleted file mode 100644
index 9e3a66b7aa3b..000000000000
--- a/x11/gtklock/files/patch-meson.build
+++ /dev/null
@@ -1,13 +0,0 @@
-meson.build:19:6: ERROR: Dependency "pam" not found, tried pkgconfig
-
---- meson.build.orig	2024-04-18 18:31:22 UTC
-+++ meson.build
-@@ -16,7 +16,7 @@ gmodule_export = dependency('gmodule-export-2.0')
- gtk = dependency('gtk+-3.0')
- gtk_session_lock = dependency('gtk-session-lock-0')
- gmodule_export = dependency('gmodule-export-2.0')
--pam = dependency('pam')
-+pam = meson.get_compiler('c').find_library('pam')
- 
- dependencies = [
-   gtk,
diff --git a/x11/gtklock/files/patch-src_gtklock.c b/x11/gtklock/files/patch-src_gtklock.c
new file mode 100644
index 000000000000..c89a7e6203da
--- /dev/null
+++ b/x11/gtklock/files/patch-src_gtklock.c
@@ -0,0 +1,26 @@
+_POSIX_C_SOURCE requires an argument unlike _POSIX_SOURCE
+
+In file included from ../src/gtklock.c:7:
+In file included from /usr/local/include/glib-2.0/glib-unix.h:30:
+In file included from /usr/include/unistd.h:35:
+In file included from /usr/include/sys/types.h:40:
+In file included from /usr/include/sys/cdefs.h:504:
+/usr/include/sys/_visible.h:73:49: error: invalid token at start of a preprocessor expression
+   73 | #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE == 1
+      |                                                 ^
+/usr/include/sys/_visible.h:79:49: error: invalid token at start of a preprocessor expression
+   79 | #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE == 2
+      |                                                 ^
+[...]
+
+--- src/gtklock.c.orig	2026-10-27 21:38:57 UTC
++++ src/gtklock.c
+@@ -3,7 +3,7 @@
+ 
+ // gtklock application
+ 
+-#define _POSIX_C_SOURCE
++#define _POSIX_SOURCE
+ #include <glib-unix.h>
+ #include <gtk/gtk.h>
+