[Rpm-maint] [rpm-software-management/rpm] Uninformative error message on %include'd and generated spec content (Issue #2714)

Panu Matilainen notifications at github.com
Wed Oct 11 07:58:16 UTC 2023


includetest.spec:
```
Name: includetest
Version: 1.0
Release: 1
License: Testing
%include badsummary.inc

%description
%{summary}
```

badsummary.inc:
```
Xummary: Include test
```

> [pmatilai🎩︎localhost SPECS]$ rpmbuild -bb badsummary.inc 
> error: line 1: Unknown tag: Xummary: Include test

That's just terrible because there's no indication of the file where the problem is. %include is rare because this is not the only problem it has, but dynamically generated spec content suffers from this same issue (although in that case there's at least a hint of the file in the output, just not in the error message)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2714
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2714 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20231011/189c78e1/attachment.html>


More information about the Rpm-maint mailing list