Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package seatd for openSUSE:Factory checked 
in at 2023-07-19 19:11:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/seatd (Old)
 and      /work/SRC/openSUSE:Factory/.seatd.new.5570 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "seatd"

Wed Jul 19 19:11:04 2023 rev:10 rq:1099473 version:0.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/seatd/seatd.changes      2023-06-30 
19:59:59.514043042 +0200
+++ /work/SRC/openSUSE:Factory/.seatd.new.5570/seatd.changes    2023-07-19 
19:11:10.996758901 +0200
@@ -1,0 +2,11 @@
+Wed Jul 19 09:37:07 UTC 2023 - llyyr <llyyr.pub...@gmail.com>
+
+- Update to 0.8.0
+  * noop: Return seat0 as the seat name
+  * noop: Additional open flags for `open(2)`
+  * noop: initialize initial_setup
+  * drm: Support drm-subtree drivers on FreeBSD
+  * man: document SEATD_VTBOUND
+  * man: add missing arg in -n syntax
+
+-------------------------------------------------------------------

Old:
----
  seatd-0.7.0.obscpio

New:
----
  seatd-0.8.0.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ seatd.spec ++++++
--- /var/tmp/diff_new_pack.WTv6ac/_old  2023-07-19 19:11:11.764763392 +0200
+++ /var/tmp/diff_new_pack.WTv6ac/_new  2023-07-19 19:11:11.768763416 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           seatd
-Version:        0.7.0
+Version:        0.8.0
 Release:        0
 Summary:        Seat management daemon
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.WTv6ac/_old  2023-07-19 19:11:11.792763556 +0200
+++ /var/tmp/diff_new_pack.WTv6ac/_new  2023-07-19 19:11:11.796763580 +0200
@@ -3,7 +3,7 @@
   <service name="obs_scm" mode="disabled">
     <param name="url">https://git.sr.ht/~kennylevinsen/seatd</param>
     <param name="scm">git</param>
-    <param name="revision">0.7.0</param>
+    <param name="revision">0.8.0</param>
     <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
     <param name="versionrewrite-pattern">(.*)\+0</param>
     <param name="versionrewrite-replacement">\1</param>

++++++ seatd-0.7.0.obscpio -> seatd-0.8.0.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seatd-0.7.0/common/drm.c new/seatd-0.8.0/common/drm.c
--- old/seatd-0.7.0/common/drm.c        2022-05-23 22:03:38.000000000 +0200
+++ new/seatd-0.8.0/common/drm.c        2023-07-19 11:18:33.000000000 +0200
@@ -10,7 +10,8 @@
 #define DRM_IOCTL_SET_MASTER  DRM_IO(0x1e)
 #define DRM_IOCTL_DROP_MASTER DRM_IO(0x1f)
 
-#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1)
+#define STRLEN(s)                 ((sizeof(s) / sizeof(s[0])) - 1)
+#define STR_HAS_PREFIX(prefix, s) (strncmp(prefix, s, STRLEN(prefix)) == 0)
 
 int drm_set_master(int fd) {
        return ioctl(fd, DRM_IOCTL_SET_MASTER, 0);
@@ -22,15 +23,18 @@
 
 #if defined(__linux__) || defined(__NetBSD__)
 int path_is_drm(const char *path) {
-       static const char prefix[] = "/dev/dri/";
-       static const int prefixlen = STRLEN(prefix);
-       return strncmp(prefix, path, prefixlen) == 0;
+       if (STR_HAS_PREFIX("/dev/dri/", path))
+               return 1;
+       return 0;
 }
 #elif defined(__FreeBSD__)
 int path_is_drm(const char *path) {
-       static const char prefix[] = "/dev/drm/";
-       static const int prefixlen = STRLEN(prefix);
-       return strncmp(prefix, path, prefixlen) == 0;
+       if (STR_HAS_PREFIX("/dev/dri/", path))
+               return 1;
+       /* Some drivers have /dev/dri/X symlinked to /dev/drm/X */
+       if (STR_HAS_PREFIX("/dev/drm/", path))
+               return 1;
+       return 0;
 }
 #else
 #error Unsupported platform
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seatd-0.7.0/libseat/backend/noop.c 
new/seatd-0.8.0/libseat/backend/noop.c
--- old/seatd-0.7.0/libseat/backend/noop.c      2022-05-23 22:03:38.000000000 
+0200
+++ new/seatd-0.8.0/libseat/backend/noop.c      2023-07-19 11:18:33.000000000 
+0200
@@ -46,13 +46,13 @@
 
 static const char *seat_name(struct libseat *base) {
        (void)base;
-       return "noop";
+       return "seat0";
 }
 
 static int open_device(struct libseat *base, const char *path, int *fd) {
        (void)base;
 
-       int tmpfd = open(path, O_RDWR | O_CLOEXEC);
+       int tmpfd = open(path, O_RDWR | O_NOCTTY | O_NOFOLLOW | O_CLOEXEC | 
O_NONBLOCK);
        if (tmpfd < 0) {
                log_errorf("Failed to open device: %s", strerror(errno));
                return -1;
@@ -115,6 +115,7 @@
                return NULL;
        }
 
+       backend->initial_setup = true;
        backend->seat_listener = listener;
        backend->seat_listener_data = data;
        backend->base.impl = &noop_impl;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seatd-0.7.0/man/seatd.1.scd 
new/seatd-0.8.0/man/seatd.1.scd
--- old/seatd-0.7.0/man/seatd.1.scd     2022-05-23 22:03:38.000000000 +0200
+++ new/seatd-0.8.0/man/seatd.1.scd     2023-07-19 11:18:33.000000000 +0200
@@ -13,7 +13,7 @@
 *-h*
        Show help message and quit.
 
-*-n*
+*-n <fd>*
        FD to notify readiness on. A single newline will be written and the fd
        closed when seatd is ready to serve requests. This is compatible with
        s6's notification protocol.
@@ -41,6 +41,11 @@
 
 The location of the socket for seatd is set at compile-time.
 
+# ENVIRONMENT
+
+*SEATD_VTBOUND*
+       If set to "0", the seat will not be bound to a VT.
+
 # SEE ALSO
 
 The libseat library, *<libseat.h>*, *seatd-launch*(1)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/seatd-0.7.0/meson.build new/seatd-0.8.0/meson.build
--- old/seatd-0.7.0/meson.build 2022-05-23 22:03:38.000000000 +0200
+++ new/seatd-0.8.0/meson.build 2023-07-19 11:18:33.000000000 +0200
@@ -1,7 +1,7 @@
 project(
        'seatd',
        'c',
-       version: '0.7.0',
+       version: '0.8.0',
        license: 'MIT',
        meson_version: '>=0.60.0',
        default_options: [
@@ -22,7 +22,7 @@
        endif
 endif
 
-seatdpath = '@0@/@1@/seatd'.format(get_option('prefix'), get_option('bindir'))
+seatdpath = get_option('prefix') / get_option('bindir') / 'seatd'
 
 cc = meson.get_compiler('c')
 

++++++ seatd.obsinfo ++++++
--- /var/tmp/diff_new_pack.WTv6ac/_old  2023-07-19 19:11:11.912764258 +0200
+++ /var/tmp/diff_new_pack.WTv6ac/_new  2023-07-19 19:11:11.916764282 +0200
@@ -1,5 +1,5 @@
 name: seatd
-version: 0.7.0
-mtime: 1653336218
-commit: a803ba0502cccf147eec7fbcacd11c5b8643c0e0
+version: 0.8.0
+mtime: 1689758313
+commit: 3e9ef69f14f630a719dd464f3c90a7932f1c8296
 

Reply via email to