tags 959856 + patch

thanks

Am 06.05.20 um 10:45 schrieb Andreas Beckmann:
> Package: terminator
> Version: 1.92-1
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package has a file conflict
> on /usr/share/icons/hicolor/icon-theme.cache with other buggy packages
> shipping that file, too.

Looks like this wasn't the first time the terminator package installs
this file. #684873 was about the same problem.

Terminators setup.py offers a global argument called
"--without-icon-cache" which disables the build of icon-themen.cache.
#684873 was fixed by overwriting dh_auto_install and call "python
setup.py ..." directly (commit 2271ffc9).

I wasn't able to find any way to tell pybuild to pass any argument right
after "python3 setup.py" and the action it should call (for instance
"install"). Passing --install-args to pybuild doesn't work. Therefor I
did the same thing as in commit 2271ffc9. Overwrite dh_auto_-install.

Attached you will find a patch for debian/rules which contains the
orverwrite_dh_auto_install rule.

Cheers,
 - Adrian

diff --git a/debian/rules b/debian/rules
index fd2c75f..8b28641 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,3 +12,13 @@ override_dh_auto_clean:
 	rm -f data/terminator.appdata.xml
 	rm -f po/.intltool-merge-cache
 	find . -name '*.pyc' -delete
+
+override_dh_auto_install:
+	# do not install icon-theme.cache (#959856, #684873)
+	python3 setup.py \
+	--without-icon-cache \
+	install \
+	--install-lib=usr/lib/python3/dist-packages/ \
+	--install-data=usr/ \
+	--install-scripts=usr/bin \
+	--root $(CURDIR)/debian/terminator

Attachment: 0x61F7985DB84E0B04.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to