Package: memtest86+
Version: 1.70-3ubuntu1
Severity: normal

I have just uploaded a merge of the memtest86+ package to ubunut. While
doing this, I have investigated the patches we have applied to the
ubuntu package and come to the conclusion that they might be useful for
debian as well. Well, here we go:


The following change adds the lpia architecture. Debian does currently
not have it, but ubuntu has. lpia is very similar to i386, but used as
mobile devices. The following change won't harm in debian, and will be
useful if debian will adopt the lpia arch. Some other packages do
include that kind of changes.

diff -u memtest86+-2.01/debian/control memtest86+-2.01/debian/control
--- memtest86+-2.01/debian/control
+++ memtest86+-2.01/debian/control
@@ -1,12 +1,13 @@
 Build-Depends: debhelper (>> 5.0.0), dh-buildinfo, gcc-multilib [amd64]
 Standards-Version: 3.7.2
 
 Package: memtest86+
-Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 lpia
 Depends: ${misc:Depends}
 Suggests: hwtools, memtester, kernel-patch-badram, grub2 (>=1.95+20070515-1) | 
grub (>= 0.95+cvs20040624), mtools
 Description: thorough real-mode memory tester


The postrm script should actually check that /boot/grub actually exist
instead of unconditionally calling update-grub. I suspect that should
avoid bugs like
https://bugs.launchpad.net/ubuntu/+source/memtest86+/+bug/129614

diff -u memtest86+-2.01/debian/postrm memtest86+-2.01/debian/postrm
--- memtest86+-2.01/debian/postrm
+++ memtest86+-2.01/debian/postrm
@@ -1,7 +1,7 @@
 #!/bin/bash
 set -e
 
-if which update-grub2 > /dev/null ; then
+if test -d /boot/grub && which update-grub2 > /dev/null ; then
     update-grub2
 fi
 


The last change adds -fno-stack-protector to CFLAGS. As fas as I
understand, the debian gcc version does not add -fstack-protector as the
ubuntu package does. However, you will need that as soon as the debian
gcc does, which is the plan AFAIUI. In any case, you can prevent hassle
with frameworks like hardening wrapper by making it explicit that
memtest86+ does not compile with gcc's stack protector.

only in patch2:
unchanged:
--- memtest86+-2.01.orig/Makefile
+++ memtest86+-2.01/Makefile
@@ -11,7 +11,7 @@
 AS=as -32
 CC=gcc
 
-CFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin 
-ffreestanding -fPIC
+CFLAGS=-Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin 
-ffreestanding -fPIC -fno-stack-protector
 
 OBJS= head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o \
       config.o linuxbios.o memsize.o pci.o controller.o random.o extra.o \


If you disagree with one patch or another, please do not hesitate to
comment on them and discuss these changes with me!


-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-16-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information


-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to