# Issue (Bug) xz binary is not found since PATH is not used for binary resolution anymore. Introduced on pull request github jnovy/pxz/pull/33. Renders default pxz build unfunctional. Probably introduced with security fix #881377. See github jnovy/pxz/issues/34 for a possible workaround (specifying -DXZ_BINARY="/usr/bin/xz" during make). ## Reproduction 1. Emerge app-arch/pxz-5.0_pre20220509 2. Run `pxz --help` or any other pxz command. ## Result ```text Parallel PXZ-4.999.9beta-20221219, by Jindrich Novy <...> Options: -g, --crc32 use CRC32 checksum method (default CRC64) -T, --threads maximum number of threads to run simultaneously -D, --context-size per-thread compression context size as a multiple of dictionary size. Default is 3. Usage and other options are same as in XZ: pxz: execution of xz binary failed: No such file or directory ``` ### Expected ```text Parallel PXZ-4.999.9beta-20221219, by Jindrich Novy <...> Options: -g, --crc32 use CRC32 checksum method (default CRC64) -T, --threads maximum number of threads to run simultaneously -D, --context-size per-thread compression context size as a multiple of dictionary size. Default is 3. Usage and other options are same as in XZ: Usage: ./pxz [OPTION]... [FILE]... Compress or decompress FILEs in the .xz format. -z, --compress force compression -d, --decompress force decompression -t, --test test compressed file integrity -l, --list list information about .xz files -k, --keep keep (don't delete) input files -f, --force force overwrite of output file and (de)compress links -c, --stdout write to standard output and don't delete input files -0 ... -9 compression preset; default is 6; take compressor *and* decompressor memory usage into account before using 7-9! -e, --extreme try to improve compression ratio by using more CPU time; does not affect decompressor memory requirements -T, --threads=NUM use at most NUM threads; the default is 1; set to 0 to use as many threads as there are processor cores -q, --quiet suppress warnings; specify twice to suppress errors too -v, --verbose be verbose; specify twice for even more verbose -h, --help display this short help and exit -H, --long-help display the long help (lists also the advanced options) -V, --version display the version number and exit With no FILE, or when FILE is -, read standard input. Report bugs to <xz@tukaani.org> (in English or Finnish). XZ Utils home page: <...> ```
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=849e9356f043162fe970d4f75a5e5c40aeb7b209 commit 849e9356f043162fe970d4f75a5e5c40aeb7b209 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-23 03:33:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-23 03:33:21 +0000 app-arch/pxz: fix finding xz Closes: https://bugs.gentoo.org/887255 Signed-off-by: Sam James <sam@gentoo.org> .../files/pxz-5.0_pre20220509-fix-xz-path.patch | 21 ++++++++++ app-arch/pxz/pxz-5.0_pre20220509-r1.ebuild | 47 ++++++++++++++++++++++ 2 files changed, 68 insertions(+)
Thank you!
On reflection, later on I'll change it to pass the path to CMake with EPREFIX, but it'll be functionally the same.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d5806c771598a54e2b57c20111cae6724dad056 commit 7d5806c771598a54e2b57c20111cae6724dad056 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-23 07:06:56 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-23 07:06:56 +0000 app-arch/pxz: add bug comment to eprefixify call Bug: https://bugs.gentoo.org/887255 Signed-off-by: Sam James <sam@gentoo.org> app-arch/pxz/pxz-5.0_pre20220509-r1.ebuild | 1 + 1 file changed, 1 insertion(+)