[Rpm-maint] [rpm-software-management/rpm] Bogus warning about files listed twice (Issue #2334)
Thomas Moschny
notifications at github.com
Sat Dec 31 11:21:22 UTC 2022
For this minimal spec file
```
Version: 0
Release: 0
Name: dummy
License: dummy
Summary: dummy
%description
dummy
%prep
mkdir -p foo1/bar foo2/bar
touch foo1/bar/a foo2/bar/b
%files
%doc foo1/bar
%doc foo2/bar
```
`rpmbuild` emits this warning:
```
File listed twice: /usr/share/doc/dummy/bar
File listed twice: /usr/share/doc/dummy/bar/a
File listed twice: /usr/share/doc/dummy/bar/b
```
This is misleading, as from a spec file perspective, no file is listed twice. Effectively the two `bar` directories are merged, which might or might not be intended by the spec file author. For a larger spec file it can be hard to find the real cause of the warning.
Might be related to #336. Not sure whether the proposed fix there will fix this one here as well.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2334
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2334 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20221231/48e17c0c/attachment-0001.html>
More information about the Rpm-maint
mailing list