aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-09-20 03:34:11 +0800
committermiwi <miwi@FreeBSD.org>2009-09-20 03:34:11 +0800
commit10963e84ea3e363062b61c82cec3a0bdd2d5df93 (patch)
treee2d48f37e2cfc0bd1372529ef02369601c918043 /archivers
parent3fdcfe4f88dc2833ebeafaf3efad5419930283a9 (diff)
downloadfreebsd-ports-gnome-10963e84ea3e363062b61c82cec3a0bdd2d5df93.tar.gz
freebsd-ports-gnome-10963e84ea3e363062b61c82cec3a0bdd2d5df93.tar.zst
freebsd-ports-gnome-10963e84ea3e363062b61c82cec3a0bdd2d5df93.zip
- Fix output from `xz -H` however when running tests the (de)compression doesn't
use more than one thread. PR: 137581 Submitted by: Martin Birgmeier <martin@email.aon.at> Approved by: maintainer Feature safe: yes
Diffstat (limited to 'archivers')
-rw-r--r--archivers/lzmautils-devel/Makefile1
-rw-r--r--archivers/lzmautils-devel/files/patch-src-xz-hardware.c17
-rw-r--r--archivers/xz/Makefile1
-rw-r--r--archivers/xz/files/patch-src-xz-hardware.c17
4 files changed, 36 insertions, 0 deletions
diff --git a/archivers/lzmautils-devel/Makefile b/archivers/lzmautils-devel/Makefile
index 98daefb37ef1..036c83188d77 100644
--- a/archivers/lzmautils-devel/Makefile
+++ b/archivers/lzmautils-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= lzmautils
DISTVERSION= 4.999.8
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://tukaani.org/xz/ \
http://freebsd.unixfreunde.de/sources/
diff --git a/archivers/lzmautils-devel/files/patch-src-xz-hardware.c b/archivers/lzmautils-devel/files/patch-src-xz-hardware.c
new file mode 100644
index 000000000000..13c356f8e6cb
--- /dev/null
+++ b/archivers/lzmautils-devel/files/patch-src-xz-hardware.c
@@ -0,0 +1,17 @@
+--- src/xz/hardware.c~ 2009-08-18 08:15:18.000000000 +0200
++++ src/xz/hardware.c 2009-08-18 08:17:50.000000000 +0200
+@@ -42,12 +42,12 @@
+ static void
+ hardware_cores(void)
+ {
+-#if defined(HAVE_NUM_PROCESSORS_SYSCONF)
++#if defined(HAVE_NCPU_SYSCONF)
+ const long cpus = sysconf(_SC_NPROCESSORS_ONLN);
+ if (cpus > 0)
+ opt_threads = (size_t)(cpus);
+
+-#elif defined(HAVE_NUM_PROCESSORS_SYSCTL)
++#elif defined(HAVE_NCPU_SYSCTL)
+ int name[2] = { CTL_HW, HW_NCPU };
+ int cpus;
+ size_t cpus_size = sizeof(cpus);
diff --git a/archivers/xz/Makefile b/archivers/xz/Makefile
index 98daefb37ef1..036c83188d77 100644
--- a/archivers/xz/Makefile
+++ b/archivers/xz/Makefile
@@ -7,6 +7,7 @@
PORTNAME= lzmautils
DISTVERSION= 4.999.8
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://tukaani.org/xz/ \
http://freebsd.unixfreunde.de/sources/
diff --git a/archivers/xz/files/patch-src-xz-hardware.c b/archivers/xz/files/patch-src-xz-hardware.c
new file mode 100644
index 000000000000..13c356f8e6cb
--- /dev/null
+++ b/archivers/xz/files/patch-src-xz-hardware.c
@@ -0,0 +1,17 @@
+--- src/xz/hardware.c~ 2009-08-18 08:15:18.000000000 +0200
++++ src/xz/hardware.c 2009-08-18 08:17:50.000000000 +0200
+@@ -42,12 +42,12 @@
+ static void
+ hardware_cores(void)
+ {
+-#if defined(HAVE_NUM_PROCESSORS_SYSCONF)
++#if defined(HAVE_NCPU_SYSCONF)
+ const long cpus = sysconf(_SC_NPROCESSORS_ONLN);
+ if (cpus > 0)
+ opt_threads = (size_t)(cpus);
+
+-#elif defined(HAVE_NUM_PROCESSORS_SYSCTL)
++#elif defined(HAVE_NCPU_SYSCTL)
+ int name[2] = { CTL_HW, HW_NCPU };
+ int cpus;
+ size_t cpus_size = sizeof(cpus);