Bug#554843: bullding pure binary deb packages for modules which do not depend on dkms

2014-09-17 Thread Zang MingJie
I found this feature is very useful for deploying kernel module to a cluster.

And Christoph's patch works pretty well


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647263: ITP: gpaste -- GPaste is a clipboard management suite for GNOME

2014-03-12 Thread Zang MingJie
Hi Victor:

I'm glad to see the package accepted, thank you.

It is my pleasure to contribute to debian. I have built 3.2.2 because
future version is depending on gnome 3.10, I'm not sure if it is ready in
debian, and I'll try to keep it up.

Regards.

On Tue, Mar 11, 2014 at 11:03 PM, Victor Seva 
linuxman...@torreviejawireless.org wrote:

 3.3 it's been released. I've just upgraded the package [0] to be able
 to use it with current gnome-shell version.

 I've used Zang changes and I will try to polish it if I have time.

 Zang, are you willing to collaborate in get gpaste in Debian?

 Cheers,
 Victor

 [0] https://github.com/linuxmaniac/pkg_gpaste
  http://linuxmaniac.torreviejawireless.org/debian/gpaste/



Bug#740595: Missing dependence gir1.2-notify-0.7

2014-03-03 Thread Zang MingJie
Package: gnome-tweak-tool
Version: 3.10.1-1
Severity: grave

% gnome-tweak-tool
ERROR   : Could not find any typelib for Notify
Traceback (most recent call last):
  File /usr/bin/gnome-tweak-tool, line 84, in module
from gtweak.app import GnomeTweakTool
  File /usr/lib/python2.7/dist-packages/gtweak/app.py, line 24, in module
from gtweak.tweakmodel import TweakModel
  File /usr/lib/python2.7/dist-packages/gtweak/tweakmodel.py, line 23, in 
module
from gtweak.utils import SchemaList, LogoutNotification, Notification
  File /usr/lib/python2.7/dist-packages/gtweak/utils.py, line 31, in module
from gi.repository import Notify
ImportError: cannot import name Notify

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

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gnome-tweak-tool depends on:
ii  gir1.2-gnomedesktop-3.03.8.4-2
ii  gir1.2-gtk-3.0 3.10.7-1
ii  gnome-shell-common 3.8.4-5
ii  gsettings-desktop-schemas  3.8.2-2
ii  python 2.7.5-5
ii  python-gi  3.10.2-2+b1

gnome-tweak-tool recommends no packages.

gnome-tweak-tool suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#730023: ml2 agent support

2013-11-20 Thread Zang MingJie
Package: neutron-plugin-openvswitch-agent
Version: 2013.2-4
Severity: normal

ML2 and OVS share the same agent, but use different configuration files,
(/etc/neutron/plugins/ml2/ml2_conf.ini over
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini)

The openvswith is already deprecated by ml2 in the havana release, but
the package doesn't provide the init script for ml2 agent.

I suggest add a debconf variable to control the agent config file, or
use the one in the neutron-common package.

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

Kernel: Linux 3.10-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages neutron-plugin-openvswitch-agent depends on:
ii  dpkg1.17.1
ii  neutron-common  2013.2-4
ii  openvswitch-switch  1.10.1+git20130627-0ubuntu1
ii  sudo1.8.8-2

Versions of packages neutron-plugin-openvswitch-agent recommends:
ii  openvswitch-datapath-dkms  1.10.1+git20130627-0ubuntu1

neutron-plugin-openvswitch-agent suggests no packages.

-- Configuration Files:
/etc/init.d/neutron-plugin-openvswitch-agent changed:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC=Openstack Neutron OpenVSwitch Plugin Agent
NAME=neutron-openvswitch-agent
DAEMON=/usr/bin/neutron-openvswitch-agent
DAEMON_ARGS=--config-file=/etc/neutron/neutron.conf 
--config-file=/etc/neutron/plugins/ml2/ml2_conf.ini 
--log-file=/var/log/neutron/ovs-agent.log
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
CONF_FILE=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
[ -x $DAEMON ] || exit 0
[ -r /etc/default/$NAME ]  . /etc/default/$NAME
.. /lib/lsb/init-functions
do_start()
{
if [ -x /usr/bin/neutron-ovs-cleanup ] ; then
if [ ! -e /var/run/neutron-ovs-cleanup-performed ] ; then
/usr/bin/neutron-ovs-cleanup
touch /var/run/neutron-ovs-cleanup-performed
fi
fi
start-stop-daemon --start --background --quiet --chuid neutron:neutron 
--make-pidfile --pidfile $PIDFILE --startas $DAEMON --test  /dev/null \
|| return 1
start-stop-daemon --start --background --quiet --chuid neutron:neutron 
--make-pidfile --pidfile $PIDFILE --startas $DAEMON -- \
$DAEMON_ARGS \
|| return 2
}
do_stop()
{
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile 
$PIDFILE
RETVAL=$?
rm -f $PIDFILE
return $RETVAL
}
case $1 in
  start)
log_daemon_msg Starting $DESC $NAME
do_start
case $? in
0|1) log_end_msg 0 ;;
2) log_end_msg 1 ;;
esac
  ;;
  stop)
log_daemon_msg Stopping $DESC $NAME
do_stop
case $? in
0|1) log_end_msg 0 ;;
2) log_end_msg 1 ;;
esac
;;
  status)
   status_of_proc $DAEMON $NAME  exit 0 || exit $?
   ;;
  restart|force-reload)
log_daemon_msg Restarting $DESC $NAME
do_stop
case $? in
  0|1)
do_start
case $? in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
*) log_end_msg 1 ;; # Failed to start
esac
;;
  *)
# Failed to stop
log_end_msg 1
;;
esac
;;
  *)
echo Usage: $SCRIPTNAME {start|stop|status|restart|force-reload} 2
exit 3
;;
esac
:


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#647263: ITP: gpaste -- GPaste is a clipboard management suite for GNOME

2013-05-31 Thread Zang MingJie
GPaste 3.0 has been released, I have upgraded the package

http://debian.kghost.info/pool/main/g/gpaste/


Bug#675913: ldirectord failed to start, RFC2553 compatible getaddrinfo/getnameinfo

2012-06-04 Thread Zang MingJie
Package: resource-agents
Severity: grave
Tags: upstream patch

ldirectord failed to start, with following error:

Subroutine main::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::unpack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm
line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::pack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060
Subroutine main::unpack_sockaddr_in6 redefined at /usr/sbin/ldirectord line
3060
Subroutine main::sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060
Subroutine main::pack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::unpack_sockaddr_in6 redefined at
/usr/share/perl/5.14/Exporter.pm line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.14/Exporter.pm
line 67.
 at /usr/sbin/ldirectord line 831
Subroutine main::pack_sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060
Subroutine main::unpack_sockaddr_in6 redefined at /usr/sbin/ldirectord line
3060
Subroutine main::sockaddr_in6 redefined at /usr/sbin/ldirectord line 3060

After comment out `use Socket6;`, got following error:

Bareword NI_NUMERICHOST not allowed while strict subs in use at
/usr/sbin/ldirectord line 5046.
Bareword NI_NUMERICSERV not allowed while strict subs in use at
/usr/sbin/ldirectord line 5046.
Execution of /usr/sbin/ldirectord aborted due to compilation errors.

Additional dependency required:
libsocket-getaddrinfo-perl



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (300, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: short summary of the patch
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 resource-agents (1:3.9.2-5) unstable; urgency=high
 .
   * debian/control: Fix the Conflicts and Replaces lines of resource-agents
 to make sure that cluster-agents and resource-agents are mutually
 exclusive. Setting the urgency to high because this bug keeps people
 from running the whole clusterstack (Closes: #646110)
   * debian/patches/ocf-asterisk: Include the Asterisk PBX OCF resource agent
 written by Florian Haas, Andreas Kurz and me, sponsored by hastexo
Author: Martin Loschwitz madk...@debian.org
Bug-Debian: http://bugs.debian.org/646110

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: vendor|upstream|other, url of original patch
Bug: url in upstream bugtracker
Bug-Debian: http://bugs.debian.org/bugnumber
Bug-Ubuntu: https://launchpad.net/bugs/bugnumber
Forwarded: no|not-needed|url proving that it has been forwarded
Reviewed-By: name and email of someone who approved the patch
Last-Update: -MM-DD

Index: resource-agents-3.9.2/ldirectord/ldirectord.in
===
--- resource-agents-3.9.2.orig/ldirectord/ldirectord.in	2012-06-04 13:24:40.0 +0800
+++ resource-agents-3.9.2/ldirectord/ldirectord.in	2012-06-04 14:16:33.994237831 +0800
@@ -828,7 +828,8 @@
 #use English;
 #use Time::HiRes qw( gettimeofday tv_interval );
 use Socket;
-use Socket6;
+use Socket::GetAddrInfo qw( getaddrinfo getnameinfo NI_NUMERICHOST NI_NUMERICSERV NI_NAMEREQD );
+#use Socket6;
 use Sys::Hostname;
 use POSIX qw(setsid :sys_wait_h);
 use Sys::Syslog qw(:DEFAULT setlogsock);
@@ -5039,17 +5040,21 @@
 	if ($name =~ /\[(.*)\]/) {
 		$name = $1;
 	}
-	my @host = getaddrinfo($name, 0, $af);
-	if (!defined($host[3])) {
-		return undef;
-	}
-	my @ret = getnameinfo($host[3], NI_NUMERICHOST | NI_NUMERICSERV);
-	if ($host[0] == AF_INET6) {
-		return [$ret[0]];
-	}
-	else {
-		return $ret[0];
+	my %hints = ( family = $af );
+	my ( $err, @res ) = getaddrinfo($name, 0, \%hints);
+	return undef if ($err);
+	while( my $ai = shift @res ) {
+		my ( $err, $hostname, $servicename ) = getnameinfo( $ai-{addr} );
+		if (!$err) {
+			if ($ai-{family} == AF_INET6) {
+return [$hostname];
+			}
+			else {
+return $hostname;
+			}
+		}
 	}
+	return undef;
 }
 
 # ld_gethostbyaddr
@@ -5064,13 +5069,13 @@
 	my ($ip)=(@_);
 
 	$ip = ld_strip_brackets($ip);
-	my @host = getaddrinfo($ip,0);
-	if (!defined($host[3])) {
-		return undef;
+	my (