From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: gtkgreet-0.7
Date: Mon, 11 Sep 2023 17:44:55 +0200 [thread overview]
Message-ID: <20230911154455.hTm63bPB0ifq2Jtf8f8NUbJQkGPCchLQuJ4b0HGA6us@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-45947@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 582 bytes --]
There is an updated pull request by cinerea0 against master on the void-packages repository
https://github.com/cinerea0/void-packages gtkgreet
https://github.com/void-linux/void-packages/pull/45947
New package: gtkgreet-0.7
#### Testing the changes
- I tested the changes in this PR: **NO**
---
I've had this and `wlgreet` packaged but not tested for a while. Seeing #45918 spooked me so I'm opening this now. I will test this to my satisfaction and then change the above status.
A patch file from https://github.com/void-linux/void-packages/pull/45947.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gtkgreet-45947.patch --]
[-- Type: text/x-diff, Size: 3694 bytes --]
From 84ac8c8fb0fad629bdf74c64b7f2f4d7faef2766 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Sep 2023 11:44:36 -0400
Subject: [PATCH] New package: gtkgreet-0.7
---
srcpkgs/gtkgreet/patches/32-bit.patch | 31 +++++++++++++++++++
.../patches/update-deprecated-constant.patch | 17 ++++++++++
srcpkgs/gtkgreet/template | 14 +++++++++
3 files changed, 62 insertions(+)
create mode 100644 srcpkgs/gtkgreet/patches/32-bit.patch
create mode 100644 srcpkgs/gtkgreet/patches/update-deprecated-constant.patch
create mode 100644 srcpkgs/gtkgreet/template
diff --git a/srcpkgs/gtkgreet/patches/32-bit.patch b/srcpkgs/gtkgreet/patches/32-bit.patch
new file mode 100644
index 0000000000000..f3221b7d8b914
--- /dev/null
+++ b/srcpkgs/gtkgreet/patches/32-bit.patch
@@ -0,0 +1,31 @@
+# Upstream: https://git.sr.ht/~kennylevinsen/gtkgreet/commit/3471aaaaee4619fd4aded85803b27b4a8dff41a6
+diff --git a/gtkgreet/proto.c b/gtkgreet/proto.c
+index 92619494a7..a527e85552 100644
+--- a/gtkgreet/proto.c
++++ b/gtkgreet/proto.c
+@@ -21,9 +21,13 @@ struct header {
+
+ static int write_req(int fd, struct json_object* req) {
+ const char* reqstr = json_object_get_string(req);
+- uint32_t len = strlen(reqstr);
+- char* headerp = (char*)&len;
+- ssize_t off = 0;
++ size_t len = strlen(reqstr);
++ if (len > 0xFFFFFFFF) {
++ goto error;
++ }
++ uint32_t header = len;
++ char* headerp = (char*)&header;
++ uint32_t off = 0;
+
+ while (off < 4) {
+ ssize_t n = write(fd, &headerp[off], 4-off);
+@@ -51,7 +55,7 @@ static struct json_object* read_resp(int fd) {
+ struct json_object* resp = NULL;
+ char *respstr = NULL;
+ uint32_t len;
+- ssize_t off = 0;
++ uint32_t off = 0;
+
+ while (off < 4) {
+ char* headerp = (char*)&len;
diff --git a/srcpkgs/gtkgreet/patches/update-deprecated-constant.patch b/srcpkgs/gtkgreet/patches/update-deprecated-constant.patch
new file mode 100644
index 0000000000000..322b621738ec8
--- /dev/null
+++ b/srcpkgs/gtkgreet/patches/update-deprecated-constant.patch
@@ -0,0 +1,17 @@
+From 725846edf6a22f495fdbb2972bb559563a90262b Mon Sep 17 00:00:00 2001
+From: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
+Date: Thu, 3 Nov 2022 12:45:49 +0100
+Subject: [PATCH] Update reference to deprecated constant
+diff --git a/gtkgreet/gtkgreet.c b/gtkgreet/gtkgreet.c
+index addad5a..1cbed1d 100644
+--- a/gtkgreet/gtkgreet.c
++++ b/gtkgreet/gtkgreet.c
+@@ -93,7 +93,7 @@ static int gtkgreet_update_clocks_handler(gpointer data) {
+
+ struct GtkGreet* create_gtkgreet() {
+ gtkgreet = calloc(1, sizeof(struct GtkGreet));
+- gtkgreet->app = gtk_application_new("wtf.kl.gtkgreet", G_APPLICATION_FLAGS_NONE);
++ gtkgreet->app = gtk_application_new("wtf.kl.gtkgreet", G_APPLICATION_DEFAULT_FLAGS);
+ gtkgreet->windows = g_array_new(FALSE, TRUE, sizeof(struct Window*));
+ gtkgreet->question_cnt = 1;
+ return gtkgreet;
diff --git a/srcpkgs/gtkgreet/template b/srcpkgs/gtkgreet/template
new file mode 100644
index 0000000000000..46614d487617a
--- /dev/null
+++ b/srcpkgs/gtkgreet/template
@@ -0,0 +1,14 @@
+# Template file for 'gtkgreet'
+pkgname=gtkgreet
+version=0.7
+revision=1
+build_style=meson
+hostmakedepends="pkg-config scdoc"
+makedepends="gtk+3-devel gtk-layer-shell-devel json-c-devel"
+depends="greetd"
+short_desc="Gtk greeter for greetd"
+maintainer="cinerea0 <cinerea0@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://git.sr.ht/~kennylevinsen/gtkgreet"
+distfiles="https://git.sr.ht/~kennylevinsen/gtkgreet/archive/${version}.tar.gz"
+checksum=eb4ba0e1e4f9cf888ce7b932b923f97521c2277032628cfc06bb86fecbad9373
next prev parent reply other threads:[~2023-09-11 15:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-06 16:29 [PR PATCH] " cinerea0
2023-09-11 15:44 ` cinerea0 [this message]
2023-12-11 1:47 ` github-actions
2023-12-12 21:17 ` [PR PATCH] [Updated] " cinerea0
2023-12-12 21:19 ` New package: gtkgreet-0.8 cinerea0
2024-01-06 23:37 ` [PR REVIEW] " classabbyamp
2024-01-07 5:44 ` [PR PATCH] [Updated] " cinerea0
2024-01-07 5:50 ` [PR REVIEW] " cinerea0
2024-01-07 5:58 ` [PR PATCH] [Updated] " cinerea0
2024-01-07 6:03 ` [PR PATCH] [Merged]: " classabbyamp
-- strict thread matches above, loose matches on Subject: below --
2020-04-11 9:40 [PR PATCH] New package: gtkgreet-0.5 travankor
2021-01-25 13:23 ` [PR PATCH] [Updated] New package: gtkgreet-0.7 travankor
2021-01-25 13:39 ` travankor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230911154455.hTm63bPB0ifq2Jtf8f8NUbJQkGPCchLQuJ4b0HGA6us@z \
--to=cinerea0@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).