[Rpm-maint] [rpm-software-management/rpm] Request For Enhancement: Better error output in rpmbuild (#1034)

Appadeia notifications at github.com
Fri Jan 31 21:00:59 UTC 2020


Recently I've been working on a project called [alpmbuild](https://github.com/alpmbuild) that builds Arch packages from RPM specfiles.

Among one of the things it offers is quality error output.

![image](https://user-images.githubusercontent.com/20326855/73573279-fbb8a800-4440-11ea-9229-ee12afcb6e3d.png)
![image](https://user-images.githubusercontent.com/20326855/73573287-ffe4c580-4440-11ea-891c-993cdecee3d2.png)
![image](https://user-images.githubusercontent.com/20326855/73573293-0410e300-4441-11ea-9b3e-1422ecd61363.png)
![image](https://user-images.githubusercontent.com/20326855/73573302-08d59700-4441-11ea-9b36-68b46f0ae676.png)

It would be nice to have this style of error output in the actual rpmbuild itself, as that's where people are more likely to be using specfiles—being that specfiles are the native build recipe format of RPM.

Codewise in alpmbuild, this works like so:
The main reading loop looks for keywords in a line indicating what needs function needs to parse the line, and then hands the line number, line, and context to a function. This function is responsible for parsing the line and updating the context, outputting errors if necessary. The function can use the line + line number to call an error/warning function, which takes messages and a range of characters to highlight.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200131/cf2e9a4d/attachment.html>


More information about the Rpm-maint mailing list