[Bug 250726] lang/luajit: switch to LLVM10 from ports for 12.1/amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Oct 29 18:33:02 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250726

            Bug ID: 250726
           Summary: lang/luajit: switch to LLVM10 from ports for
                    12.1/amd64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: osa at FreeBSD.org
          Reporter: kevans at freebsd.org
          Assignee: osa at FreeBSD.org
             Flags: maintainer-feedback?(osa at FreeBSD.org)

Created attachment 219206
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=219206&action=edit
svn(1) diff against the ports tree

There's a little more detail in the patch comments, but 12.1 shipped with LLVM
8.0.1 which links libluajit with a bogus (improperly aligned) TLS segment
offset. Notably, this breaks under 12.2 rtld and causes a SIGBUS when an error
is raised (see, e.g., bug #250707, comment #1).

Since the issue is technically a broken binary, the attached patch pins
12.1/amd64 builds of luajit to devel/llvm10 so that they can be rebuilt with a
linker that will handle this properly and stop breaking luajit-dependant
applications on 12.2 while the packages are still built on 12.1. This will
naturally fall away when portmgr goes to axe conditionals solely for FreeBSD
12.1 after it goes EOL.

The src/Makefile patch has been dropped in this version in favor of just
supplying the variables it was unsetting via Make arguments, but I'm not
attached to this approach... at least the DEFAULT_CC hunk was redundant since
we were setting CC via make(1) argument already.

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


More information about the freebsd-ports-bugs mailing list