aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-10-19 10:24:46 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-20 13:16:28 +0300
commite8232c7825fdb3783ffa84e90f3ab8f2224a1399 (patch)
tree8df75e076d71065e92db84cb59083d2a625debaf /mesonbuild
parent066060e8c9402b3ae510de7fbddeeb3b528247c9 (diff)
downloadmeson-e8232c7825fdb3783ffa84e90f3ab8f2224a1399.zip
meson-e8232c7825fdb3783ffa84e90f3ab8f2224a1399.tar.gz
meson-e8232c7825fdb3783ffa84e90f3ab8f2224a1399.tar.bz2
Remove implicit compression of man pages
Remove the code responsible for implicitly compressing manpages as .gz files. It has been established that manpage compression is a distro packager's task, with existing distros already having their own implementations of compression. Fixes #4330
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/backend/backends.py2
-rw-r--r--mesonbuild/minstall.py12
2 files changed, 2 insertions, 12 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index f12b357..3478be6 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -1085,7 +1085,7 @@ class Backend:
if subdir is None:
subdir = os.path.join(manroot, 'man' + num)
srcabs = f.absolute_path(self.environment.get_source_dir(), self.environment.get_build_dir())
- dstabs = os.path.join(subdir, os.path.basename(f.fname) + '.gz')
+ dstabs = os.path.join(subdir, os.path.basename(f.fname))
i = [srcabs, dstabs, m.get_custom_install_mode()]
d.man.append(i)
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py
index b65abe0..7a2af30 100644
--- a/mesonbuild/minstall.py
+++ b/mesonbuild/minstall.py
@@ -379,17 +379,7 @@ class Installer:
outdir = os.path.dirname(outfilename)
d.dirmaker.makedirs(outdir, exist_ok=True)
install_mode = m[2]
- if outfilename.endswith('.gz') and not full_source_filename.endswith('.gz'):
- with open(outfilename, 'wb') as of:
- with open(full_source_filename, 'rb') as sf:
- # Set mtime and filename for reproducibility.
- with gzip.GzipFile(fileobj=of, mode='wb', filename='', mtime=0) as gz:
- gz.write(sf.read())
- shutil.copystat(full_source_filename, outfilename)
- print('Installing %s to %s' % (full_source_filename, outdir))
- append_to_log(self.lf, outfilename)
- else:
- self.do_copyfile(full_source_filename, outfilename)
+ self.do_copyfile(full_source_filename, outfilename)
set_mode(outfilename, install_mode, d.install_umask)
def install_headers(self, d):