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

Bug#703801: marked as done (tpu: gunicorn/0.14.5-3+deb7u1)



Your message dated Mon, 25 Mar 2013 07:22:52 +0000
with message-id <1364196172.24071.63.camel@jacala.jungle.funky-badger.org>
and subject line Re: Bug#703801: tpu: gunicorn/0.14.5-3+deb7u1
has caused the Debian Bug report #703801,
regarding tpu: gunicorn/0.14.5-3+deb7u1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
703801: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=703801
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: tpu

As discussed with Adam, please approve the attached tpu diff for gunicorn.

The primary fix is the updated patch for dropping guids; however, it also
includes an important fix for switching to dh_python2 which currently
results in no helper being used if built in a minimal chroot, with the
potential for leftover files after removal in Wheezy.


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru gunicorn-0.14.5/debian/changelog gunicorn-0.14.5/debian/changelog
--- gunicorn-0.14.5/debian/changelog	2012-10-04 20:22:11.000000000 +0100
+++ gunicorn-0.14.5/debian/changelog	2013-03-23 20:11:19.000000000 +0000
@@ -1,3 +1,12 @@
+gunicorn (0.14.5-3+deb7u1) testing-proposed-updates; urgency=low
+
+  * Non-maintainer upload.
+  * Backport updated patch 01-drop-supplemental-groups.diff from unstable
+    to avoid exceptions when starting as a non-root user (Closes: #690500)
+  * Properly migrate to dh_python2 (Closes: #690079)
+
+ -- Jonathan Wiltshire <jmw@debian.org>  Sat, 23 Mar 2013 20:03:01 +0000
+
 gunicorn (0.14.5-3) unstable; urgency=medium
 
   * Apply security patch from Vangelis Koukis <vkoukis@grnet.gr> to ensure
diff -Nru gunicorn-0.14.5/debian/patches/01-drop-supplemental-groups.diff gunicorn-0.14.5/debian/patches/01-drop-supplemental-groups.diff
--- gunicorn-0.14.5/debian/patches/01-drop-supplemental-groups.diff	2012-10-04 20:22:11.000000000 +0100
+++ gunicorn-0.14.5/debian/patches/01-drop-supplemental-groups.diff	2013-03-23 20:02:36.000000000 +0000
@@ -1,13 +1,25 @@
 diff --git a/gunicorn/util.py b/gunicorn/util.py
-index e919d53..d0e5642 100644
+index e919d53..a854eb7 100644
 --- a/gunicorn/util.py
 +++ b/gunicorn/util.py
-@@ -146,6 +146,9 @@ def set_owner_process(uid,gid):
+@@ -14,6 +14,7 @@ except ImportError:
+     # Python on Solaris compiled with Sun Studio doesn't have ctypes
+     ctypes = None
+ 
++import errno
+ import fcntl
+ import os
+ import pkg_resources
+@@ -146,6 +147,13 @@ def set_owner_process(uid,gid):
              # groups like on osx or fedora
              os.setgid(-ctypes.c_int(-gid).value)
  
 +        # Also drop supplemental groups
-+        os.setgroups([])
++        try:
++            os.setgroups([])
++        except OSError, e:
++            if e.errno != errno.EPERM:
++                raise
 +
      if uid:
          os.setuid(uid)
diff -Nru gunicorn-0.14.5/debian/rules gunicorn-0.14.5/debian/rules
--- gunicorn-0.14.5/debian/rules	2012-10-04 20:22:11.000000000 +0100
+++ gunicorn-0.14.5/debian/rules	2013-03-23 20:02:05.000000000 +0000
@@ -2,10 +2,9 @@
 
 POD_MANPAGES=$(wildcard debian/manpages/*.pod)
 MANPAGES=$(patsubst %.pod,%.1, $(POD_MANPAGES))
-DEB_PYTHON2_MODULE_PACKAGES=gunicorn
 
 %:
-	dh $@
+	dh $@ --with=python2
 
 %.1: %.pod
 	pod2man $< $@

--- End Message ---
--- Begin Message ---
On Sun, 2013-03-24 at 23:09 +0000, Jonathan Wiltshire wrote:
> On Sun, Mar 24, 2013 at 09:34:51PM +0000, Adam D. Barratt wrote:
> > On Sat, 2013-03-23 at 20:58 +0000, Jonathan Wiltshire wrote:
> > > The primary fix is the updated patch for dropping guids; however, it also
> > > includes an important fix for switching to dh_python2 which currently
> > > results in no helper being used if built in a minimal chroot, with the
> > > potential for leftover files after removal in Wheezy.
> > 
> > Please go ahead.
> 
> Thanks, uploaded.

Approved; thanks.

Regards,

Adam

--- End Message ---

Reply to: