Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907830 - app-arch/gzip: zcat-reference/gunzip-reference not compatible with app-alternatives/gzip
Summary: app-arch/gzip: zcat-reference/gunzip-reference not compatible with app-altern...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2023-06-04 09:42 UTC by Joe Kappus
Modified: 2023-06-04 13:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kappus 2023-06-04 09:42:08 UTC
/bin/zcat-reference and /bin/gunzip-reference are shell scripts. They call exec gzip. This is a problem if gzip's symlinked to pigz, because it's expected that reference means app-arch/gzip not app-arch/pigz. 

Reproducible: Always

Steps to Reproduce:
1. Have app-arch/gzip installed and app-alternatives/gzip[pigz] set.
2.try to zcat some crap pigz can't handle like some old abandonware

cat share/lotus/123.v10/sysV386/lib/123.o.z_1 share/lotus/123.v10/sysV386/lib/123.o.z_2 | zcat > test.o
zcat: skipping: <stdin> unrecognized format
Actual Results:  
zcat-reference -V
pigz 2.7

Expected Results:  
reference implementations point to reference gzip, not pigz.

I'd patch this myself but I think it has to be done early in case users have a weird system not installing to /bin.