Control: tags 972251 + patch Control: tags 972251 + pending Dear maintainer,
I've prepared an NMU for python-line-profiler (versioned as 2.1-2.1) and uploaded it to DELAYED/5. Please feel free to tell me if I should delay it longer. Regards, SR
diff -Nru python-line-profiler-2.1/debian/changelog python-line-profiler-2.1/debian/changelog --- python-line-profiler-2.1/debian/changelog 2018-11-01 02:25:39.000000000 -0700 +++ python-line-profiler-2.1/debian/changelog 2020-10-15 23:00:41.000000000 -0700 @@ -1,3 +1,11 @@ +python-line-profiler (2.1-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Patch: Python 3.9 compatibility, assume gettimeofday() exists and takes 2 + arguments. (Closes: #972251) + + -- Stefano Rivera <stefa...@debian.org> Thu, 15 Oct 2020 23:00:41 -0700 + python-line-profiler (2.1-2) unstable; urgency=medium * Team upload diff -Nru python-line-profiler-2.1/debian/patches/py39-compat.diff python-line-profiler-2.1/debian/patches/py39-compat.diff --- python-line-profiler-2.1/debian/patches/py39-compat.diff 1969-12-31 16:00:00.000000000 -0800 +++ python-line-profiler-2.1/debian/patches/py39-compat.diff 2020-10-15 23:00:41.000000000 -0700 @@ -0,0 +1,32 @@ +Description: Python 3.9 dropped gettimeofday configure checks + In bpo-38068, cPython assumes gettimeofday exists and takes two arguments. + That's a reasonable assumption that we can repeat. +Author: Stefano Rivera <stefa...@debian.org> +Forwarded: https://github.com/pyutils/line_profiler/pull/31 +Bug-Debian: https://bugs.debian.org/972251 + +--- a/timers.c ++++ b/timers.c +@@ -32,10 +32,6 @@ + + #else /* !MS_WINDOWS */ + +-#ifndef HAVE_GETTIMEOFDAY +-#error "This module requires gettimeofday() on non-Windows platforms!" +-#endif +- + #if (defined(PYOS_OS2) && defined(PYCC_GCC)) + #include <sys/time.h> + #else +@@ -48,11 +44,7 @@ + { + struct timeval tv; + PY_LONG_LONG ret; +-#ifdef GETTIMEOFDAY_NO_TZ +- gettimeofday(&tv); +-#else + gettimeofday(&tv, (struct timezone *)NULL); +-#endif + ret = tv.tv_sec; + ret = ret * 1000000 + tv.tv_usec; + return ret; diff -Nru python-line-profiler-2.1/debian/patches/series python-line-profiler-2.1/debian/patches/series --- python-line-profiler-2.1/debian/patches/series 2018-11-01 02:21:39.000000000 -0700 +++ python-line-profiler-2.1/debian/patches/series 2020-10-15 22:58:51.000000000 -0700 @@ -1 +1,2 @@ py37-compat.diff +py39-compat.diff