tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
GCC GNAT 14 issue with gettext
Hi!
I have a problem with a package that I want to add to pkgsrc.
My problem is specifically with wip/gcc14-gnat, but the same problem exists with lang/gcc14, although it is
currently hidden there.
wip/gcc14-gnat has NLS option and uses libiconv and gettext-lib for this.
The problem itself:
The current version of the package builds fine, but binary package does not install in a clean environment with
message
pkg_add: Missing required library: /usr/pkg/lib/libintl.so.8
The immediate cause of the problem:
That's because the binaries are linked against the pkgsrc version of libintl (and libiconv), but there is no
dependency on neither libiconv nor gettext-lib in the binary package deps, thus the builtin (base system's)
versions only are required.
Of course there is also no full dependencies on libiconv and gettext-lib in build log:
==========================================================================
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> Tool dependency perl>=5.0: found perl-5.40.1
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency gcc10-aux>=10.3.0nb1: found gcc10-aux-10.3.0nb2
=> Full dependency gsed>=3.0.2: found gsed-4.9nb1
=> Full dependency gmp>=5.0.1: found gmp-6.3.0
=> Full dependency isl>=0.24: found isl-0.26
=> Full dependency mpcomplex>=1.0.3nb1: found mpcomplex-1.3.1
=> Full dependency mpfr>=4.0.0: found mpfr-4.2.1
=> Full dependency zstd>=1.3.6: found zstd-1.5.6
===> Skipping vulnerability checks.
The origins of the problem:
GCC 14 raised requirements for libiconv and libintl libraries versions, thus, the version from the base system no
longer satisfies requirements, but the version from pkgsrc satisfies.
Therefore, NLS in gcc14 package (and gcc14-gnat) went down - although it is turned on in the package, it is turned
off implicitly at the "configure" stage 2 ("use NLS... no").
As a result, the gcc14 binary package no longer contains a share/locale folder, unlike gcc13, but this is hidden
by the fact that gcc packages do not provide a PLIST.
gettext-tools/msgfmt-desktop.mk was added in gcc14-gnat to fix this problem, but it resulted in the problem
described at the beginning.
Does anyone have any suggestions on how to fix the problem, please?
Except for the obvious option of "turning off NLS" - I would like to solve the problem, rather than hide it.
Thanks,
Dmytro.
Home |
Main Index |
Thread Index |
Old Index