[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#841017: RFS: openbox/3.5.2-8+deb8u1



On 17.10.2016 01:45 +0200, Adam Borowski wrote:

A stable update.

Reading the bug report for #838326, I don't quite understand why the
severity is so high.  But hey, as the maintainer you probably know better
and it's not me but the SRMs you need to persuade.

The rules for stable updates have changed: the devref still claims one needs
"a truly critical functionality problem" while the SRMs have since relaxed
that to "severity:important, but really it depends".  As this bug claims to
be "important", we may give it a try.

However, you are required to ask the SRMs first.  The proper procedure is
described in developers-reference 5.5.1.  All you're missing is an ok from
the release team: please file a bug on "release.debian.org", we need them to
allow the upload.  Please attach a debdiff between 3.5.2-8 and
3.5.2-8+deb8u1 to that bug.

But here we have an issue: there's already a bug report on
release.debian.org asking for a stable update, even with the same version
(3.5.2-8+deb8u1): #840378.  It's a NMU from Salvatore Bonaccorso fixing a
different problem.  That bug is 6 days old, hasn't been responded to yet.
You guys need to coordinate...


Meow!


Apologise for waiting. I have no time.

Debdiff is attached.

Also I add NMU from Salvatore Bonaccorso. I don't see his changes before.

Mateusz
diff -Nru openbox-3.5.2/debian/changelog openbox-3.5.2/debian/changelog
--- openbox-3.5.2/debian/changelog	2014-10-25 14:39:18.000000000 +0200
+++ openbox-3.5.2/debian/changelog	2016-10-23 18:36:47.000000000 +0200
@@ -1,3 +1,17 @@
+openbox (3.5.2-8+deb8u1) jessie; urgency=medium
+
+  [ Mateusz Łukasik ]
+  * debian/control:
+    +  Add libxcursor-dev to B-D for fix load startup notifications.
+    (Closes: #838326)
+
+  [ Salvatore Bonaccorso ]
+  * Add 808138_Replace-getgrent-with-getgroups.patch patch.
+    Replace getgrent with getgroups for not enumerate all groups at startup.
+    Thanks to Simon <simondobbss@gmail.com> (Closes: #808138)
+
+ -- Mateusz Łukasik <mati75@linuxmint.pl>  Sun, 23 Oct 2016 18:36:47 +0200
+
 openbox (3.5.2-8) unstable; urgency=high
 
   * debian/openbox.install:
diff -Nru openbox-3.5.2/debian/control openbox-3.5.2/debian/control
--- openbox-3.5.2/debian/control	2014-09-23 11:08:38.000000000 +0200
+++ openbox-3.5.2/debian/control	2016-10-15 13:59:38.000000000 +0200
@@ -6,7 +6,7 @@
  libxrender-dev, pkg-config, libglib2.0-dev, libxml2-dev (>= 2.6.0), perl, 
  libxt-dev, libxinerama-dev, libxrandr-dev, libpango1.0-dev, libx11-dev, 
  autoconf, automake (>= 1:1.11), python-xdg, libimlib2-dev, dh-autoreconf, 
- autopoint, librsvg2-dev, libxi-dev
+ autopoint, librsvg2-dev, libxi-dev, libxcursor-dev
 Standards-Version: 3.9.6
 Homepage: http://www.openbox.org
 Vcs-Browser: https://github.com/mati75/openbox-debian
diff -Nru openbox-3.5.2/debian/patches/808138_Replace-getgrent-with-getgroups.patch openbox-3.5.2/debian/patches/808138_Replace-getgrent-with-getgroups.patch
--- openbox-3.5.2/debian/patches/808138_Replace-getgrent-with-getgroups.patch	1970-01-01 01:00:00.000000000 +0100
+++ openbox-3.5.2/debian/patches/808138_Replace-getgrent-with-getgroups.patch	2016-10-23 18:36:04.000000000 +0200
@@ -0,0 +1,63 @@
+>From e0cb404f53c9b21a521ea2f14c8cd66fdfb68ea7 Mon Sep 17 00:00:00 2001
+From: Simon <simondobbss@gmail.com>
+Date: Tue, 15 Dec 2015 15:46:18 +0100
+Subject: [PATCH] Replace getgrent with getgroups. Fixes #5978.
+
+---
+ obt/paths.c | 34 +++++++++++++++++++++-------------
+ 1 file changed, 21 insertions(+), 13 deletions(-)
+
+diff --git a/obt/paths.c b/obt/paths.c
+index 25cb6b0..d526936 100644
+--- a/obt/paths.c
++++ b/obt/paths.c
+@@ -108,25 +108,33 @@ static void find_uid_gid(uid_t *u, gid_t **g, guint *n)
+     const gchar *name;
+     struct group *gr;
+ 
++    gid_t gmain;
++    unsigned int maininc;
++    int i;
++
+     *u = getuid();
+     pw = getpwuid(*u);
+     name = pw->pw_name;
+ 
+-    *g = g_new(gid_t, *n=1);
+-    (*g)[0] = getgid();
+-
+-    while ((gr = getgrent())) {
+-        if (gr->gr_gid != (*g)[0]) { /* skip the main group */
+-            gchar **c;
+-            for (c = gr->gr_mem; *c; ++c)
+-                if (strcmp(*c, name) == 0) {
+-                    *g = g_renew(gid_t, *g, ++(*n)); /* save the group */
+-                    (*g)[*n-1] = gr->gr_gid;
+-                    break;
+-                }
++    gmain = getgid();
++
++    *n = getgroups(0, *g);
++    *g = g_new(gid_t, *n);
++    *n = getgroups(*n, *g);
++
++    /* Check if the effective group ID of the calling process is already
++       included in the returned list. Add it otherwise. */
++    maininc = 0;
++    for (i = 0; i < *n; i++) {
++        if ( (*g)[i] == gmain ) {
++            maininc = 1;
++            break;
+         }
+     }
+-    endgrent();
++    if (!maininc) {
++        *g = g_renew(gid_t, *g, ++(*n));
++        (*g)[*n-1] = gmain;
++    }
+ 
+     qsort(*g, *n, sizeof(gid_t), gid_cmp);
+ }
+-- 
+2.1.4
+
diff -Nru openbox-3.5.2/debian/patches/series openbox-3.5.2/debian/patches/series
--- openbox-3.5.2/debian/patches/series	2014-08-22 22:32:09.000000000 +0200
+++ openbox-3.5.2/debian/patches/series	2016-10-23 18:36:04.000000000 +0200
@@ -11,3 +11,4 @@
 fix_rsvg_missing_include.patch
 update_pl_po.patch
 754207_use-scrot.patch
+808138_Replace-getgrent-with-getgroups.patch

Reply to: