RPM Community Forums

Mailing List Message of <rpm-users>

Re: Regrading error = error: removing * "Requires: *" from tsort relations.

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 27 Aug 2009 - 19:05:41 CEST
Message-id: <E716DE11-A60C-4E32-87A6-E6D2DF7E47BB@mac.com>

On Aug 27, 2009, at 8:57 AM, Manoj Palhade wrote:

> Dear Team,
> I am new this rpm group and just now started development (port) of  
> rpm on QNX RTOS.
> I build spec file and tried to install it on QNX. But during  
> installation I am getting following errors.
> ***************************************************************
> error: LOOP:
> error: removing rpmTest-1.0-0.x86pc "Requires: /" from tsort  
> relations.
> **********************************************************************************
> I tried to debug the code and I found following (may be wrong)  
> things in "\rpm-5.1.9\lib\depends.c" file.
> Above error occurs in zapRelation() which is called in rpmtsOrder().
> I want to know can i comment following line in rpmtsOrder().
> dp = zapRelation(q, p, 1, &nzaps, msglvl);
> As 3rd parameter in zapRelation() is set to  1(constant  magic  
> number) which always throw error (2nd line from above error).
> Please let me know your opinion and let me know if i am wrong. I  
> haven't understood purpose of zapRelation() please give more detail's.

FYI: The dependency LOOP message is largely informative. Ignore
(or comment out in rpm code) if you wish. But diagnosing ordering
problems starts with identifying what loops are present so that
the subset of relations not involved in loops can be identified.

Yes, zapRelation() walks a dependency loop and eliminates
all the relations within the loop, and then restarts the topological  

Rather than ignoring "/", the better fix is to add a package that
contains "/". You can do this in yout rpmTest package by

if necessary.

Typically a setup package contains "/" as an explicit element and
everything just works.

73 de Jeff
Received on Thu Aug 27 20:06:28 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.