35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
$OpenBSD: patch-mesonbuild_scripts_meson_install_py,v 1.2 2017/10/09 07:40:25 ajacoutot Exp $
|
|
|
|
Do not install compressed manpages
|
|
|
|
Index: mesonbuild/scripts/meson_install.py
|
|
--- mesonbuild/scripts/meson_install.py.orig
|
|
+++ mesonbuild/scripts/meson_install.py
|
|
@@ -12,7 +12,7 @@
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
-import sys, pickle, os, shutil, subprocess, gzip, platform, errno
|
|
+import sys, pickle, os, shutil, subprocess, platform, errno
|
|
import shlex
|
|
from glob import glob
|
|
from . import depfixer
|
|
@@ -224,16 +224,7 @@ def install_man(d):
|
|
outdir = os.path.split(outfilename)[0]
|
|
d.dirmaker.makedirs(outdir, exist_ok=True)
|
|
print('Installing %s to %s' % (full_source_filename, outdir))
|
|
- 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)
|
|
- append_to_log(outfilename)
|
|
- else:
|
|
- do_copyfile(full_source_filename, outfilename)
|
|
+ do_copyfile(full_source_filename, outfilename)
|
|
|
|
def install_headers(d):
|
|
for t in d.headers:
|