Empty %files file

Jakub Bogusz qboosh at pld-linux.org
Tue Aug 24 17:59:01 CEST 2021


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


-- 
Jakub Bogusz    http://qboosh.pl/


More information about the pld-devel-en mailing list