On Mon, Nov 05, 2012 at 07:08:39PM +0100, Peter Trommler wrote:
I need to disable debuginfo packages for package ghc as ghc does not produce DWARF output. Even though I disabled debuginfo packages in my spec file using %global debug_packages %{nil} debuginfo packages are still generated and the package build fails for unpackaged files.
What is the correct way of fixing this?
I don't know the correct way, but I've a following magic sequence in one package, which just works %install export NO_DEBUGINFO_STRIP_DEBUG=true %global __debug_install_post %{nil} %global debug_package %{nil} %global suse_insert_debug_package %{nil} %global _suse_insert_debug_package %{nil} %global _suse_insert_debug_package_seen %{nil} ... # HACK FOR DISABLED DEBUG echo "/usr/lib/debug" > debugfiles.list mkdir -p $RPM_BUILD_ROOT/usr/lib/debug echo "/usr/src/debug" > debugsources.list mkdir -p $RPM_BUILD_ROOT/usr/src/debug Maybe not all definitions needs to be "nilled", so it'd be great if you will have the time to realize, which needs to be setted up. I assume the %global debug_package %{nil} and the %install hack is enough Regards Michal Vyskocil