Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71869 - [micro] compiled without version information

Attached to Project: Community Packages
Opened by Pierre Chapuis (catwell) - Thursday, 19 August 2021, 13:53 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 27 August 2021, 10:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The `micro` package is compiled with no version information.

This breaks plugin installation since they cannot resolve dependencies.

Additional info:
* package version: 2.0.10-1

Steps to reproduce:

Run `micro -version`.

Try to install a plugin, for instance: `micro -plugin install filemanager`.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Friday, 27 August 2021, 10:31 GMT
Reason for closing:  Fixed
Comment by Pierre Chapuis (catwell) - Thursday, 19 August 2021, 13:53 GMT
See https://github.com/zyedidia/micro/issues/1792#issuecomment-895503311

This issue is documented in the README (https://github.com/zyedidia/micro#building-from-source):

> You can install directly with go get (go get github.com/zyedidia/micro/cmd/micro) but this isn't recommended because it doesn't build micro with version information (necessary for the plugin manager), and doesn't disable debug mode.

Comment by loqs (loqs) - Thursday, 19 August 2021, 19:57 GMT
@catwell please try rebuilding micro with the attached diff applied.
The options were set as external linker options which would have caused a build error except the external linker was not used so the options were not used.
Also had to change the escaping of the build date string.
Comment by Pierre Chapuis (catwell) - Friday, 20 August 2021, 13:32 GMT
I just tried and apparently it works, thanks.

Loading...