Package: nmap
Version: 5.51.6
Severity: minor
Tags: patch

The installation step should use DESTDIR, and not change the value of
prefix to something different than was used at the build step. This
would make a later sed command to remove the bogus prefix unnecessary.

This is somewhat related to #663217, in which a directory under /tmp was
written into a script file because prefix was changed rather than
DESTDIR.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/debian/rules b/debian/rules
index 236313c..8940926 100644
--- a/debian/rules
+++ b/debian/rules
@@ -57,8 +57,7 @@ install: build
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-	$(MAKE) prefix=`pwd`/debian/tmp/usr install
-	find debian/tmp/usr/lib/python* -type f | xargs sed -i "s:`pwd`/debian/tmp::g"
+	$(MAKE) DESTDIR=`pwd`/debian/tmp install
 	rm debian/tmp/usr/bin/uninstall_zenmap
 
 # This single target is used to build all the packages, all at once, or

Reply via email to