FS#77119 - [leiningen] package uses the self-installing version instead of the one for packages

Attached to Project: Community Packages
Opened by xobcib (xobcib) - Saturday, 14 January 2023, 05:33 GMT
Last edited by Alexander F. Rødseth (xyproto) - Tuesday, 28 March 2023, 07:14 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Running lein causes a self install to occur where the lein script starts downloading the leiningen jar from the internet instead of using the one provided by this package.

Additional info:

leiningen 2.9.10-2 (up to date)

Looking at the installed /usr/bin/lein file, it looks like it is not the right version for packages.
Comparing to the leiningen packages for other distros,[1][2] it looks like that the lein-pkg[3] version of the script should be used instead.

[1]: https://salsa.debian.org/clojure-team/leiningen-clojure/-/blob/debian/main/debian/rules#L18
[2]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/build-managers/leiningen/default.nix#L9
[3]: https://codeberg.org/leiningen/leiningen/src/tag/2.9.10/bin/lein-pkg

Steps to reproduce:
1. Download the leiningen package using pacman
2. Run lein

PS, it also looks like that the upstream has moved to codeberg and that there's also a new version.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Tuesday, 28 March 2023, 07:14 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 21 February 2023, 21:29 GMT
Thanks for reporting. I agree that using lein-pkg sounds better. I'll look into it.

Loading...