diff options
author | maya <maya@pkgsrc.org> | 2019-09-30 10:05:19 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2019-09-30 10:05:19 +0000 |
commit | b7f602fd9b9c2225ab2926dda0bbc6d0c0f95b1e (patch) | |
tree | 4a19b6a37b41c402ae95c4461f8acdb633a318e9 /emulators/xm7 | |
parent | 82e091b834e24515dabb8a12d1ab286e44e239f8 (diff) | |
download | pkgsrc-b7f602fd9b9c2225ab2926dda0bbc6d0c0f95b1e.tar.gz |
xm7: avoid narrowing conversion.
point to mirror which happens to host this distfile (it's marked RESTRICTED,
so we can't host a copy, and probably this mirror shouldn't either, but
it unbreaks the package now.)
Diffstat (limited to 'emulators/xm7')
-rw-r--r-- | emulators/xm7/Makefile | 3 | ||||
-rw-r--r-- | emulators/xm7/distinfo | 3 | ||||
-rw-r--r-- | emulators/xm7/patches/patch-psg.cpp | 15 |
3 files changed, 19 insertions, 2 deletions
diff --git a/emulators/xm7/Makefile b/emulators/xm7/Makefile index 8bdc1261c7c..6a09489fce5 100644 --- a/emulators/xm7/Makefile +++ b/emulators/xm7/Makefile @@ -1,10 +1,11 @@ -# $NetBSD: Makefile,v 1.31 2012/10/23 10:24:04 wiz Exp $ +# $NetBSD: Makefile,v 1.32 2019/09/30 10:05:19 maya Exp $ # DISTNAME= xm71020s PKGNAME= xm7-1020s CATEGORIES= emulators MASTER_SITES= http://yohkai.no-ip.info/fm7/ +MASTER_SITES+= http://www.mirrorservice.org/pub/minix/distfiles/backup/ EXTRACT_SUFX= .zip MAINTAINER= tech-pkg-ja@jp.NetBSD.org diff --git a/emulators/xm7/distinfo b/emulators/xm7/distinfo index 4306585648d..a0f648b464b 100644 --- a/emulators/xm7/distinfo +++ b/emulators/xm7/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.16 2017/03/23 14:38:16 wiz Exp $ +$NetBSD: distinfo,v 1.17 2019/09/30 10:05:19 maya Exp $ SHA1 (xm71020s.zip) = 9a222f210de4d1107a966f4b739e3cb498504ece RMD160 (xm71020s.zip) = c65938b33081a7563dc13b0265b6f849ba4929e9 @@ -9,3 +9,4 @@ SHA1 (patch-ab) = 4e6cc9113e25eca32a1f672b82b3c07ed141a5b7 SHA1 (patch-ac) = 5a2dd19976d117651860d7ee5b83afe762050001 SHA1 (patch-ad) = 9b0a2187b1af22a743ffdf2caceaed5fac40df89 SHA1 (patch-ae) = ee3a92da9301db4aca1b9eff7b4850f17334345c +SHA1 (patch-psg.cpp) = a90c40c28d072b4493a0bec232a3d33d83ccb4f1 diff --git a/emulators/xm7/patches/patch-psg.cpp b/emulators/xm7/patches/patch-psg.cpp new file mode 100644 index 00000000000..45e9f918eff --- /dev/null +++ b/emulators/xm7/patches/patch-psg.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-psg.cpp,v 1.1 2019/09/30 10:05:19 maya Exp $ + +Avoid narrowing conversion, -1 isn't a valid unsigned number. + +--- psg.cpp.orig 2001-03-22 16:02:00.000000000 +0000 ++++ psg.cpp +@@ -125,7 +125,7 @@ void PSG::MakeEnvelopTable() + 2,2, 2,0, 2,1, 2,3, 1,1, 1,3, 1,2, 1,0, + }; + static uint8 table2[4] = { 0, 0, 31, 31 }; +- static uint8 table3[4] = { 0, 1, -1, 0 }; ++ static uint8 table3[4] = { 0, 1, 0xFF, 0 }; + + if (!enveloptable[0][0]) + { |