summarylogtreecommitdiffstats
path: root/remove-sys-cpuaffinity-dep.patch
diff options
context:
space:
mode:
authorMax Harmathy2024-04-08 21:11:30 +0200
committerMax Harmathy2024-04-08 21:11:30 +0200
commit7a96762ff0d01ba50cdbd9f830976261dbb19513 (patch)
tree11fb75ce92c98e22f1227a32955239392be2b631 /remove-sys-cpuaffinity-dep.patch
parent52911ac8f05704cb8bf1bb545ead7b4f366412f6 (diff)
downloadaur-pristine-tar.tar.gz
Update to upstream release 1.50+nmu2
The patch to remove the dependency to Sys::CpuAffinity was adjusted accordingly.
Diffstat (limited to 'remove-sys-cpuaffinity-dep.patch')
-rw-r--r--remove-sys-cpuaffinity-dep.patch16
1 files changed, 7 insertions, 9 deletions
diff --git a/remove-sys-cpuaffinity-dep.patch b/remove-sys-cpuaffinity-dep.patch
index f4cb22066c2b..5e9c91606063 100644
--- a/remove-sys-cpuaffinity-dep.patch
+++ b/remove-sys-cpuaffinity-dep.patch
@@ -8,19 +8,17 @@
my @supported_xz_programs = qw(xz pixz);
-@@ -255,12 +254,9 @@ sub predict_xz_args {
- # xz writes sizes in block headers if and only if run with multiple threads
+@@ -256,10 +255,9 @@ sub predict_xz_args {
# (even when --block-size or --block-list is specified)
if ($xz->{summary}->{size_in_blocks} eq 'yes') {
-- # All -T values >1 produce the same output.
-- # 0 behaves the same as 1 on single core systems.
+ # All -T values >1 produce the same output.
- # Use as many threads as we have CPU affinities, with a minimum of 2.
- my @affinities = Sys::CpuAffinity::getAffinity($$);
- my $threads = @affinities > 2 ? @affinities : 2;
- push @$common, "-T$threads";
-+ # Note: All values >1 produce the same output.
-+ # Careful, 0 behaves the same as 1 on single core systems.
-+ push @$common, '-T2'
++ # This is patched for AUR to use always two threads, since there is no package
++ # perl-sys-cpuaffinity available.
++ push @$common, "-T2";
+ } else {
+ push @$common, "-T1";
}
- }
- my $possible_args = [];