[game-data-packager] 03/09: unreal: add Lintian overrides, mostly for binaries we can't change

Simon McVittie smcv at debian.org
Sun Jan 17 17:36:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 3132e850a5f158329b530d949a9cb82658000eed
Author: Simon McVittie <smcv at debian.org>
Date:   Sun Jan 17 12:54:24 2016 +0000

    unreal: add Lintian overrides, mostly for binaries we can't change
---
 game_data_packager/games/unreal.py | 39 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/game_data_packager/games/unreal.py b/game_data_packager/games/unreal.py
index 4c98dd5..2ea25c3 100644
--- a/game_data_packager/games/unreal.py
+++ b/game_data_packager/games/unreal.py
@@ -40,6 +40,45 @@ class UnrealTask(PackagingTask):
             with TemporaryUmask(0o022):
                 self.__add_manifest(package, destdir)
 
+        if package.name in ('unreal-gold', 'unreal-classic'):
+            with TemporaryUmask(0o022):
+                self.packaging.override_lintian(destdir, package.name,
+                        'binary-has-unneeded-section',
+                        'usr/lib/unreal*/System/* *')
+                self.packaging.override_lintian(destdir, package.name,
+                        'binary-or-shlib-defines-rpath',
+                        'usr/lib/unreal*/System/* .')
+                self.packaging.override_lintian(destdir, package.name,
+                        'embedded-library',
+                        'usr/lib/unreal*/System/*.bin: zlib')
+                self.packaging.override_lintian(destdir, package.name,
+                        'hardening-no-fortify-functions',
+                        'usr/lib/unreal*/System/*')
+                self.packaging.override_lintian(destdir, package.name,
+                        'spelling-error-in-binary',
+                        'usr/lib/unreal*/System/* * *')
+                self.packaging.override_lintian(destdir, package.name,
+                        'shlib-with-non-pic-code',
+                        'usr/lib/unreal*/System/*.so')
+
+        if package.name == 'unreal-libmikmod2':
+            with TemporaryUmask(0o022):
+                self.packaging.override_lintian(destdir, package.name,
+                        'embedded-library',
+                        'usr/lib/unreal/libmikmod.so.2.0.4: libmikmod')
+
+        if package.name == 'unreal-libfmod':
+            with TemporaryUmask(0o022):
+                self.packaging.override_lintian(destdir, package.name,
+                        'hardening-no-relro',
+                        'usr/lib/unreal/libfmod-3.75.so')
+                self.packaging.override_lintian(destdir, package.name,
+                        'binary-has-unneeded-section',
+                        'usr/lib/unreal/libfmod-3.75.so .comment')
+                self.packaging.override_lintian(destdir, package.name,
+                        'hardening-no-fortify-functions',
+                        'usr/lib/unreal/libfmod-3.75.so')
+
     def __add_manifest(self, package, destdir):
         # A real Manifest.ini is much larger than this, but this is
         # enough to identify the version.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list