Empty %files file
Neal Gompa
ngompa13 at gmail.com
Tue Aug 24 18:01:20 CEST 2021
On Tue, Aug 24, 2021 at 11:59 AM Jakub Bogusz <qboosh at pld-linux.org> wrote:
>
> On Tue, Aug 24, 2021 at 11:30:43AM -0400, Neal Gompa wrote:
> > On Tue, Aug 24, 2021 at 6:19 AM Elan Ruusamäe <glen at pld-linux.org> wrote:
> > >
> > >
> > > error: Empty %files file
> > > /home/users/glen/rpm/packages/BUILD.x86_64-linux/zabbix-5.4.3/debugsourcefiles.list
> > >
> > > is this something specific to carme?
> > >
> > >
> > > and how to prevent the error and proceed?
> > >
> >
> > That happens when your compilation flags aren't being respected and
> > debuginfo isn't getting built properly for -debuginfo and -debugsource
> > subpackages to be generated.
>
> Explaining further:
>
> - if binary packages don't contain any native code (just scripts, data or some
> bytecode), then -debuginfo is empty (and solution is to set
> _enable_debug_packages to 0)
>
> - if there is some native code, -debuginfo is created
>
> - if there is no enough debug information, -debugsource packages are not
> created; the reason can be lack of compiler/linker flags (or binary
> stripping in %install stage), but also if binaries are created by
> compiler not supported by rpm debuginfo machinery (like golang or
> rust); in the last case, solution is to disable debugsource packages
> (define _debugsource_packages to 0); in other case, solution is to
> properly pass compiler flags or disable stripping in build system
>
Both Rust and Go are supported by RPM debuginfo machinery, it's just
not done by default unless you pass flags for it. In Fedora, for
example, those flags are set, so those things do work.
If there is no native code, then BuildArch: noarch should be set,
which turns off debuginfo stuff too.
--
真実はいつも一つ!/ Always, there's only one truth!
More information about the pld-devel-en
mailing list