Attempting to run libreoffice with W^X enabled results in this failure to start: # sysctl kern.elf64.allow_wx=0 % libreoffice LibreOffice 7.0 - Fatal Error: The application cannot be started. Extension Manager: exception in synchronize elfctl(1) can be used to tag binaries that require W+X mappings; discussion about a canonical method of applying these tags is being discussed in PR252629
(In reply to Ed Maste from comment #0) Sometimes the error message is even more ambiguous: Application Error Observed on recent 13.0-STABLE and 14.0-CURRENT.
Created attachment 240717 [details] elfctl +wxneeded for the binary The libreoffice binary can be treated with Uses/elfctl during the build, this works and prevents the problem (patch attached). But that is not the only problem: by default libreoffice requires JAVA (here: java/openjdk11), and that port has the same problem, it also requires allow_wx. What is worse, the java/openjdk11 cannot be treated with Uses/elfctl, because it computes the build directory dynamically.
(In reply to Peter Much from comment #2) > What is worse, the java/openjdk11 cannot be treated with Uses/elfctl, because > it computes the build directory dynamically. We'll want to have a separate PR to track this for openjdk11
(In reply to Ed Maste from comment #3) PR256477 could possibly serve as the tracking PR for openjdk11