Package Details: alire 2.0.0-2

Git Clone URL: https://aur.archlinux.org/alire.git (read-only, click to copy)
Package Base: alire
Description: A catalog of ready-to-use Ada libraries plus a command-line tool (alr) to obtain, build, and incorporate them into your own projects. It aims to fulfill a similar role to Rust's cargo or OCaml's opam.
Upstream URL: https://alire.ada.dev/
Licenses: GPL3
Submitter: tfl5034
Maintainer: tfl5034
Last Packager: tfl5034
Votes: 4
Popularity: 0.018604
First Submitted: 2021-02-17 07:22 (UTC)
Last Updated: 2024-03-16 23:03 (UTC)

Dependencies (5)

Required by (2)

Sources (21)

Pinned Comments

tfl5034 commented on 2024-03-14 18:00 (UTC) (edited on 2024-03-14 18:05 (UTC) by tfl5034)

You may run into an error because a git repo of a dependency has a different URL. If that occurs, manually remove the old repo and try the install again.

e.g.

==> ERROR: $HOME/.cache/paru/clone/alire/si_units is not a clone of https://github.com/mosteo/si_units
    Aborting...
==> ERROR: $HOME/.cache/sources/gnatcoll-core is not a clone of https://github.com/alire-project/gnatcoll-core.git
    Aborting...

Latest Comments

« First ‹ Previous 1 2

charlie5 commented on 2023-05-30 18:21 (UTC) (edited on 2023-05-30 18:46 (UTC) by charlie5)

hi tfl5034,

I'm getting the following error when trying to build ...

[Ada]          gnatcoll-os.ads
[Ada]          gnatcoll-path.adb
[Ada]          gnatcoll-pools.adb
[Ada]          gnatcoll-promises.adb

toml_slicer.adb:210:16: warning: unreachable code [enabled by default]

compilation of toml_slicer.adb failed


gprbuild: *** compilation phase failed
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build alire package(s)

Do you get the same ?

Regards.

tfl5034 commented on 2022-12-04 08:05 (UTC)

Thanks @demizer. I am incorporating your changes in the next commit.

demizer commented on 2022-12-01 07:08 (UTC)

Hi! Thanks for the suggestion. I tried it but it did not work. Here is a patch to what did work:

diff --git a/.SRCINFO b/.SRCINFO
index f14b8fb..e8df680 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -29,7 +29,7 @@ pkgbase = alire
    source = git+https://github.com/mosteo/stopwatch#commit=86e7302d29f360f98f568b6015755229949b2194
    source = git+https://github.com/mosteo/toml_slicer#commit=8b9dff0f450394b07ea71f0eb9b39d9c20e21f9c
    b2sums = 7c8bf3eb1f18c022a5d47fbbb38db2e44807d161bf27c3c0efe5275533de977bc50cc348d057fcf57c43071fabef8df5e23cb208e8b1993da06e1170ff126732
-   b2sums = 9f18f784b95d782befef1601ea1bacdc2b0869517bbb71c940e68e43dcff702ec36c034e5a6da1a6e0a60221c6d21815c1758498eff1885fad8c65c96a48c1ac
+   b2sums = 15799818a362547fa67bc9e614a3ff5b4645e268f48a8a2fe451592410be3d1fae0ff0cc96853e22813e6aa5a2a9a434f8585e26cb4bb1d5b75263177b7b81a6
    b2sums = SKIP
    b2sums = SKIP
    b2sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index d0019ed..bd0384e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,7 +29,7 @@ git+https://github.com/mosteo/stopwatch#commit=86e7302d29f360f98f568b60157552299
 git+https://github.com/mosteo/toml_slicer#commit=8b9dff0f450394b07ea71f0eb9b39d9c20e21f9c
 )
 b2sums=('7c8bf3eb1f18c022a5d47fbbb38db2e44807d161bf27c3c0efe5275533de977bc50cc348d057fcf57c43071fabef8df5e23cb208e8b1993da06e1170ff126732'
-        '9f18f784b95d782befef1601ea1bacdc2b0869517bbb71c940e68e43dcff702ec36c034e5a6da1a6e0a60221c6d21815c1758498eff1885fad8c65c96a48c1ac'
+        '15799818a362547fa67bc9e614a3ff5b4645e268f48a8a2fe451592410be3d1fae0ff0cc96853e22813e6aa5a2a9a434f8585e26cb4bb1d5b75263177b7b81a6'
         'SKIP'
         'SKIP'
         'SKIP'
@@ -56,7 +56,7 @@ prepare()

 build() {
   cd "$srcdir/$pkgname-$pkgver"
-  gprbuild -j0 -P alr_env -cargs -gnatws
+  gprbuild -j0 -P alr_env -gnatws -cargs
 }

 #check() {
diff --git a/alire.patch b/alire.patch
index 2c5d1bb..b8f122f 100644
--- a/alire.patch
+++ b/alire.patch
@@ -27,7 +27,7 @@ Index: alire-1.2.0/alr_env.gpr
 +                         "../ajunitgen",
 +                         "../ansi-ada",
 +                         "../clic",
-+                         "../gnatcoll-slim",
++                         "../gnatcoll-core",
 +                         "../minirest",
 +                         "../optional",
 +                         "../semantic_versioning",

Thanks again!

tfl5034 commented on 2022-11-12 08:22 (UTC)

Please try a clean build. I just ran the build in a fresh environment and it builds fine.

demizer commented on 2022-11-12 07:13 (UTC)

This package is no longer linking:

/build/alire/src/alire-1.2.1/obj/b__alr-main.adb:899: undefined reference to `gnatcoll__vfs_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:899: undefined reference to `gnatcoll__vfs_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:904: undefined reference to `gnatcoll__vfs__finalize_spec'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:906: undefined reference to `gnatcoll__io__remote_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:906: undefined reference to `gnatcoll__io__remote_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:911: undefined reference to `gnatcoll__io__remote__finalize_spec'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:917: undefined reference to `gnatcoll__remote_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:917: undefined reference to `gnatcoll__remote_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:918: undefined reference to `gnatcoll__remote__finalize_spec'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:920: undefined reference to `gnatcoll__io__native_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:920: undefined reference to `gnatcoll__io__native_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:925: undefined reference to `gnatcoll__io__native__finalize_spec'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:927: undefined reference to `gnatcoll__io_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:927: undefined reference to `gnatcoll__io_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:932: undefined reference to `gnatcoll__io__finalize_spec'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:934: undefined reference to `gnatcoll__refcount_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:934: undefined reference to `gnatcoll__refcount_E'
/usr/bin/ld: /build/alire/src/alire-1.2.1/obj/b__alr-main.adb:939: undefined reference to `gnatcoll__refcount__finalize_spec'

<a few moments later>

ollect2: error: ld returned 1 exit status
gprbuild: link of alr-main.adb failed

Gcc version is 12.2.0

tfl5034 commented on 2021-06-06 20:30 (UTC)

It looks like the 1.0 version is broken with the latest release of GCC. See here for more details: https://github.com/alire-project/alire/issues/729

I added the patch that fixes this. I also added the flag to disable compilation info/warnings from your PKGBUILD. Thanks!

charlie5 commented on 2021-06-06 14:41 (UTC)

Thanks for providing this package.

I was unable to build the 1.0.0 version.

I modified the PKGBUILD to use the latest master branch and managed to build it after suppressing warnings.

Here is the modified PKGBUILD, if you are interested ...

https://gist.github.com/charlie5/06868cd1be330860daa7617aa94d1b41

Regards.