Re: Patches leading towards being able to run GIFT on a modern machine

Sarah Kate <[email protected]> Tue, 11 Oct 2022 14:32:24 -0400
Newsgroups gmane.comp.gnu.gift.general
Message-ID <CANwV=5KjAww3sfFFwrt2WYgDjy=HnoYactOp_45dEDP47ik75w@mail.gmail.com>
--===============6015182126450293170==
Content-Type: multipart/alternative; boundary="000000000000e0c55905eac680d7"

--000000000000e0c55905eac680d7
Content-Type: text/plain; charset="UTF-8"

Hi again,

I have done more work to build/run GIFT on Debian Bullseye.
There is a Docker image where you can see it working. It is paired with
monosock's PHP MRML client.

See the patches here:
https://github.com/sarahkw/dockerize-gift/tree/v0.0.1/patches-gift
Review these patches instead of the ones on the previous e-mail.

Or look at the repository if you'd like to try it out in Docker:
https://github.com/sarahkw/dockerize-gift/tree/v0.0.1

The status is that it runs now, although compiler optimizations have to be
disabled.
I guess recent versions of gcc are more aggressive optimizing than older
versions and that makes undefined behavior more of a problem.

-Sarah

On Fri, Oct 7, 2022 at 4:06 PM Sarah Kate <[email protected]> wrote:

> Hello,
>
> Here are 2 patches that help towards being able to run GIFT on a modern
> machine.
> (Debian 11, g++ 10.2.1)
>
> - modern-cpp.patch allows for compilation
> - fix-undefined-behavior-when-writing-errors.patch stops undefined
> behavior when GIFT wants to write error messages. It was writing "\n" to
> console on an infinite loop for me.
>
> Please consider applying them.
>
> Thanks,
> Sarah
>

--000000000000e0c55905eac680d7
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>Hi again,</div><div><br></div><div>I=
 have done more work to build/run GIFT on Debian Bullseye.</div><div>There =
is a Docker image where you can see it working. It is paired with monosock&=
#39;s PHP MRML client.<br></div><div><br></div><div>See the patches here:</=
div><div><a href=3D"https://github.com/sarahkw/dockerize-gift/tree/v0.0.1/p=
atches-gift">https://github.com/sarahkw/dockerize-gift/tree/v0.0.1/patches-=
gift</a></div><div>Review these patches instead of the ones on the previous=
 e-mail.</div><div><br></div><div>Or look at the repository if you&#39;d li=
ke to try it out in Docker:</div><div><a href=3D"https://github.com/sarahkw=
/dockerize-gift/tree/v0.0.1">https://github.com/sarahkw/dockerize-gift/tree=
/v0.0.1</a></div><div><br></div><div>The status is that it runs now, althou=
gh compiler optimizations have to be disabled.</div><div>I guess recent ver=
sions of gcc are more aggressive optimizing than older versions and that ma=
kes undefined behavior more of a problem.<br></div><div><br></div><div>-Sar=
ah<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"=
gmail_attr">On Fri, Oct 7, 2022 at 4:06 PM Sarah Kate &lt;<a href=3D"mailto=
:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Hello,</di=
v><div><br></div><div>Here are 2 patches that help towards being able to ru=
n GIFT on a modern machine.</div><div>(Debian 11, g++ 10.2.1)</div><div><br=
></div><div>- modern-cpp.patch allows for compilation<br></div><div>- fix-u=
ndefined-behavior-when-writing-errors.patch stops undefined behavior when G=
IFT wants to write error messages. It was writing &quot;\n&quot; to console=
 on an infinite loop for me.<br></div><div><br></div><div>Please consider a=
pplying them.</div><div><br></div><div>Thanks,</div><div>Sarah<br></div></d=
iv>
</blockquote></div></div>

--000000000000e0c55905eac680d7--


--===============6015182126450293170==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaGVscC1HSUZU
IG1haWxpbmcgbGlzdApoZWxwLUdJRlRAZ251Lm9yZwpodHRwczovL2xpc3RzLmdudS5vcmcvbWFp
bG1hbi9saXN0aW5mby9oZWxwLWdpZnQK

--===============6015182126450293170==--