[Bug 277945] devel/gettext-runtime: fails build WITH_LTO=yes

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 25 Mar 2024 12:43:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277945

            Bug ID: 277945
           Summary: devel/gettext-runtime: fails build WITH_LTO=yes
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tijl@FreeBSD.org
          Reporter: nimaje+fbz@bureaucracy.de
             Flags: maintainer-feedback?(tijl@FreeBSD.org)
          Assignee: tijl@FreeBSD.org

Created attachment 249470
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=249470&action=edit
devel/gettext-runtime: mark LTO_UNSAFE

devel/gettext-runtime fails to build if WITH_LTO=yes is set.

relevant part of the log:
--- libintl.la ---
/bin/sh ./libtool  --tag=CC    --mode=link cc -fvisibility=hidden -O2 -pipe 
-DLIBICONV_PLUG -flto=thin -fstack-protector-strong -fno-strict-aliasing      
-no-undefined  -export-symbols-regex
'^([^_]|_[^l]|_l[^i]|_li[^b]|_lib[^i]|_libi[^n]|_libin[^t]|_libint[^l]|_libintl[^_]).*'
 -version-info 12:0:4  -rpath /usr/local/lib -flto=thin
-fstack-protector-strong -o libintl.la  bindtextdom.lo dcgettext.lo dgettext.lo
gettext.lo  finddomain.lo hash-string.lo loadmsgcat.lo localealias.lo 
textdomain.lo l10nflist.lo explodename.lo dcigettext.lo  dcngettext.lo
dngettext.lo ngettext.lo plural.lo plural-exp.lo  langprefs.lo log.lo printf.lo
setlocale.lo version.lo osdep.lo  intl-compat.lo gnulib-lib/libgnu.la  
libtool: link: /usr/bin/nm  .libs/bindtextdom.o .libs/dcgettext.o
.libs/dgettext.o .libs/gettext.o .libs/finddomain.o .libs/hash-string.o
.libs/loadmsgcat.o .libs/localealias.o .libs/textdomain.o .libs/l10nflist.o
.libs/explodename.o .libs/dcigettext.o .libs/dcngettext.o .libs/dngettext.o
.libs/ngettext.o .libs/plural.o .libs/plural-exp.o .libs/langprefs.o
.libs/log.o .libs/printf.o .libs/setlocale.o .libs/version.o .libs/osdep.o
.libs/intl-compat.o   gnulib-lib/.libs/libgnu.a |  | /usr/bin/sed 's/.* //' |
sort | uniq > .libs/libintl.exp
eval: 1: Syntax error: "|" unexpected
*** [libintl.la] Error code 2

Until that is fixed it should be marked as LTO_UNSAFE

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