head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.8 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.6 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.4 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2010Q3:1.2.0.6 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.4 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.2 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.1.0.4 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.2 pkgsrc-2009Q3-base:1.1; locks; strict; comment @# @; 1.3 date 2010.11.03.14.21.50; author adam; state dead; branches; next 1.2; 1.2 date 2010.03.20.19.46.14; author wiz; state Exp; branches; next 1.1; 1.1 date 2009.09.04.16.57.14; author wiz; state Exp; branches; next ; desc @@ 1.3 log @Changes 5.0.0: * The memory usage limit is now disabled by default. * Added support for XZ_DEFAULTS environment variable. * The compression settings associated with the preset levels -0 ... -9 have been changed. --extreme was changed a little too. * If a preset level (-0 ... -9) is specified after a custom filter chain options have been used (e.g. --lzma2), the custom filter chain will be forgotten. Earlier the preset options were completely ignored after custom filter chain options had been seen. * xz will create sparse files when decompressing if the uncompressed data contains long sequences of binary zeros. * Support for "xz --list" was added. Combine with --verbose or --verbose --verbose (-vv) for detailed output. * I had hoped that liblzma API would have been stable after 4.999.9beta, but there have been a couple of changes in the advanced features, which don't affect most applications: - Index handling code was revised. If you were using the old API, you will get a compiler error (so it's easy to notice). - A subtle but important change was made to the Block handling API. lzma_block.version has to be initialized even for lzma_block_header_decode(). Code that doesn't do it will work for now, but might break in the future, which makes this API change easy to miss. * The major soname has been bumped to 5.0.0. liblzma API and ABI are now stable, so the need to recompile programs linking against liblzma shouldn't arise soon. @ text @$NetBSD: patch-aa,v 1.2 2010/03/20 19:46:14 wiz Exp $ --- src/common/cpucores.h.orig 2009-08-27 15:37:12.000000000 +0000 +++ src/common/cpucores.h @@@@ -40,7 +40,7 @@@@ cpucores(void) int name[2] = { CTL_HW, HW_NCPU }; int cpus; size_t cpus_size = sizeof(cpus); - if (!sysctl(name, &cpus, &cpus_size, NULL, NULL) + if (sysctl(name, 2, &cpus, &cpus_size, NULL, 0) != -1 && cpus_size == sizeof(cpus) && cpus > 0) ret = (uint32_t)(cpus); #endif @ 1.2 log @Fix detection of available memory. From Ryu ONODERA in PR 42969. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.1 2009/09/04 16:57:14 wiz Exp $ @ 1.1 log @Fix build on NetBSD-4.0/i386. Patches from Robert Elz in PR 41963. (Also sent upstream.) @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 + if (sysctl(name, 2, &cpus, &cpus_size, NULL, 0) > 0 @