Date: Sat, 31 Mar 2007 17:52:03 +0200 (CEST) From: trasz <trasz@pin.if.uz.zgora.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/111061: [MAINTAINER] emulators/simh: load VAX firmware Message-ID: <20070331155203.84BDF39DBA@pin.if.uz.zgora.pl> Resent-Message-ID: <200703311550.l2VFo5N4029985@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111061 >Category: ports >Synopsis: [MAINTAINER] emulators/simh: load VAX firmware >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Mar 31 15:50:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: trasz >Release: FreeBSD 6.1-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006 >Description: Don't require VAX firmware to be copied to the current working directory. Added file(s): - files/patch-VAX-vax_sysdev.c Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- simh-3.7_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/emulators/simh/Makefile /home/trasz/simh/Makefile --- /usr/ports/emulators/simh/Makefile Wed Mar 28 08:17:18 2007 +++ /home/trasz/simh/Makefile Sat Mar 31 17:48:57 2007 @@ -7,6 +7,7 @@ PORTNAME= simh PORTVERSION= 3.7 +PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://simh.trailing-edge.com/sources/ DISTNAME= ${PORTNAME}v37-0 @@ -46,6 +47,9 @@ pre-patch: @${MKDIR} ${WRKSRC}/BIN + +post-patch: + ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/VAX/vax_sysdev.c do-install: .for file in ${BIN_FILES} diff -ruN --exclude=CVS /usr/ports/emulators/simh/files/patch-VAX-vax_sysdev.c /home/trasz/simh/files/patch-VAX-vax_sysdev.c --- /usr/ports/emulators/simh/files/patch-VAX-vax_sysdev.c Thu Jan 1 01:00:00 1970 +++ /home/trasz/simh/files/patch-VAX-vax_sysdev.c Sat Mar 31 17:48:57 2007 @@ -0,0 +1,19 @@ +--- VAX/vax_sysdev.c.orig Sat Mar 24 09:13:42 2007 ++++ VAX/vax_sysdev.c Sat Mar 24 09:17:45 2007 +@@ -1524,8 +1524,15 @@ + if (sim_log) fprintf (sim_log, + "Loading boot code from ka655x.bin\n"); + r = load_cmd (0, "-R ka655x.bin"); +- if (r != SCPE_OK) return r; ++ if (r != SCPE_OK) { ++ printf ("Loading boot code from %%PREFIX%%/share/simh/ka655x.bin\n"); ++ if (sim_log) fprintf (sim_log, ++ "Loading boot code from %%PREFIX%%/share/simh/ka655x.bin\n"); ++ r = load_cmd (0, "-R %%PREFIX%%/share/simh/ka655x.bin"); ++ if (r != SCPE_OK) ++ return r; + } ++} + return SCPE_OK; + } + --- simh-3.7_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070331155203.84BDF39DBA>