RPM Community Forums

Mailing List Message of <popt-devel>

Re: MacPorts is now upgraded to popt-1.11

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 21 Jun 2007 - 22:57:32 CEST
Message-Id: <E4887239-3A9E-44A6-9BC3-D2301C0E8E6E@mac.com>

On Jun 21, 2007, at 4:46 PM, Anders F Björklund wrote:

>> 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 ?
>

Looks like a thnko bug to me. I can't see a reason for the change.

73 de Jeff
Received on Thu Jun 21 22:58:20 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.