On Fri, Jun 06, 2003 at 02:03:24AM +0200, Per Øyvind Karlsen wrote: > [EMAIL PROTECTED] SPECS]$ rpm -bb mc.spec > error: Package already exists: %package debug > > looking at the mc.spec, there's nothing about any debug package there, I've > encountered this one earlier too, why is this?
See /usr/lib/rpm/macros; %install is now a macro that defines the debug package and calls the real %install. The mc.spec file contains multiple %install references (see changelog, %install instead of %%install). This causes the debug package to be defined multiple times. The debug package also causes other interesting problems. See bug 3929 (http://qa.mandrakesoft.com/show_bug.cgi?id=3929), %group can't be used. Some packages also use %summary for menu files. The debug package causes %group & %summary to change and the packager won't see this in the spec file. The following in a spec file should disable those debug packages: %define debug_package %{nil} -- Regards, Olav