Bug#859474: Move mutter-restart-helper out to mutter-common

2017-04-03 Thread Mario Sanchez Prada
Package: mutter
Version: 3.22.3-2
Severity: normal

Hi,

At the moment, mutter-restart-helper is included in the mutter package
but this tool can be useful from outside mutter (e.g. GNOME Shell uses
it via Meta.restart() (see [1]), so it would be probably a good idea
to move it to mutter-common instead.

We have been shipping this change in Endless for a while already (see
[2]) and I think it would be nice to have it included in debian, as
any other distro that might want to install just mutter-common would
benefit of that.

Thanks
Mario

[1] https://github.com/GNOME/gnome-shell/blob/d23bd4c4/js/ui/runDialog.js#L282
[2] 
https://github.com/endlessm/mutter/commit/46fa206c67ec8c0db40ed7c8a19b60d17447c152

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.9-200.fc25.x86_64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
(ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages mutter depends on:
ii  gsettings-desktop-schemas  3.22.0-1
ii  libc6  2.24-9
ii  libglib2.0-0   2.50.3-2
ii  libmutter0i3.22.3-2
ii  libx11-6   2:1.6.4-3
ii  libxcomposite1 1:0.4.4-2
ii  mutter-common  3.22.3-2
ii  zenity 3.22.0-1+b1

Versions of packages mutter recommends:
ii  gnome-session [x-session-manager]  3.22.3-1

Versions of packages mutter suggests:
ii  gnome-control-center  1:3.22.2-1
ii  xdg-user-dirs 0.15-2+b1



Bug#561109: apt-get segfaults when system has ran out of ptys

2009-12-14 Thread Mario Sanchez Prada
Package: apt
Version: 0.7.25

As reported in Maemo's bugzilla bug #6153 [1]:


 STEPS TO REPRODUCE THE PROBLEM:
 1. Exhaust system ptys (currently 4 in Maemo Fremantle, so not hard) by 
opening enough osso-xterms
   (or ssh, screen etc sessions).
 2. Try to install some package with apt-get.

 EXPECTED OUTCOME:
 Successful installation, or failing that an error message and graceful exit.

 ACTUAL OUTCOME:
 Nokia-N900-42-11:~# apt-get install ltrace
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 The following NEW packages will be installed:
   ltrace
 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
 Need to get 80.2kB of archives.
 After this operation, 221kB of additional disk space will be used.
 WARNING: The following packages cannot be authenticated!
   ltrace
 Install these packages without verification [y/N]? y
 Get:1 http://repository.maemo.org fremantle/tools/free ltrace
 0.5+svn20070904-0.1maemo1 [80.2kB]
 Fetched 80.2kB in 2s (36.0kB/s)
 Can not write log, openpty() failed (/dev/pts not mounted?)
 Segmentation fault


Providing a patch against revision 1900 in the bzr repository that would
fix this bug (just adds a missing NULL check).

Hope it helps

Mario

[1] https://bugs.maemo.org/show_bug.cgi?id=6153
=== modified file 'apt-pkg/deb/dpkgpm.cc'
--- apt-pkg/deb/dpkgpm.cc	2009-12-10 15:06:40 +
+++ apt-pkg/deb/dpkgpm.cc	2009-12-14 15:32:45 +
@@ -879,7 +879,8 @@
 	const char *s = _(Can not write log, openpty() 
 	  failed (/dev/pts not mounted?)\n);
 	fprintf(stderr, %s,s);
-	fprintf(term_out, %s,s);
+if(term_out)
+  fprintf(term_out, %s,s);
 	master = slave = -1;
 	 }  else {
 	struct termios rtt;