New Upstream Snapshot - plfit
Ready changes
Summary
Merged new upstream version: 0.9.4+git20220909.1.6de5b14+ds (was: 0.9.4+ds).
Resulting package
Built on 2023-01-20T05:22 (took 6m23s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots libplfit-devapt install -t fresh-snapshots libplfit0-dbgsymapt install -t fresh-snapshots libplfit0apt install -t fresh-snapshots plfit-dbgsymapt install -t fresh-snapshots plfit-docapt install -t fresh-snapshots plfitapt install -t fresh-snapshots python3-plfit-dbgsymapt install -t fresh-snapshots python3-plfit
Diff
diff --git a/debian/changelog b/debian/changelog
index 5a33cb6..c7daa79 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+plfit (0.9.4+git20220909.1.6de5b14+ds-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Fri, 20 Jan 2023 05:17:16 -0000
+
plfit (0.9.4+ds-1) unstable; urgency=medium
* New upstream minor version.
diff --git a/debian/patches/debianization-tests.patch b/debian/patches/debianization-tests.patch
index 11c39d5..77de542 100644
--- a/debian/patches/debianization-tests.patch
+++ b/debian/patches/debianization-tests.patch
@@ -10,9 +10,11 @@ Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2021-12-29
---- a/test/test_python_module.py
-+++ b/test/test_python_module.py
-@@ -25,7 +25,7 @@
+Index: plfit.git/test/test_python_module.py
+===================================================================
+--- plfit.git.orig/test/test_python_module.py
++++ plfit.git/test/test_python_module.py
+@@ -25,7 +25,7 @@ if not os.path.isdir(DATA_DIR):
sys.exit(1)
print("Testing continuous data...")
@@ -21,8 +23,10 @@ Last-Update: 2021-12-29
result = plfit.plfit_continuous(data)
print("alpha =", result.alpha)
print("xmin =", result.xmin)
+Index: plfit.git/data/continuous_data_small.txt
+===================================================================
--- /dev/null
-+++ b/data/continuous_data_small.txt
++++ plfit.git/data/continuous_data_small.txt
@@ -0,0 +1,1000 @@
+ 3.0769474e+00
+ 4.8299350e+00
diff --git a/debian/patches/debianization.patch b/debian/patches/debianization.patch
index f80a691..2db14b3 100644
--- a/debian/patches/debianization.patch
+++ b/debian/patches/debianization.patch
@@ -8,9 +8,11 @@ Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2021-11-16
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
-@@ -55,8 +55,8 @@
+Index: plfit.git/src/CMakeLists.txt
+===================================================================
+--- plfit.git.orig/src/CMakeLists.txt
++++ plfit.git/src/CMakeLists.txt
+@@ -55,8 +55,8 @@ if(PLFIT_COMPILE_PYTHON_MODULE)
# Check whether we have SWIG and the Python libraries installed
find_package(SWIG REQUIRED)
include(${SWIG_USE_FILE})
@@ -21,8 +23,10 @@ Last-Update: 2021-11-16
include_directories(${PYTHON_INCLUDE_PATH})
# using distutils.
---- a/test/test_python_module.py
-+++ b/test/test_python_module.py
+Index: plfit.git/test/test_python_module.py
+===================================================================
+--- plfit.git.orig/test/test_python_module.py
++++ plfit.git/test/test_python_module.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
diff --git a/src/plfit.c b/src/plfit.c
index 76eff5c..05d7262 100644
--- a/src/plfit.c
+++ b/src/plfit.c
@@ -116,7 +116,7 @@ static double* extract_smaller(double* begin, double* end, double xmin,
size_t counter = count_smaller(begin, end, xmin);
double *p, *result;
- result = calloc(counter, sizeof(double));
+ result = calloc(counter > 0 ? counter : 1, sizeof(double));
if (result == 0)
return 0;
@@ -350,7 +350,7 @@ static int plfit_i_calculate_p_value_continuous(double* xs, size_t n,
#endif
/* Allocate memory to sample into */
- ys = calloc(n, sizeof(double));
+ ys = calloc(n > 0 ? n : 1, sizeof(double));
if (ys == 0) {
retval = PLFIT_ENOMEM;
} else {
@@ -1071,7 +1071,7 @@ static int plfit_i_calculate_p_value_discrete(double* xs, size_t n,
#endif
/* Allocate memory to sample into */
- ys = calloc(n, sizeof(double));
+ ys = calloc(n > 0 ? n : 1, sizeof(double));
if (ys == 0) {
retval = PLFIT_ENOMEM;
} else {
diff --git a/src/sampling.c b/src/sampling.c
index 580e727..5e7c776 100644
--- a/src/sampling.c
+++ b/src/sampling.c
@@ -185,11 +185,11 @@ int plfit_walker_alias_sampler_init(plfit_walker_alias_sampler_t* sampler,
ps_end = ps + n;
/* Initialize indexes and probs */
- sampler->indexes = (long int*)calloc(n, sizeof(long int));
+ sampler->indexes = (long int*)calloc(n > 0 ? n : 1, sizeof(long int));
if (sampler->indexes == 0) {
return PLFIT_ENOMEM;
}
- sampler->probs = (double*)calloc(n, sizeof(double));
+ sampler->probs = (double*)calloc(n > 0 ? n : 1, sizeof(double));
if (sampler->probs == 0) {
free(sampler->indexes);
return PLFIT_ENOMEM;
@@ -213,13 +213,13 @@ int plfit_walker_alias_sampler_init(plfit_walker_alias_sampler_t* sampler,
}
/* Allocate space for short & long stick indexes */
- long_sticks = (long int*)calloc(num_long_sticks, sizeof(long int));
+ long_sticks = (long int*)calloc(num_long_sticks > 0 ? num_long_sticks : 1, sizeof(long int));
if (long_sticks == 0) {
free(sampler->probs);
free(sampler->indexes);
return PLFIT_ENOMEM;
}
- short_sticks = (long int*)calloc(num_long_sticks, sizeof(long int));
+ short_sticks = (long int*)calloc(num_short_sticks > 0 ? num_short_sticks : 1, sizeof(long int));
if (short_sticks == 0) {
free(sampler->probs);
free(sampler->indexes);
Debdiff
[The following lists of changes regard files as different if they have different names, permissions or owners.]
Files in second set of .debs but not in first
-rw-r--r-- root/root /usr/lib/debug/.build-id/30/b35faa04cdaf076bab6c531d19afd5b3d654c0.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/aa/c9bf30965242a79929d0fb970ae570b5a98116.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/bf/d62627465e70db0ae8cfde52ee770a45d4a905.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/e0/fb7338c0c6e0ce89f747bae6419ca491ea4970.debug
Files in first set of .debs but not in second
-rw-r--r-- root/root /usr/lib/debug/.build-id/0d/eb8a359f3aba2a24664a43792c93836b6c585d.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/7d/c7640ebdf3af7b45d1769a01be9c1a9a8be9e2.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/d8/ade7995556e3383190f5d9805ff4374f1c5289.debug -rw-r--r-- root/root /usr/lib/debug/.build-id/f5/62ffbe9e4107d95c24004ec8ea85af640bc580.debug
No differences were encountered between the control files of package libplfit-dev
No differences were encountered between the control files of package libplfit0
Control files of package libplfit0-dbgsym: lines which differ (wdiff format)
Build-Ids: f562ffbe9e4107d95c24004ec8ea85af640bc580 aac9bf30965242a79929d0fb970ae570b5a98116
No differences were encountered between the control files of package plfit
Control files of package plfit-dbgsym: lines which differ (wdiff format)
Build-Ids: 0deb8a359f3aba2a24664a43792c93836b6c585d d8ade7995556e3383190f5d9805ff4374f1c5289 bfd62627465e70db0ae8cfde52ee770a45d4a905 e0fb7338c0c6e0ce89f747bae6419ca491ea4970
No differences were encountered between the control files of package plfit-doc
No differences were encountered between the control files of package python3-plfit
Control files of package python3-plfit-dbgsym: lines which differ (wdiff format)
Build-Ids: 7dc7640ebdf3af7b45d1769a01be9c1a9a8be9e2 30b35faa04cdaf076bab6c531d19afd5b3d654c0