debian/0000755000000000000000000000000012302376613007171 5ustar debian/copyright0000644000000000000000000000116211412064623011120 0ustar This package was originally debianized by Robert Collins on Mon, 14 Aug 2006. It was downloaded from https://launchpad.net/products/tickcount. Upstream Authors: James Henstridge . Copyright 2006 Canonical Limited. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. On Debian systems, the full text of the LGPL can be found in /usr/share/common-licenses/LGPL-2.1 debian/changelog0000644000000000000000000000720512302376613011047 0ustar tickcount (0.1-0ubuntu17) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:54:19 +0000 tickcount (0.1-0ubuntu16) quantal; urgency=low * Rebuild for new armel compiler default of ARMv5t. -- Colin Watson Mon, 08 Oct 2012 23:03:15 +0100 tickcount (0.1-0ubuntu15) precise; urgency=low * Build using dh_python2 -- Matthias Klose Sat, 17 Dec 2011 15:10:57 +0000 tickcount (0.1-0ubuntu14) natty; urgency=low * Rebuild to add support for python 2.7. -- Matthias Klose Fri, 03 Dec 2010 00:15:26 +0000 tickcount (0.1-0ubuntu13) maverick; urgency=low * Fix wrap-around computation and test suite for it: Don't use int constants for a long data type. It doesn't work as expected on 64bit. (lp: #625798) -- Michael Bienia Sat, 28 Aug 2010 14:34:37 +0200 tickcount (0.1-0ubuntu12) maverick; urgency=low * debian/patches/arm-test: Fixed testcase where arch=i686 that caused FTBFS -- Thierry Carrez Mon, 28 Jun 2010 12:11:45 +0200 tickcount (0.1-0ubuntu11) maverick; urgency=low [ Angel Abad ] * debian/rules: Fix PYTHONPATH for python test (LP: #589142) * debian/control: - Add misc:Depends and shlibs:Depends - Fix typos - Remove python:Provides - Bump python-support B-D to >= 0.5.3 * Switch to dpkg-source format 3.0 (quilt) - New patch: arm-test based on Chuck Short's fixes * debian/copyright: Fix license file location * debian/pycompat: Removed * Bump Standards-Version to 3.8.4 [ Stefano Rivera ] * debian/control: Remove abandoned Vcs-Bzr entries * correct whitespace in arm-test patch -- Angel Abad Thu, 03 Jun 2010 14:09:22 +0200 tickcount (0.1-0ubuntu10) lucid; urgency=low * No really fix it for sure this time. -- Chuck Short Mon, 04 Jan 2010 10:15:14 -0500 tickcount (0.1-0ubuntu9) lucid; urgency=low * *Really* fix FTBFS on arm. -- Chuck Short Tue, 29 Dec 2009 16:12:28 -0500 tickcount (0.1-0ubuntu8) lucid; urgency=low * Really fix FTBFS on arm. -- Chuck Short Tue, 29 Dec 2009 13:18:22 -0500 tickcount (0.1-0ubuntu7) lucid; urgency=low * Fix FTBFS on arm. -- Chuck Short Mon, 28 Dec 2009 21:12:54 -0500 tickcount (0.1-0ubuntu6) lucid; urgency=low * test_tickcount.py: Fix testsuite so it runs on ia64. -- Chuck Short Tue, 15 Dec 2009 09:57:59 -0500 tickcount (0.1-0ubuntu5) lucid; urgency=low * test_tickcount.py: Fix testsuite so it doesnt fail when run. * debian/rules: Enable testsuite. -- Chuck Short Mon, 14 Dec 2009 14:05:22 -0500 tickcount (0.1-0ubuntu4) jaunty; urgency=low * No-change rebuild for Python 2.6. -- William Grant Tue, 10 Mar 2009 19:09:54 +1100 tickcount (0.1-0ubuntu3) hardy; urgency=low * debian/copyright: - Modify Maintainer value to match the DebianMaintainerField specification (LP: #176994). - Bump standards version to 3.7.3. - Add Homepage, Vcs-Bzr and Vcs-Browser fields. * Remove the debian/NEWS file. * Fix two typos in debian/copyright. -- Siegfried-Angel Gevatter Pujals (RainCT) Sat, 22 Dec 2007 12:03:22 +0100 tickcount (0.1-0ubuntu2) edgy; urgency=low * Rebuild to add support for python2.5. -- Matthias Klose Fri, 8 Sep 2006 18:28:33 +0000 tickcount (0.1-0ubuntu1) edgy; urgency=low * Initial release. -- Robert Collins Mon, 14 Aug 2006 17:59:52 +1000 debian/compat0000644000000000000000000000000211412064544010365 0ustar 5 debian/patches/0000755000000000000000000000000011441131653010614 5ustar debian/patches/fix_wraparound_computation0000644000000000000000000000317011441131653016212 0ustar Index: tickcount-0.1/tickcount.c =================================================================== --- tickcount-0.1.orig/tickcount.c 2010-08-28 13:38:32.000000000 +0200 +++ tickcount-0.1/tickcount.c 2010-08-28 13:38:55.000000000 +0200 @@ -57,7 +57,7 @@ /* adjust for wrap around */ diff = new - old; if (diff < 0) - diff += UINT_MAX; + diff += ULONG_MAX; return PyInt_FromLong(diff); } Index: tickcount-0.1/test_tickcount.py =================================================================== --- tickcount-0.1.orig/test_tickcount.py 2010-08-28 13:39:16.000000000 +0200 +++ tickcount-0.1/test_tickcount.py 2010-08-28 13:40:21.000000000 +0200 @@ -31,17 +31,17 @@ def test_difference_wrap(self): import struct - # Work out what the maximum sized unsigned C int is. Note that + # Work out what the maximum sized unsigned C long is. Note that # this will differ from the maximum sized Python int on 64-bit # platforms. - sizeof_int = struct.calcsize('I') - uint_max = struct.unpack('I', '\xff' * sizeof_int)[0] + sizeof_long = struct.calcsize('L') + ulong_max = struct.unpack('L', '\xff' * sizeof_long)[0] # create two tick counts that straddle the wrap point - oldcount = uint_max / 2 - 10 - newcount = oldcount + 20 - uint_max + oldcount = ulong_max / 2 - 10 + newcount = oldcount + 20 - ulong_max - self.assertEqual(tickcount.difference(oldcount, newcount), 20) + self.assertEqual(tickcount.difference(oldcount, newcount), 21) def test_suite(): loader = unittest.TestLoader() debian/patches/series0000644000000000000000000000003311441131653012025 0ustar fix_wraparound_computation debian/control0000644000000000000000000000124711673130423010575 0ustar Source: tickcount Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Robert Collins Homepage: https://launchpad.net/tickcount Build-Depends: debhelper (>= 5.0.37.2), cdbs (>= 0.4.43), python-all-dev (>= 2.6.6-3~) Standards-Version: 3.8.4 Package: python-tickcount Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${python:Depends} Description: Python module to access the Python interpreter tickcount Python C extension module giving access to the internal tickcounter of Python. . This is useful for certain forms of profiling or performance analysis. debian/rules0000755000000000000000000000041611673130434010251 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk binary-install/python-tickcount:: PYTHONPATH=$(cdbs_python_destdir)usr/lib/python$(cdbs_python_current_version)/site-packages python test_tickcount.py debian/source/0000755000000000000000000000000011412064623010465 5ustar debian/source/format0000644000000000000000000000001411412072455011675 0ustar 3.0 (quilt) debian/pyversions0000644000000000000000000000000511412064544011326 0ustar 2.4-