[Rpm-maint] [PATCH] Warn and create empty debugsource package if there are no sources.
Mark Wielaard
mark at klomp.org
Wed Aug 2 11:09:15 UTC 2017
Hi,
On Fri, 2017-07-28 at 15:29 +0200, Mark Wielaard wrote:
> + if [ ! -s "$srcout" ]; then
> + echo >&2 "*** WARNING: No source files found. Creating empty debugsource package"
> + # Create the empty directory.
> + # See also debugedit invocation. Directories must match up.
> + debug_base_name="$RPM_BUILD_DIR"
> + debug_dest_name="/usr/src/debug"
> + if [ ! -z "$unique_debug_src_base" ]; then
> + debug_base_name="$BUILDDIR"
> + debug_dest_name="/usr/src/debug/${unique_debug_src_base}"
> + fi
> + mkdir -p "${RPM_BUILD_ROOT}${debug_dest_name}"
> + echo "$debug_dest_name" > "$srcout"
> + fi
> fi
Do we want to be nicer to packages that don't include sources like this?
Or should we just declare that this is probably a packaging issue (badly
produced debuginfo) and improve the error message?
Alternatively we might just skip creation of the whole debugsource
package. But I couldn't figure out how to do that.
Cheers,
Mark
More information about the Rpm-maint
mailing list