Gentoo Archives: gentoo-commits

From: "Andrew Savchenko (bircoph)" <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/memtest86+: ChangeLog memtest86+-5.01.ebuild
Date: Sat, 31 Jan 2015 22:57:57
Message-Id: 20150131225746.6AD6A10C84@oystercatcher.gentoo.org
1 bircoph 15/01/31 22:57:46
2
3 Modified: ChangeLog
4 Added: memtest86+-5.01.ebuild
5 Log:
6 Version bump, wrt bug 486564
7
8 Signed-off-by: Andrew Savchenko <bircoph@g.o>
9 (Portage version: 2.2.15/cvs/Linux i686, signed Manifest commit with key 565953B95372756C)
10
11 Revision Changes Path
12 1.69 sys-apps/memtest86+/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/memtest86+/ChangeLog?rev=1.69&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/memtest86+/ChangeLog?rev=1.69&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/memtest86+/ChangeLog?r1=1.68&r2=1.69
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/ChangeLog,v
21 retrieving revision 1.68
22 retrieving revision 1.69
23 diff -u -r1.68 -r1.69
24 --- ChangeLog 31 Aug 2014 03:18:41 -0000 1.68
25 +++ ChangeLog 31 Jan 2015 22:57:46 -0000 1.69
26 @@ -1,6 +1,16 @@
27 # ChangeLog for sys-apps/memtest86+
28 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/ChangeLog,v 1.68 2014/08/31 03:18:41 floppym Exp $
30 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/ChangeLog,v 1.69 2015/01/31 22:57:46 bircoph Exp $
32 +
33 +*memtest86+-5.01 (31 Jan 2015)
34 +
35 + 31 Jan 2015; Andrew Savchenko <bircoph@g.o> +memtest86+-5.01.ebuild,
36 + +files/memtest86+-5.01-gcc-473.patch,
37 + +files/memtest86+-5.01-hardcoded_cc.patch:
38 + Version bump, wrt bug 486564.
39 + Fix build with gcc 4.7.3 by Alexander (necheffa.misc@×××××.com),
40 + add QA_CFLAGS_IGNORED, since we don't allow user to tamper with
41 + CFLAGS here.
42
43 *memtest86+-4.20-r2 (31 Aug 2014)
44
45
46
47
48 1.1 sys-apps/memtest86+/memtest86+-5.01.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/memtest86+/memtest86+-5.01.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/memtest86+/memtest86+-5.01.ebuild?rev=1.1&content-type=text/plain
52
53 Index: memtest86+-5.01.ebuild
54 ===================================================================
55 # Copyright 1999-2015 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/sys-apps/memtest86+/memtest86+-5.01.ebuild,v 1.1 2015/01/31 22:57:46 bircoph Exp $
58
59 EAPI=4
60
61 inherit mount-boot eutils toolchain-funcs
62
63 DESCRIPTION="Memory tester based on memtest86"
64 HOMEPAGE="http://www.memtest.org/"
65 SRC_URI="http://www.memtest.org/download/${PV}/${P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="-* ~amd64 ~x86"
70 IUSE="floppy serial"
71
72 BOOTDIR=/boot/memtest86plus
73 QA_PRESTRIPPED="${BOOTDIR}/memtest.netbsd"
74 QA_FLAGS_IGNORED="${BOOTDIR}/memtest.netbsd"
75
76 RDEPEND="floppy? ( >=sys-boot/grub-0.95:0 sys-fs/mtools )"
77 DEPEND=""
78
79 src_prepare() {
80 sed -i -e 's,0x10000,0x100000,' memtest.lds || die
81 sed -e "s/scp memtest.bin root@192.168.0.12:\/srv\/tftp\/mt86plus//g" -i Makefile
82 epatch "${FILESDIR}/${P}-gcc-473.patch" \
83 "${FILESDIR}/${P}-hardcoded_cc.patch"
84
85 if use serial ; then
86 sed -i \
87 -e '/^#define SERIAL_CONSOLE_DEFAULT/s:0:1:' \
88 config.h \
89 || die "sed failed"
90 fi
91
92 cat - > "${T}"/39_${PN} <<EOF
93 #!/bin/sh
94 exec tail -n +3 \$0
95
96 menuentry "${PN} ${PV}" {
97 linux16 ${BOOTDIR}/memtest
98 }
99
100 menuentry "${PN} ${PV} (netbsd)" {
101 insmod bsd
102 knetbsd ${BOOTDIR}/memtest.netbsd
103 }
104 EOF
105
106 tc-export AS CC LD
107 }
108
109 src_test() { :; }
110
111 src_install() {
112 insinto ${BOOTDIR}
113 newins memtest.bin memtest
114 newins memtest memtest.netbsd
115 dosym memtest ${BOOTDIR}/memtest.bin
116
117 exeinto /etc/grub.d
118 doexe "${T}"/39_${PN}
119
120 dodoc README README.build-process FAQ changelog
121
122 if use floppy ; then
123 dobin "${FILESDIR}"/make-memtest86+-boot-floppy
124 doman "${FILESDIR}"/make-memtest86+-boot-floppy.1
125 fi
126 }
127
128 pkg_postinst() {
129 mount-boot_pkg_postinst
130 elog
131 elog "memtest has been installed in ${BOOTDIR}/"
132 elog "You may wish to update your bootloader configs"
133 elog "by adding these lines:"
134 elog " - For grub2 just run grub-mkconfig, a configuration file is installed"
135 elog " as /etc/grub/39_${PN}"
136 elog " - For grub legacy: (replace '?' with correct numbers for your boot partition)"
137 elog " > title=${PN}"
138 elog " > root (hd?,?)"
139 elog " > kernel ${BOOTDIR}/memtest"
140 elog " - For lilo:"
141 elog " > image = ${BOOTDIR}/memtest"
142 elog " > label = ${PN}"
143 elog
144 }