Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Apr 2023 22:21:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271139] lang/lua54: be aware of ABI break in new version 5.4.5
Message-ID:  <bug-271139-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271139

            Bug ID: 271139
           Summary: lang/lua54: be aware of ABI break in new version 5.4.5
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: andrew@tao11.riddles.org.uk
                CC: russ.haley@gmail.com
             Flags: maintainer-feedback?(russ.haley@gmail.com)
                CC: russ.haley@gmail.com

Putting this in here as a bug report even though the bug does not actually
exist yet in order to try and preempt any issues.

The just-released Lua 5.4.5 breaks the ABI by adding a new (pointer) parame=
ter
to an existing function (lua_resetthread), so anything that calls this will
likely crash or misbehave if it was compiled against an older 5.4.x but fin=
ds
itself linked against a 5.4.5 version of liblua-5.4.so. Furthermore there i=
s no
sane way for users of the library to protect against this, since no facilit=
y to
discover the exact library version is provided.

I have protested this change upstream, but I was too late; that was only ab=
out
half an hour before filing this, so I do not yet know what they will do.

I don't know what the best solution to this is. 5.4.5 fixes a lot of bugs, =
and
the ABI change is part of one of those fixes, but crashing is not a good
tradeoff. Perhaps the soname needs to change to include the minor version t=
oo,
but that's not a simple change and I don't know what other issues that would
cause.

Regardless, probably best not to just blindly update to 5.4.5 until this is=
sue
has been properly considered.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271139-7788>