RPM Community Forums

Mailing List Message of <popt-devel>

Re: MacPorts is now upgraded to popt-1.11

From: Anders F Björklund <afb@algonet.se>
Date: Thu 21 Jun 2007 - 22:46:43 CEST
Message-Id: <87a22d2e12159904a3826478575bc589@algonet.se>
> This causes spectacular failures like not finding "rpmq":
> $ rpm -qa
> rpm: -qa: Invalid argument
>
> Downgrading to popt 1.10_4 again fixed it, will try to
> figure out how to make the two co-exist... (rpm/popt)

Found the reason for why it couldn't find any executable:
	char *s = malloc(strlen(con->execPath) + strlen(item->argv[0]) + 
sizeof("/"));
	if (s)
	    sprintf(s, "%s/%s", con->execPath, item->argv[-1]);

Changing "argv[-1]" back to "argv[0]" made it work again !
Is this some kind of Darwin vs Linux issue, or just a bug ?

--anders
Received on Thu Jun 21 22:46:46 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.