sys-apps/memtest+: switch scp disable to a patch
authorMike Frysinger <vapier@gentoo.org>
Sat, 12 Dec 2015 23:29:24 +0000 (18:29 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 12 Dec 2015 23:29:45 +0000 (18:29 -0500)
This uses the Fedora one so it's a bit more clear we're on the same page.

sys-apps/memtest86+/files/memtest86+-5.01-no-scp.patch [new file with mode: 0644]
sys-apps/memtest86+/memtest86+-5.01-r1.ebuild

diff --git a/sys-apps/memtest86+/files/memtest86+-5.01-no-scp.patch b/sys-apps/memtest86+/files/memtest86+-5.01-no-scp.patch
new file mode 100644 (file)
index 0000000..8303ccf
--- /dev/null
@@ -0,0 +1,12 @@
+this makes no sense in a sane build world
+
+--- a/Makefile
++++ b/Makefile
+@@ -21,7 +21,6 @@
+       
+ all: clean memtest.bin memtest 
+-               scp memtest.bin root@192.168.0.12:/srv/tftp/mt86plus
+ # Link it statically once so I know I don't have undefined
+ # symbols and then link it dynamically so I have full
index aa4a848888c7db1857141319bfede6d64ecf196e..f18f5b0fb70bbf46f0874adc4782e1f3a0fc0d69 100644 (file)
@@ -24,9 +24,9 @@ DEPEND=""
 
 src_prepare() {
        sed -i -e 's,0x10000,0x100000,' memtest.lds || die
-       sed -e "s/scp memtest.bin root@192.168.0.12:\/srv\/tftp\/mt86plus//g" -i Makefile
        epatch "${FILESDIR}/${P}-gcc-473.patch" \
                   "${FILESDIR}/${P}-hardcoded_cc.patch"
+       epatch "${FILESDIR}"/${P}-no-scp.patch
        epatch "${FILESDIR}"/${P}-io-extern-inline.patch #548312
        epatch "${FILESDIR}"/${P}-reboot-def.patch #548312