Source: libsamplerate Version: 0.1.8-7 Severity: important Tags: patch User: [email protected] Usertags: hurd
Hi, libsamplerate is marked as out-of-date and fails to build from source on GNU/Hurd due to that the time resolution in GNU/Hurd is 10 msec not 1 usec as for other systems. The attached patch hurd.patch for the throughput test solves this problem. Additionally when rebuilding the file configure disappears with the clean target. The patch rules.patch solves this problem by creating a configure target and issuing autogen.sh if that file does not exist. Thanks!
--- libsamplerate-0.1.8.orig/debian/rules 2014-01-29 08:04:40.000000000 +0100 +++ libsamplerate-0.1.8/debian/rules 2014-07-01 15:20:08.000000000 +0200 @@ -15,6 +15,9 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_ INSTALL_PROGRAM += -s endif +configure: + [ ! -f configure ] && ./autogen.sh + config.status: configure dh_testdir dh_autoreconf
Index: libsamplerate-0.1.8/tests/throughput_test.c =================================================================== --- libsamplerate-0.1.8.orig/tests/throughput_test.c +++ libsamplerate-0.1.8/tests/throughput_test.c @@ -67,7 +67,11 @@ throughput_test (int converter, long bes total_frames += src_data.output_frames_gen ; clock_time = clock () - start_time ; +#ifdef __GNU__ /* Clock resolution is 10ms on GNU/Hurd */ + duration = (10000.0 * clock_time) / CLOCKS_PER_SEC ; +#else duration = (1.0 * clock_time) / CLOCKS_PER_SEC ; +#endif } while (duration < 3.0) ;

