Skip to content

redhat: do not package *.mod.c generated files

Denys Vlasenko requested to merge dvlasenk/kernel-ark:delete_mod_c into os-build

As an example, kernel-debuginfo-common.rpm was observed to contain 21865 files, 2274 of them (~10%) are *.mod.c files.

They are packaged because their names are present in some object files, and rpmbuild (through find-debuginfo.sh, "debugedit -l") grabs all referenced source files which still exist, and packages them into debuginfo rpms. Just deleting them before that build stage allows to avoid it.

Signed-off-by: Denys Vlasenko dvlasenk@redhat.com

Merge request reports