[opensuse-factory] Disable automatic debuginfo packages in Factory

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? Note: Package ghc creates several sub-packages that contain shared libraries and rpm generates debuginfo for those too. Thanks, Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, Nov 05, 2012 at 07:08:39PM +0100, Peter Trommler wrote:
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

Michal Vyskocil wrote:
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.
Thanks a lot Michal! I will give it a shot and document my findings in the packaging guidelines. Ideally, we should fix the openSUSE specific macros so the "standard" RPM way of just setting %global debug_package %{nil} does the right thing. Should I bring that up in the packaging ML? Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Michal Vyskocil wrote:
I don't know the correct way, but I've a following magic sequence in one package, which just works
%install %global __debug_install_post %{nil} %global debug_package %{nil} %global suse_insert_debug_package %{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
The hack to generate the two file lists looks ugly but I can hide all of the above in an RPM macro :-) Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Wednesday 2012-11-07 14:45, Michal Vyskocil wrote:
See "coccinelle" as a package which also needs (and successfully uses) "keep-my-debug" magic. Best look there. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Mon, Nov 05, 2012 at 07:08:39PM +0100, Peter Trommler wrote:
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

Michal Vyskocil wrote:
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.
Thanks a lot Michal! I will give it a shot and document my findings in the packaging guidelines. Ideally, we should fix the openSUSE specific macros so the "standard" RPM way of just setting %global debug_package %{nil} does the right thing. Should I bring that up in the packaging ML? Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Michal Vyskocil wrote:
I don't know the correct way, but I've a following magic sequence in one package, which just works
%install %global __debug_install_post %{nil} %global debug_package %{nil} %global suse_insert_debug_package %{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
The hack to generate the two file lists looks ugly but I can hide all of the above in an RPM macro :-) Peter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Wednesday 2012-11-07 14:45, Michal Vyskocil wrote:
See "coccinelle" as a package which also needs (and successfully uses) "keep-my-debug" magic. Best look there. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Jan Engelhardt
-
Michal Vyskocil
-
Peter Trommler