On Tue, Mar 18, 2008 at 10:19:10AM +0200, Nikola Vladov wrote:
> On Tue, Mar 18, 2008 at 07:04:59AM +0000, Julian Gilbey wrote:
> > tags 470946 + patch
> 
> Thanks Julian!
> 
> where exactly is the patch?  I cannot find it ;-)
> Please, send http link or e-mail attach.

Oops!  Attached this time, I hope.

   Julian
diff -Nru ngetty-0.3/debian/control ngetty-0.3.new/debian/control
--- ngetty-0.3/debian/control	2008-03-18 06:52:53.000000000 +0000
+++ ngetty-0.3.new/debian/control	2008-03-18 06:48:28.000000000 +0000
@@ -2,7 +2,7 @@
 Section: comm
 Priority: optional
 Maintainer: NIIBE Yutaka <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 5), dietlibc-dev
 Standards-Version: 3.7.3
 Homepage: http://riemann.fmi.uni-sofia.bg/ngetty/
 
diff -Nru ngetty-0.3/debian/dirs ngetty-0.3.new/debian/dirs
--- ngetty-0.3/debian/dirs	2008-03-18 06:52:53.000000000 +0000
+++ ngetty-0.3.new/debian/dirs	2008-03-18 07:00:10.000000000 +0000
@@ -1,2 +1,3 @@
 sbin
 usr/share/man/man8
+usr/share/lintian/overrides
diff -Nru ngetty-0.3/debian/lintian.overrides ngetty-0.3.new/debian/lintian.overrides
--- ngetty-0.3/debian/lintian.overrides	1970-01-01 01:00:00.000000000 +0100
+++ ngetty-0.3.new/debian/lintian.overrides	2008-03-18 06:58:41.000000000 +0000
@@ -0,0 +1,4 @@
+# We deliberately have statically linked binaries using dietlibc
+# for efficiency, as this is the way the ngetty software was designed
+ngetty: statically-linked-binary ./sbin/ngetty
+ngetty: statically-linked-binary ./sbin/ngetty-helper
diff -Nru ngetty-0.3/debian/rules ngetty-0.3.new/debian/rules
--- ngetty-0.3/debian/rules	2008-03-18 06:52:53.000000000 +0000
+++ ngetty-0.3.new/debian/rules	2008-03-18 07:01:03.000000000 +0000
@@ -26,7 +26,7 @@
 	dh_testdir
 
 	# Add here commands to compile the package.
-	$(MAKE)
+	$(MAKE) CC='diet -Os gcc -W'
 	#docbook-to-man debian/ngetty.sgml > ngetty.1
 
 	touch $@
@@ -49,6 +49,7 @@
 
 	# Add here commands to install the package into debian/ngetty.
 	$(MAKE) DESTDIR=$(CURDIR)/debian/ngetty install
+	install -m644 debian/lintian.overrides $(CURDIR)/debian/ngetty/usr/share/lintian/overrides/ngetty
 
 
 # Build architecture-independent files here.

Reply via email to