summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2009-03-22 21:30:38 +0000
committerMichael Januszewski <spock@gentoo.org>2009-03-22 21:30:38 +0000
commit54c07333cc306f388ab01d801057fe0c19611979 (patch)
treeee1da65f57af830ccc6f24bdd16037abad272919 /sys-apps/memtest86
parentInitial import of couchdb, from 197176 (diff)
downloadgentoo-2-54c07333cc306f388ab01d801057fe0c19611979.tar.gz
gentoo-2-54c07333cc306f388ab01d801057fe0c19611979.tar.bz2
gentoo-2-54c07333cc306f388ab01d801057fe0c19611979.zip
Fix bug #260547 (drop the /etc/fstab -> GRUB translation code).
(Portage version: 2.1.6.9/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/memtest86')
-rw-r--r--sys-apps/memtest86/ChangeLog8
-rw-r--r--sys-apps/memtest86/memtest86-3.3.ebuild30
-rw-r--r--sys-apps/memtest86/memtest86-3.4.ebuild30
3 files changed, 16 insertions, 52 deletions
diff --git a/sys-apps/memtest86/ChangeLog b/sys-apps/memtest86/ChangeLog
index 989a3b5a45c1..d95d7e0d5f11 100644
--- a/sys-apps/memtest86/ChangeLog
+++ b/sys-apps/memtest86/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-apps/memtest86
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/ChangeLog,v 1.34 2008/09/28 11:01:23 spock Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/ChangeLog,v 1.35 2009/03/22 21:30:38 spock Exp $
+
+ 22 Mar 2009; Michał Januszewski <spock@gentoo.org> memtest86-3.3.ebuild,
+ memtest86-3.4.ebuild:
+ Fix bug #260547 (drop the /etc/fstab -> GRUB translation code).
28 Sep 2008; Michał Januszewski <spock@gentoo.org> Manifest:
Compile memtest86+ with -O1 instead of -Os (bug #217324).
diff --git a/sys-apps/memtest86/memtest86-3.3.ebuild b/sys-apps/memtest86/memtest86-3.3.ebuild
index b03f16dd9d4f..b07918ff6a5a 100644
--- a/sys-apps/memtest86/memtest86-3.3.ebuild
+++ b/sys-apps/memtest86/memtest86-3.3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/memtest86-3.3.ebuild,v 1.3 2007/10/13 14:14:52 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/memtest86-3.3.ebuild,v 1.4 2009/03/22 21:30:38 spock Exp $
inherit mount-boot eutils
@@ -43,30 +43,10 @@ pkg_postinst() {
einfo "memtest.bin has been installed in /boot/memtest86/"
einfo "You may wish to update your bootloader configs"
einfo "by adding these lines:"
- einfo " - For grub:"
+ einfo " - For grub: (replace '?' with correct numbers for your boot partition)"
+ einfo " > root (hd?,?)"
einfo " > title=Memtest86"
-
- # a little magic to make users' life as easy as possible ;)
- bootpart=0
- root="(hd0,0)"
- res=`grep /boot /etc/fstab | grep -v "^#" | awk '{print $1}' | grep '/dev/hd[a-z0-9]\+'`
- if [ -n "${res}" ] ; then
- bootpart=1
- else
- res=`grep -v '^#' /etc/fstab | grep -e '/dev/hd[a-z0-9]\+[[:space:]]\+\/[[:space:]]\+' | awk '{print $1}'`
- fi
-
- if [ -n "${res}" ] ; then
- root=`echo ${res} | grep -o '[a-z][0-9]' | tr -t a-z 0123456789 | sed -e 's/\([0-9]\)\([0-9]\)/\1 \2/' | awk '{print "(hd" $1 "," $2-1 ")" }'`
- fi
-
- einfo " > root ${root}"
- if [ "${bootpart}" -eq 1 ] ; then
- einfo " > kernel /memtest86/memtest.bin"
- else
- einfo " > kernel /boot/memtest86/memtest.bin"
- fi
-
+ einfo " > kernel /boot/memtest86/memtest.bin"
einfo " - For lilo:"
einfo " > image = /boot/memtest86/memtest.bin"
einfo " > label = Memtest86"
diff --git a/sys-apps/memtest86/memtest86-3.4.ebuild b/sys-apps/memtest86/memtest86-3.4.ebuild
index 4c92e7fcd70e..72f46be346fd 100644
--- a/sys-apps/memtest86/memtest86-3.4.ebuild
+++ b/sys-apps/memtest86/memtest86-3.4.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/memtest86-3.4.ebuild,v 1.1 2008/01/19 22:10:59 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86/memtest86-3.4.ebuild,v 1.2 2009/03/22 21:30:38 spock Exp $
inherit mount-boot eutils
@@ -43,30 +43,10 @@ pkg_postinst() {
einfo "memtest.bin has been installed in /boot/memtest86/"
einfo "You may wish to update your bootloader configs"
einfo "by adding these lines:"
- einfo " - For grub:"
+ einfo " - For grub: (replace '?' with correct numbers for your boot partition)"
einfo " > title=Memtest86"
-
- # a little magic to make users' life as easy as possible ;)
- bootpart=0
- root="(hd0,0)"
- res=`grep /boot /etc/fstab | grep -v "^#" | awk '{print $1}' | grep '/dev/hd[a-z0-9]\+'`
- if [ -n "${res}" ] ; then
- bootpart=1
- else
- res=`grep -v '^#' /etc/fstab | grep -e '/dev/hd[a-z0-9]\+[[:space:]]\+\/[[:space:]]\+' | awk '{print $1}'`
- fi
-
- if [ -n "${res}" ] ; then
- root=`echo ${res} | grep -o '[a-z][0-9]' | tr -t a-z 0123456789 | sed -e 's/\([0-9]\)\([0-9]\)/\1 \2/' | awk '{print "(hd" $1 "," $2-1 ")" }'`
- fi
-
- einfo " > root ${root}"
- if [ "${bootpart}" -eq 1 ] ; then
- einfo " > kernel /memtest86/memtest.bin"
- else
- einfo " > kernel /boot/memtest86/memtest.bin"
- fi
-
+ einfo " > root (hd?,?)"
+ einfo " > kernel /boot/memtest86/memtest.bin"
einfo " - For lilo:"
einfo " > image = /boot/memtest86/memtest.bin"
einfo " > label = Memtest86"