QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 861|回复: 1

编译RPM包时出错,是什么原因啊?

[复制链接]
发表于 2003-4-26 18:51:23 | 显示全部楼层 |阅读模式
我下载了xfce的源码包,在编译二进制包时,不能编译,出现这个错误:
error: Package already exists: %package debuginfo
这个错误是什么意思啊?
该怎么解决啊?
 楼主| 发表于 2003-4-26 21:59:21 | 显示全部楼层
OK,问题已解决:

On Mon, Apr 21 2003 at 15:52,
Mike Snitzer <[email protected]> wrote:

> Ok,
>
> I'm just re-posting this; but I think its fairly important and maybe
> slipped underneath the radar?   Here goes again:
>
> I have a macros file that I %include in my spec files; all works fine with
> rpm <= 4.0.4.  I'm not sure about 4.1; but with 4.2 I get the following
> when I query a spec file:
>
> rpm -q --qf "%{name}\n" --specfile mpich/SPECS/mpich.spec
> error: Package already exists: %package debuginfo
>
> error: query of specfile mpich/SPECS/mpich.spec failed, can't parse

%trace pointed out that %install was getting evaluated twice; turns out I
had %install within a comment of the %changelog

So now it seems to make sense: because rh9 adds the debuginfo wizardry; if
rpm encounters %install more than once (even in %changelog; because rpm
doesn't _really_ care where a macro occurs within a spec); it'll attempt
to add a %package debuginfo more than once...

I would guess I've uncovered a side-effect of the implicit nature of
debuginfo packages; rather than an actual "bug".

Sorry for the noise; but maybe now others won't get bit by this new
%install/debuginfo "feature" of redhat9 (rpm >= 4.2)?  (or maybe others
aren't as clumsy as me; and don't reference macro names within the
%changelog =)

btw, I was able to disable the creation of debuginfo packages using:
%undefine _enable_debug_packages

Mike
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 02:22 , Processed in 0.095862 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表