diff -Nru codecgraph-20120114/debian/changelog codecgraph-20120114/debian/changelog --- codecgraph-20120114/debian/changelog 2019-07-10 12:22:03.000000000 +0000 +++ codecgraph-20120114/debian/changelog 2019-09-11 07:18:06.000000000 +0000 @@ -1,3 +1,12 @@ +codecgraph (20120114-5) unstable; urgency=medium + + * Add a patch and modifications for Python 3 transition + (Closes: #936315) + * Change the maintainer's email to kengyu@debian.org + * Bump Standards-Version to 4.4.0 + + -- Keng-Yu Lin Wed, 11 Sep 2019 15:18:06 +0800 + codecgraph (20120114-4) unstable; urgency=low * Bump Standards-Version to 4.3.0 diff -Nru codecgraph-20120114/debian/control codecgraph-20120114/debian/control --- codecgraph-20120114/debian/control 2019-07-10 12:22:03.000000000 +0000 +++ codecgraph-20120114/debian/control 2019-09-11 07:18:06.000000000 +0000 @@ -1,14 +1,14 @@ Source: codecgraph Section: sound Priority: optional -Maintainer: Keng-Yu Lin -Build-Depends: debhelper (>= 11), python (>= 2.6.6-3~), dh-python -Standards-Version: 4.3.0 +Maintainer: Keng-Yu Lin +Build-Depends: debhelper (>= 12), dh-python, python3:any | python3-all:any | python3-dev:any | python3-all-dev:any | dh-sequence-python3 +Standards-Version: 4.4.0 Homepage: http://helllabs.org/codecgraph/ Package: codecgraph Architecture: all -Depends: ${misc:Depends}, ${python:Depends}, graphviz +Depends: ${misc:Depends}, ${python3:Depends}, graphviz Description: Generates graphviz graphs from HDA-Intel codec information Codecgraph is a tool to generate a graph based on the ALSA description of a High Definition Audio codec. The generated graph depicts the HDA diff -Nru codecgraph-20120114/debian/patches/series codecgraph-20120114/debian/patches/series --- codecgraph-20120114/debian/patches/series 2011-06-29 15:34:43.000000000 +0000 +++ codecgraph-20120114/debian/patches/series 2019-09-11 06:44:13.000000000 +0000 @@ -1,2 +1,3 @@ avoid-usr-local-in-Makefile.patch move-py-file-to-usr-share.patch +transition-to-python3.patch diff -Nru codecgraph-20120114/debian/patches/transition-to-python3.patch codecgraph-20120114/debian/patches/transition-to-python3.patch --- codecgraph-20120114/debian/patches/transition-to-python3.patch 1970-01-01 00:00:00.000000000 +0000 +++ codecgraph-20120114/debian/patches/transition-to-python3.patch 2019-09-11 07:11:17.000000000 +0000 @@ -0,0 +1,53 @@ +--- codecgraph-20120114.orig/codecgraph.py ++++ codecgraph-20120114/codecgraph.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + # + # Script to generate graphviz graphs from HDA-Intel codec information + # +@@ -50,7 +50,7 @@ + yield parse_item(linelvl, lines) + + def coloravg(a, b, v): +- r = tuple([int(a[i]*(1-v) + b[i]*v) for i in 0,1,2]) ++ r = tuple(list(map(lambda i:int(a[i]*(1-v) + b[i]*v), [0,1,2]))) + return r + + def formatcolor(c): +@@ -65,8 +65,8 @@ + + def set_values(self, values): + self.values = values +- self.gainvalues = [v & 0x7f for v in values] +- self.mutevalues = [(v & 0x80) <> 0 for v in values] ++ self.gainvalues = list(map(lambda v:v & 0x7f, values)) ++ self.mutevalues = list(map(lambda v:(v & 0x80) != 0, values)) + + def color(self): + if True in self.mutevalues: +@@ -287,7 +287,7 @@ + + def label(self): + r = '0x%02x' % (self.nid) +- print '// %r' % (self.fields) ++ print('// %r' % (self.fields)) + pdef = self.fields.get('Pin Default') + if pdef: + pdef,subdirs = pdef +@@ -474,11 +474,11 @@ + i.new_output(n.nid) + + def dump(self): +- print "Codec: %s" % (self.fields['Codec']) +- print "Nodes: %d" % (len(self.nodes)) ++ print("Codec: %s" % (self.fields['Codec'])) ++ print("Nodes: %d" % (len(self.nodes))) + for n in self.nodes.values(): +- print "Node: 0x%02x" % (n.nid), +- print " %d conns" % (n.num_inputs) ++ print("Node: 0x%02x" % (n.nid),) ++ print(" %d conns" % (n.num_inputs)) + + def dump_graph(self, f): + f.write('digraph {\n') diff -Nru codecgraph-20120114/debian/rules codecgraph-20120114/debian/rules --- codecgraph-20120114/debian/rules 2015-06-02 06:25:02.000000000 +0000 +++ codecgraph-20120114/debian/rules 2019-09-11 07:18:06.000000000 +0000 @@ -1,3 +1,3 @@ #!/usr/bin/make -f %: - dh $@ --with python2 + dh $@ --with python3