Files
guru/dev-util/osc/files/osc-no-man-compression.patch
Anna Vyalkova 932dc50d00 dev-util/osc: bump to 0.172, drop old
Include a patch to disable compressing manpage with gzip at build
time.

Closes: https://bugs.gentoo.org/780960
Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
2021-05-05 10:09:29 +05:00

32 lines
1019 B
Diff

--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,6 @@
from distutils.core import setup
import distutils.core
from distutils.command import build, install_data
-import gzip
import os.path
import sys
@@ -29,9 +28,9 @@
def build_man_page(self):
"""
"""
- man_path = os.path.join(self.build_base, 'osc.1.gz')
+ man_path = os.path.join(self.build_base, 'osc.1')
distutils.log.info('generating %s' % man_path)
- outfile = gzip.open(man_path, 'wt')
+ outfile = open(man_path, 'w')
osccli = commandline.Osc(stdout=outfile)
# FIXME: we cannot call the main method because osc expects an ~/.oscrc
# file (this would break builds in environments like the obs)
@@ -100,7 +99,7 @@
data_files = []
if sys.platform[:3] != 'win':
- data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1.gz']))
+ data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1']))
with open("README") as fh:
long_description = fh.read()