[Rpm-maint] rpmbuild: File listed twice (but only build-ids)
Mark Wielaard
mark at klomp.org
Tue Jan 15 17:03:27 UTC 2019
On Tue, 2019-01-15 at 10:40 -0600, Richard Shaw wrote:
> Ooookkkkaaayyyy...
>
> So this has been around since at least 2017 and there's no fix?
Much longer than that. At least since 2012, probably earlier.
%exclude is discouraged, which is why it doesn't seem to have higher
priority. See also:
https://bugzilla.redhat.com/show_bug.cgi?id=878863
(Although that bug is a little confusing since it seems to mix up two
issues with exclude files and build-id symlinks.)
It is a variant of:
https://github.com/rpm-software-management/rpm/issues/284
The fix for that excludes debug files for files which were excluded in
the non-debug package.
A similar fix should be done for generating the build-ids only for
binaries not in the pkg->fileExcludeList. Currently the
generateBuildIDs () function in build/files.c only gets the full
package file list. It probably should also get the fileExcludeList and
only generate the build-id links for files not on that list.
The interaction between the different package lists is a little
confusing though.
It is probably best to ask for guidance on the upstream mailinglist
rpm-maint at lists.rpm.org (CCed).
> Is there an option to make it a warning again instead of an error?
I don't think without disabling build-ids completely.
Cheers,
Mark
More information about the Rpm-maint
mailing list