pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/libportal
Module Name: pkgsrc
Committed By: tnn
Date: Sat May 10 12:26:33 UTC 2025
Modified Files:
pkgsrc/devel/libportal: distinfo
Added Files:
pkgsrc/devel/libportal/patches: patch-libportal_notification.c
Log Message:
libportal: fix build on netbsd-9
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/libportal/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/libportal/patches/patch-libportal_notification.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/libportal/distinfo
diff -u pkgsrc/devel/libportal/distinfo:1.1 pkgsrc/devel/libportal/distinfo:1.2
--- pkgsrc/devel/libportal/distinfo:1.1 Mon May 5 07:28:09 2025
+++ pkgsrc/devel/libportal/distinfo Sat May 10 12:26:32 2025
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2025/05/05 07:28:09 tnn Exp $
+$NetBSD: distinfo,v 1.2 2025/05/10 12:26:32 tnn Exp $
BLAKE2s (libportal-0.9.1.tar.xz) = 319c3f9cc545b90efa3e1c35a6a642cf4671b0e0fa9c89743860b8fab4ded3f8
SHA512 (libportal-0.9.1.tar.xz) = 445f0c9295220668123b9b3503bb5e75edef3ea939d6f28b159c0ded2f017b35b35e8a6013f550ac6a1f8a5fb9f04c93ce5ced39694bd14731da19172649c895
Size (libportal-0.9.1.tar.xz) = 108572 bytes
+SHA1 (patch-libportal_notification.c) = 0fb88ff9fd52f8d59888090273c4b12f85e6fcf9
Added files:
Index: pkgsrc/devel/libportal/patches/patch-libportal_notification.c
diff -u /dev/null pkgsrc/devel/libportal/patches/patch-libportal_notification.c:1.1
--- /dev/null Sat May 10 12:26:33 2025
+++ pkgsrc/devel/libportal/patches/patch-libportal_notification.c Sat May 10 12:26:32 2025
@@ -0,0 +1,32 @@
+$NetBSD: patch-libportal_notification.c,v 1.1 2025/05/10 12:26:32 tnn Exp $
+
+NetBSD 9 does not have memfd_create(2), so just fail the call.
+
+--- libportal/notification.c.orig 2025-05-09 21:03:04.457028567 +0000
++++ libportal/notification.c
+@@ -82,7 +82,12 @@ bytes_to_memfd (const gchar *name,
+ gpointer shm;
+ gsize bytes_len;
+
++#ifdef MFD_ALLOW_SEALING
+ fd = memfd_create (name, MFD_ALLOW_SEALING);
++#else
++ fd = -1;
++ errno = ENOSYS;
++#endif
+ if (fd == -1)
+ {
+ int saved_errno = errno;
+@@ -328,7 +333,12 @@ parse_media (GVariant *media,
+ {
+ g_autofd int fd = -1;
+
++#ifdef MFD_ALLOW_SEALING
+ fd = memfd_create ("notification-media", MFD_ALLOW_SEALING);
++#else
++ fd = -1;
++ errno = ENOSYS;
++#endif
+ if (fd == -1)
+ {
+ int saved_errno = errno;
Home |
Main Index |
Thread Index |
Old Index