Source: request-tracker4
Version: 4.4.1
Severity: minor
Tags: patch

Dear Maintainer,

When retrying to rebuild the .debs for RT, I found that a few
generated files and directories we either not correctly removed, or
not even attemped to be removed. Also, if the configure wasn't 
present, then building failed.

The attached patch to debian/rules fixes these issues.

Cheers,
Andrew

-- System Information:
Debian Release: 9.1
  APT prefers common
  APT policy: (500, 'common'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8),
LANGUAGE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-- 
Andrew Ruthven, Wellington, New Zealand
MIITP

At work: andrew.ruth...@catalyst.net.nz
At home: and...@etc.gen.nz
Cloud  : NZs only real cloud - https://catalyst.net.nz/cloud
GPG fpr: C603 FC4E 600F 1CEC D1C8  D97C 4B53 D931 E4D3 E863
LCA2018: Just a little bit of history repeating - http://linux.conf.au
--- debian/rules        2017-08-29 19:05:39.000000000 +0000
+++ ../rules    2017-11-15 00:45:17.548156696 +0000
@@ -23,6 +23,7 @@
 build-arch: build-stamp
 build-indep: build-stamp
 
+configure: build-stamp
 build-stamp: configure
        dh_testdir
 
@@ -86,7 +87,8 @@
        # Restore shipped generated files
        -find bak -type f -print | sed -e 's/^bak\///' | while read f; do mv 
bak/$$f $$f; done
        -rm -rf bak
-       rm -f config.status config.log config.pld bak html-docs
+       rm -rf html-docs
+       rm -f config.status config.log config.pld bak t/tmp/ports 
t/data/gnupg/keyrings/random_seed
        dh_autoreconf_clean
        dh_clean build-stamp
 
@@ -141,6 +143,9 @@
        find $(RT_PKG)/usr/share/$(RT)/lib -type f -name '*.in' -print0 | xargs 
-0 --no-run-if-empty rm 
        rm -f $(RT_PKG)/usr/share/$(RT)/etc/upgrade/*.in
        
+       # Remove a test file
+       rm -f .prove
+
        # This is generated by the maintainer scripts
        $(RM) $(RT_PKG)/usr/share/$(RT)/etc/RT_SiteConfig.pm
 

Reply via email to