Test ran at 2025-08-13 01:18:17.762287+00:00 SOLUTION: intl=1.0.1: NLS thin Ada binding Origin: commit 881966ea8636d4f0f64bb7e59107d446f812fffa from https://gitlab.com/stcarrez/ada-intl.git Properties: Author: Stephane.Carrez@gmail.com Configuration: no modifiers Description: NLS thin Ada binding GPR Scenario: INTL_USE_LIBINTL := yes | no GPR Scenario: INTL_USE_NLS := yes | no case OS is when Freebsd => (GPR External: INTL_USE_LIBINTL := yes and GPR External: INTL_USE_NLS := yes) when Linux => (GPR External: INTL_USE_LIBINTL := no and GPR External: INTL_USE_NLS := yes) when Macos => (GPR External: INTL_USE_LIBINTL := no and GPR External: INTL_USE_NLS := no) when Windows => (GPR External: INTL_USE_LIBINTL := no and GPR External: INTL_USE_NLS := no) License: Apache-2.0 Long_Description: This is a small Ada library that provides NLS support by using [gettext (3)](https://linux.die.net/man/3/gettext), [textdomain (3)](https://linux.die.net/man/3/textdomain) and [bindtextdomain (3)](https://linux.die.net/man/3/bindtextdomain). When NLS is not supported or disabled, the Ada library implements the NLS operations by using empty suitable stubs that skip the NLS transformation and emit the English default message. ## Using the library The first step in using the NLS library is to call the `Initialize` procedure that handles the setup of `textdomain` and `bindtextdomain` to configure the language according to the user's locale. The program localized messages are stored in a catalog file that is created by `msginit (1)` and `msgfmt (1)` tools. In most cases catalog file are identified by a unique name that must be given to the `Initialize` procedure (below, it will be `mytool`). ``` with Intl; ... PROG_NAME : constant String := "mytool"; ... Intl.Initialize (PROG_NAME, "/usr/share/locale"); ``` To localize a message, the `"-"` function is provided to encapsulate the call to the [gettext (3)](https://linux.die.net/man/3/gettext) method. If the message is translated and the catalog contains it in the user's language, it will be converted by `gettext` and the `"-"` function returns the localized message. ``` with GNAT.IO; ... function "-" (Message : in String) return String is (Intl."-" (Message)); ... GNAT.IO.Put_Line (-("Hello world!")); ``` To build the message translation file (`PO files`), a tool can be used to extract from the source code the default messages. This process is explained in the [GNU gettext](https://www.gnu.org/software/gettext/manual/) documentation. Maintainer: Stephane.Carrez@gmail.com Maintainers_Logins: stcarrez Name: intl Tag: i18n Tag: nls Tag: bindings Version: 1.0.1 Website: https://gitlab.com/stcarrez/ada-intl LOG: [alr test] Testing intl=1.0.1 [alr test] Spawning retrieval for remote crate: alr -d -n get intl=1.0.1 Note: Deploying intl=1.0.1... intl=1.0.1 successfully retrieved. There are no dependencies. [alr test] Spawning default test for remote crate: alr -d -n build --release -- -cargs:Ada -gnatwn Note: Building intl=1.0.1/intl.gpr... /root/.local/share/alire/toolchains/gprbuild_25.0.1_9a2e6cfb/bin/gprbuild: /lib64/libc.so.6: version `GLIBC_2.35' not found (required by /root/.local/share/alire/toolchains/gprbuild_25.0.1_9a2e6cfb/bin/gprbuild) stderr: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/runner/work/alire-crates-ci/alire-crates-ci/test/6c219bd2-9d52-4c9a-9c59-ddf6c0199a93/intl_1.0.1_881966ea/intl.gpr", "-cargs:Ada", "-gnatwn"] exited with code 1 ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/runner/work/alire-crates-ci/alire-crates-ci/test/6c219bd2-9d52-4c9a-9c59-ddf6c0199a93/intl_1.0.1_881966ea/intl.gpr", "-cargs:Ada", "-gnatwn"] exited with code 1 stderr: ALIRE.CHECKED_ERROR stderr: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/runner/work/alire-crates-ci/alire-crates-ci/test/6c219bd2-9d52-4c9a-9c59-ddf6c0199a93/intl_1.0.1_881966ea/intl.gpr", "-cargs:Ada", "-gnatwn"] exited with code 1 stderr: raised ALIRE.CHECKED_ERROR : alire-stored-error:1 [/usr/bin/alr] 0xe75bc6 Alire.Raise_Checked_Error at alire.adb:284 0xac1a54 Alire.Os_Lib.Subprocess.Checked_Spawn at alire-os_lib-subprocess.adb:111 0xd40276 Alire.Spawn.Command at alire-spawn.adb:22 0xd412ee Alire.Spawn.Gprbuild at alire-spawn.adb:68 0xc748cb Alire.Roots.Build at alire-roots.adb:189 0xc7301a Alire.Roots.Build at alire-roots.adb:255 0xc9832b Alire.Roots.Traverse at alire-roots.adb:2143 0xcfee85 Alire.Solutions.Traverse.Visit at alire-solutions.adb:1472 0xcfdfcc Alire.Solutions.Traverse at alire-solutions.adb:1555 0xc9841e Alire.Roots.Traverse at alire-roots.adb:2147 0xc984dd Alire.Roots.Traverse at alire-roots.adb:2127 0xc7359b Alire.Roots.Build at alire-roots.adb:286 0xc736d7 Alire.Roots.Build at alire-roots.adb:114 0x49aa0d Alr.Commands.Build.Execute at alr-commands-build.adb:145 0x49a36d Alr.Commands.Build.Execute at alr-commands-build.adb:113 0x49a51f Alr.Commands.Build.Execute at alr-commands-build.adb:54 0x53bbcc Alr.Commands.Sub_Cmd.Execute at clic-subcommand-instance.adb:749 0x5472be Alr.Commands.Execute at alr-commands.adb:632 0x43d48a Alr.Main at alr-main.adb:13 0x4403a3 Main at b__alr-main.adb:2445 [/lib64/libc.so.6] 0x7f346e6515ce 0x7f346e65167e [/usr/bin/alr] 0x43d323 _start at ??? 0xfffffffffffffffe stderr: ALIRE.ROOTS.BUILD._WRAPPED_STATEMENTS.BUILD_FAILED stderr: alire-roots.adb:202 stderr: raised ALIRE.ROOTS.BUILD._WRAPPED_STATEMENTS.BUILD_FAILED : alire-roots.adb:202 [/usr/bin/alr] 0xc74cc7 Alire.Roots.Build at alire-roots.adb:202 0xc7301a Alire.Roots.Build at alire-roots.adb:255 0xc9832b Alire.Roots.Traverse at alire-roots.adb:2143 0xcfee85 Alire.Solutions.Traverse.Visit at alire-solutions.adb:1472 0xcfdfcc Alire.Solutions.Traverse at alire-solutions.adb:1555 0xc9841e Alire.Roots.Traverse at alire-roots.adb:2147 0xc984dd Alire.Roots.Traverse at alire-roots.adb:2127 0xc7359b Alire.Roots.Build at alire-roots.adb:286 0xc736d7 Alire.Roots.Build at alire-roots.adb:114 0x49aa0d Alr.Commands.Build.Execute at alr-commands-build.adb:145 0x49a36d Alr.Commands.Build.Execute at alr-commands-build.adb:113 0x49a51f Alr.Commands.Build.Execute at alr-commands-build.adb:54 0x53bbcc Alr.Commands.Sub_Cmd.Execute at clic-subcommand-instance.adb:749 0x5472be Alr.Commands.Execute at alr-commands.adb:632 0x43d48a Alr.Main at alr-main.adb:13 0x4403a3 Main at b__alr-main.adb:2445 [/lib64/libc.so.6] 0x7f346e6515ce 0x7f346e65167e [/usr/bin/alr] 0x43d323 _start at ??? 0xfffffffffffffffe ERROR: Compilation failed.