Source: lesstif2
Version: 1:0.95.2-1
Severity: wishlist
Tags: patch
User: debian...@lists.debian.org
Usertags: build-arch-target

Hi,

Please see attached patch as an example of how to do this.  I would have
added hardening flags as well, but unfortunately my machine ran out of
memory and OOM-killed the build process (and parts of my running system).  :)

For reference, the OOM-kill data suggests a memory usage of 2922724 kB
or (likely) worse[1].

~Niels

[1]

[ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
[...]
[23954]  1000 23954     1094      211   7       0             0 gcc
[23955]  1000 23955  2922724  2917507   0       0             0 cc1
[...]
diff -u lesstif2-0.95.2/debian/changelog lesstif2-0.95.2/debian/changelog
--- lesstif2-0.95.2/debian/changelog
+++ lesstif2-0.95.2/debian/changelog
@@ -1,3 +1,10 @@
+lesstif2 (1:0.95.2-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Added build-arch and build-indep targets to debian/rules.
+
+ -- Niels Thykier <ni...@thykier.net>  Wed, 16 Nov 2011 09:02:15 +0100
+
 lesstif2 (1:0.95.2-1) unstable; urgency=low
 
   [Sam Hocevar]
diff -u lesstif2-0.95.2/debian/rules lesstif2-0.95.2/debian/rules
--- lesstif2-0.95.2/debian/rules
+++ lesstif2-0.95.2/debian/rules
@@ -45,7 +45,9 @@
 	cd $(BUILD); ../configure $(CARGS); ../debian/fixrpath;
 	touch configure-stamp
 
-build: build-stamp
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
 build-stamp: configure-stamp
 	dh_testdir
 	$(MAKE) -C $(BUILD)
@@ -176 +178 @@
-.PHONY: configure build clean binary-indep binary-arch binary install
+.PHONY: configure build build-arch build-indep clean binary-indep binary-arch binary install

Reply via email to