[Rpm-maint] [rpm-software-management/rpm] Wrong line reported on %filetriggerin parse error (Issue #2584)

Panu Matilainen notifications at github.com
Wed Aug 23 09:52:24 UTC 2023


Here's a minimal reproducer:

```
Name: badline
Version: 1.0
Release: 1
Summary: Testing error reporting
License: GPL
BuildArch: noarch

%transfiletriggerin -- /something %{nosuchmacro}
echo bad

%files
```

rpmspec/rpmbuild fails on this with "error: line 11: Dependency tokens must begin with alpha-numeric, '_' or '/': %files" which is obviously wrong. If one removes /something so the undefined macro happens first, you get a much better error: "error: line 11: file trigger condition must begin with '/': %{nosuchmacro}". The line number is still wrong on that too, but it's pretty trivial to see what the issue is.



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

Message ID: <rpm-software-management/rpm/issues/2584/1689651587 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230823/b9ca9d0c/attachment.html>


More information about the Rpm-maint mailing list