From 3e00bf7f7211b81ae8a117b81ab3377d01c12466 Mon Sep 17 00:00:00 2001 From: fgsch Date: Wed, 21 Dec 2005 02:24:55 +0000 Subject: [PATCH] and make this backwards compatible regarding interface names; found the hard way by matthieu@. --- emulators/simh/Makefile | 4 ++-- emulators/simh/patches/patch-sim_ether_c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 emulators/simh/patches/patch-sim_ether_c diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile index 4ab2a74f4f3..b3e1ec068d2 100644 --- a/emulators/simh/Makefile +++ b/emulators/simh/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.50 2005/12/21 01:32:28 fgsch Exp $ +# $OpenBSD: Makefile,v 1.51 2005/12/21 02:24:55 fgsch Exp $ # $NetBSD: Makefile,v 1.2 1998/08/23 20:48:03 frueauf Exp $ COMMENT= "PDP, IBM 1401, Nova and other CPUs simulator" DISTNAME= simh-3.5-1 -PKGNAME= ${DISTNAME}p0 +PKGNAME= ${DISTNAME}p1 CATEGORIES= emulators MASTER_SITES= http://simh.trailing-edge.com/sources/ DISTFILES= simhv35-1.zip diff --git a/emulators/simh/patches/patch-sim_ether_c b/emulators/simh/patches/patch-sim_ether_c new file mode 100644 index 00000000000..5d63b383d60 --- /dev/null +++ b/emulators/simh/patches/patch-sim_ether_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-sim_ether_c,v 1.6 2005/12/21 02:24:56 fgsch Exp $ +--- sim_ether.c.orig Wed Dec 21 02:13:18 2005 ++++ sim_ether.c Wed Dec 21 02:13:57 2005 +@@ -656,7 +656,7 @@ t_stat eth_open(ETH_DEV* dev, char* name + /* are they trying to use device description? */ + savname = eth_getname_bydesc(name, temp); + if (savname == 0) /* didn't translate */ +- return SCPE_OPENERR; ++ savname = name; + } + + /* attempt to connect device */