Re: SWIG 4.3 Deprecated t_output_helper and backwards compatibility
"Seth G" <[email protected]> Tue, 18 Jun 2024 09:42:59 +0200
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <[email protected]> |
--===============0028136759079102560== Content-Type: multipart/alternative; boundary=bf4824bb6dcc4b3a97615956355aee35 --bf4824bb6dcc4b3a97615956355aee35 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Julien - that is the approach we went with.=20 Final pull request at https://github.com/MapServer/MapServer/pull/7083/f= iles Seth -- web:https://geographika.net & https://mapserverstudio.net twitter: @geographika On Tue, Jun 18, 2024, at 8:54 AM, Julien Marrec wrote: > Macros? >=20 > SWIG_VERSION is a hexadecimal integer such as 0x010311 (corresponding = to SWIG-1.3.11). >=20 > #if SWIG_VERSION < 0x040300 > // Swig before 4.3.0 > #else > // Swig at 4.3.0 and above > #endif > -- > Julien Marrec, EBCP, BPI MFBA > Owner at EffiBEM <http://www.effibem.com> > T: +33 6 95 14 42 13 >=20 > LinkedIn (en <https://www.linkedin.com/in/julienmarrec>) *| *(fr <http= s://fr.linkedin.com/in/julienmarrec/fr>) : <http://www.linkedin.com/in/j= ulienmarrec> >=20 >=20 > Le lun. 17 juin 2024 =C3=A0 18:52, Seth G <[email protected]> a = =C3=A9crit : >> Hi all, >>=20 >> We ran into some build issues with the latest SWIG master (4.3.0) - = which removes t_output_helper.=20 >>=20 >> I've updated the code as suggested in the release notes by using SWIG= _Python_AppendOutput. See https://github.com/MapServer/MapServer/pull/70= 83/files >>=20 >> Is there a way to make this change compatible with both 4.3.0 and pre= vious 4.x SWIG builds? >>=20 >> SWIG_Python_AppendOutput expects a new $is_void parameter in 4.3.0 bu= t won't build in previous versions when added, e.g. SWIG_Python_AppendOu= tput($result,r,1); >>=20 >> Thanks for any hints, >>=20 >> Seth >>=20 >>=20 >>=20 >>=20 >> _______________________________________________ >> Swig-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/swig-user --bf4824bb6dcc4b3a97615956355aee35 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso= Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>Thanks Julien -= that is the approach we went with. <br></div><div>Final pull request at= <a href=3D"https://github.com/MapServer/MapServer/pull/7083/files">http= s://github.com/MapServer/MapServer/pull/7083/files</a><br></div><div><br= ></div><div>Seth<br></div><div><br></div><div id=3D"sig62266145"><div cl= ass=3D"signature">--<br></div><div class=3D"signature">web:<a href=3D"ht= tps://geographika.net">https://geographika.net</a> & <a href=3D= "https://mapserverstudio.net">https://mapserverstudio.net</a><br></div><= div class=3D"signature">twitter: @geographika<br></div></div><div><br></= div><div>On Tue, Jun 18, 2024, at 8:54 AM, Julien Marrec wrote:<br></div= ><blockquote type=3D"cite" id=3D"qt" style=3D""><div dir=3D"ltr"><div>Ma= cros?<br></div><div><br></div><div>SWIG_VERSION is a hexadecimal integer= such as 0x010311 (corresponding to SWIG-1.3.11).<br></div><div><br></di= v><div>#if SWIG_VERSION < 0x040300<br></div><div> // Swig= before 4.3.0<br></div><div>#else<br></div><div> // Swig at 4.3.0 = and above<br></div><div>#endif<br></div><div><div dir=3D"ltr" class=3D"q= t-gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D= "ltr"><div><div>--<br></div><div>Julien Marrec, EBCP, BPI MFBA<br></div>= <div>Owner at <a href=3D"http://www.effibem.com" target=3D"_blank">EffiB= EM</a><br></div><div>T: +33 6 95 14 42 13<br></div><div><span style=3D"c= olor:rgb(0, 0, 0);"><br></span><span style=3D"color:rgb(0, 0, 0);">Linke= dIn (<a href=3D"https://www.linkedin.com/in/julienmarrec" target=3D"_bla= nk">en</a>)<span style=3D"color:rgb(0, 0, 0);"> <i>| </i></span>(<a href= =3D"https://fr.linkedin.com/in/julienmarrec/fr" target=3D"_blank">fr</a>= ) :</span><span style=3D"color:rgb(0, 0, 0);"><a href=3D"http://www.link= edin.com/in/julienmarrec" target=3D"_blank"></a></span></div></div></div= ></div></div></div></div></div></div><div><br></div></div><div><br></div= ><div class=3D"qt-gmail_quote"><div dir=3D"ltr" class=3D"qt-gmail_attr">= Le lun. 17 juin 2024 =C3=A0 18:52, Seth G <<a href=3D"mailt= o:[email protected]">[email protected]</a>> a =C3=A9crit&= nbsp;:<br></div><blockquote class=3D"qt-gmail_quote" style=3D"margin-top= :0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-wi= dth:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);pad= ding-left:1ex;"><div>Hi all,<br></div><div> <br></div><div> We ran into = some build issues with the latest SWIG master (4.3.0) - which remo= ves t_output_helper. <br></div><div> <br></div><div> I've updated the co= de as suggested in the release notes by using SWIG_Python_AppendOutput. = See <a href=3D"https://github.com/MapServer/MapServer/pull/7083/files" r= el=3D"noreferrer" target=3D"_blank">https://github.com/MapServer/MapServ= er/pull/7083/files</a><br></div><div> <br></div><div> Is there a way to = make this change compatible with both 4.3.0 and previous 4.x SWIG builds= ?<br></div><div> <br></div><div> SWIG_Python_AppendOutput expects a new = $is_void parameter in 4.3.0 but won't build in previous versions when ad= ded, e.g. SWIG_Python_AppendOutput($result,r,1);<br></div><div> <br></di= v><div> Thanks for any hints,<br></div><div> <br></div><div> Seth<br></d= iv><div> <br></div><div> <br></div><div> <br></div><div> <br></div><div>= _______________________________________________<br></div><div> Swig-use= r mailing list<br></div><div> <a href=3D"mailto:[email protected]= rge.net" target=3D"_blank">[email protected]</a><br></div>= <div> <a href=3D"https://lists.sourceforge.net/lists/listinfo/swig-user"= rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/list= s/listinfo/swig-user</a><br></div></blockquote></div></blockquote><div><= br></div></body></html> --bf4824bb6dcc4b3a97615956355aee35-- --===============0028136759079102560== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0028136759079102560== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Swig-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/swig-user --===============0028136759079102560==--