pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/xclannad games/xclannad: fix broken build on net...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aefbdfa03e9f
branches:  trunk
changeset: 771793:aefbdfa03e9f
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon Dec 27 05:11:34 2021 +0000

description:
games/xclannad: fix broken build on netbsd-current

diffstat:

 games/xclannad/distinfo                          |   4 +-
 games/xclannad/patches/patch-scn2k_scn2k__cmd.cc |  80 ++++++++++++++++++++++-
 2 files changed, 78 insertions(+), 6 deletions(-)

diffs (129 lines):

diff -r 6564f0524673 -r aefbdfa03e9f games/xclannad/distinfo
--- a/games/xclannad/distinfo   Mon Dec 27 04:59:56 2021 +0000
+++ b/games/xclannad/distinfo   Mon Dec 27 05:11:34 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:44:32 nia Exp $
+$NetBSD: distinfo,v 1.5 2021/12/27 05:11:34 dholland Exp $
 
 BLAKE2s (xclannad-7hc.tar.gz) = 313c00a10aaeba1fc7bcc69578f2976f5df00414636a27ee19d498cee52ae5ad
 SHA512 (xclannad-7hc.tar.gz) = 5d14c1ca6932d0a013e36c2af51d0d4de2cb73e4c438ccf2bebf03f223a62649203726cc552f975e3177ea614f79c1d2d0d36220116289f0bb8f65a74997ac27
@@ -7,7 +7,7 @@
 SHA1 (patch-font_font__peer__ft2.cc) = cb40078c701d1bf6c5113d21890ed8d9fbb18b62
 SHA1 (patch-font_text__stream.cc) = 27b2812c199f69f4d58cc9324c9aa56b713b5abe
 SHA1 (patch-music2_music.cc) = fe8c90d9901a86dc6c799a1482ffe8ca7ca53c98
-SHA1 (patch-scn2k_scn2k__cmd.cc) = b0710214e612a45fed159169ee36c0ab0126ab81
+SHA1 (patch-scn2k_scn2k__cmd.cc) = 6a516de79f5ded1f3fd6ceb716dfffda3ec20309
 SHA1 (patch-scn2k_scn2k__grp.cc) = cf0c7efa5fcac698873665b9b51f98b62344fb1d
 SHA1 (patch-scn2k_scn2k__impl.cc) = 197b876d15608ba65cf4ea527bf7e108d3007ad5
 SHA1 (patch-scn2k_scn2k__text.cc) = aef8170b267a5a2b3f9ddbe9246fbdab8d0856cb
diff -r 6564f0524673 -r aefbdfa03e9f games/xclannad/patches/patch-scn2k_scn2k__cmd.cc
--- a/games/xclannad/patches/patch-scn2k_scn2k__cmd.cc  Mon Dec 27 04:59:56 2021 +0000
+++ b/games/xclannad/patches/patch-scn2k_scn2k__cmd.cc  Mon Dec 27 05:11:34 2021 +0000
@@ -1,7 +1,10 @@
-$NetBSD: patch-scn2k_scn2k__cmd.cc,v 1.2 2020/03/26 02:33:34 joerg Exp $
+$NetBSD: patch-scn2k_scn2k__cmd.cc,v 1.3 2021/12/27 05:11:34 dholland Exp $
 
 - don't assume signed char for arm and powerpc
 - fix wrong casts
+- silence const warning
+- remove chunk of text in #if 0 that doesn't necessarily tokenize
+  (depending apparently on character set settings)
 
 --- scn2k/scn2k_cmd.cc.orig    2008-08-31 09:52:12.000000000 +0000
 +++ scn2k/scn2k_cmd.cc
@@ -67,7 +70,67 @@
                                else s++;
                        }
                        SetSys(i);
-@@ -682,8 +682,8 @@ int Cmd::GetLeftToken(const char*& d, Va
+@@ -533,59 +533,6 @@ bool Flags::Exec(Cmd& cmd) {
+                               cmd.cmd4 = 0;
+                       }
+ 
+-#if 0
+-@@@
+-save 27
+-¤È¤â¤è¥á¥¬¥Í¤Î¤È¤³¤í
+-- ¥ª¥Ö¥¸¥§¥¯¥È´ØÏ¢¡§seen9061:0 ¸Æ¤Ó½Ð¤·¤Ç¹õ¤¤Çطʲè¤ò¤«¤µ¤Í¤ë¤È¤³¤í¡¢ÊѤˤʤë
+-@@@
+-¡ó£Ø¤ÇÃÖ´¹¤¹¤ë̾Á°¤ÎÀßÄê¡£0x51e ¤ÇÆɤߤÀ¤·¡£¥»¡¼¥Ö¥Õ¥¡¥¤¥ë¤´¤È¤ËÊݸ¤µ¤ì¤ë¤Ï¤º¤Ê¤Î¤Ç¼ÂÁõ¤ò¹Í¤¨¤ë¤³¤È
+-¡ó¤Ï0-3 (4 °Ê¹ß¤Ï»È¤Ã¤Æ¤Ê¤¤¡Ë¤Ç¡¢½í¡¢½©À¸¡¢½í¡¢°Ë¿áÀèÀ¸¡¢¤Ê¤É
+-StrVar ¤ò³ÈÄ¥¤·¤ÆÂåÆþ¤¹¤ë¤³¤È
+-½é´üÃͤϤ³¤ÎÊÕ
+-Text¦¤ËǼ¤á¡¢¥»¡¼¥Ö¥Õ¥¡¥¤¥ë¤Ç¤âƱ¤¸¤è¤¦¤Ë¤¹¤Ù¤­¤À¤í¤¦¤Ê¤¢
+-        args:0,"½í"
+-        args:1,"½©À¸"
+-        args:2,"½í"
+-        args:3,"°Ë¿áÀèÀ¸"
+-        args:4,"ÊþÌ餯¤ó"
+-        args:5,"²¬ºê¤µ¤ó"
+-
+-
+-106737 :  0x23 - cmd 01-04:051f:00[ 2] 
+-        args:0,"¸Å²Ï"
+-106758 : line 1712
+-106761 :  0x23 - cmd 01-04:051f:00[ 2] 
+-        args:2,"¸Å²Ï"
+-106782 : line 1713
+-106785 :  0x23 - cmd 01-04:051f:00[ 2] 
+-        args:4,"²¬ºê¤µ¤ó"
+-
+-47382 :  0x23 - cmd 01-04:051e:00[ 2] 
+-        args:4,V<18>[0](=0)
+-
+-47408 :  0x23 - cmd 01-0a:0004:00[ 2] 
+-        args:V<18>[0](=0),"²¬ºê¤µ¤ó"
+-47437 : expr: V<0>[1000](=0)=V<sys>
+-47451 :  0x23 - cmd 01-0a:0004:00[ 2] 
+-        args:V<18>[0](=0),"ÊþÌ餯¤ó"
+-47480 : expr: V<0>[1001](=0)=V<sys>
+-47494 :         V<0>[1000](=0)==0(=true)-> 47589
+-47526 :  0x23 - cmd 01-04:0514:00[ 2] 
+-        args:0,V<18>[0](=0)           /* NAME.A ¤òµ¢¤¹ */
+-47552 :  0x23 - cmd 01-0a:0002:00[ 2] 
+-        args:V<18>[0](=0),"¤µ¤ó"
+-47577 :         jmp -> 47672
+-47589 :         V<0>[1001](=0)==0(=true)-> 47672
+-47621 :  0x23 - cmd 01-04:0514:00[ 2] 
+-        args:1,V<18>[0](=0)           /* NAME.B ¤òµ¢¤¹ */
+-47647 :  0x23 - cmd 01-0a:0002:00[ 2] 
+-        args:V<18>[0](=0),"¤¯¤ó"
+-47672 : pos. 279
+-47675 :  0x23 - cmd 01-0a:0064:00[ 1] 
+-        args:V<18>[0](=0)
+-
+-#endif
+                       cmd.cmd_type = CMD_TEXT;
+                       break;
+               }
+@@ -682,8 +629,8 @@ int Cmd::GetLeftToken(const char*& d, Va
                d += 2;
                var_flag = false;
        }
@@ -78,7 +141,7 @@
                // numerical atom
                d += 6;
                value = read_little_endian_int(d-4);
-@@ -1001,7 +1001,7 @@ dprintf("enum.<");
+@@ -1001,7 +948,7 @@ dprintf("enum.<");
                        int count = GetArgs(d);
                        args[pt] = VarInfo(count);
  dprintf(">");
@@ -87,7 +150,16 @@
                        /* »È¤ï¤ì¤ë¥³¥Þ¥ó¥É¤Ï 01-21:004b, 01-28:0064 ¤Î¤¤¤º¤ì¤«¡ÊR,C,PB,LO)
                        ** ¤½¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï
                        ** arg1: ²èÁü¥Õ¥¡¥¤¥ë̾
-@@ -1714,10 +1714,10 @@ int main(int argc, char** argv) {
+@@ -1220,7 +1167,7 @@ void Cmd::GetSelection(const char*& d) {
+       return;
+ }
+ 
+-static char* op_str3[11] = { "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", "="};
++static const char* op_str3[11] = { "+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", "="};
+ void Cmd::GetCmd(Flags& flags_orig, const char*& d ) {
+       if (d == 0) { SetError(); return;}
+       if (cmd_type != CMD_NOP) return;
+@@ -1714,10 +1661,10 @@ int main(int argc, char** argv) {
                        Cmd cmd(flags, system_version); cmd.ClearError();
  
                        /* end? */



Home | Main Index | Thread Index | Old Index