RPM Community Forums

Mailing List Message of <rpm-devel>

Re: rpm 5.1.2: apt-get crash with lua, and forgetting --target parameters

From: Bernhard Rosenkränzer <bero@arklinux.ch>
Date: Sat 14 Jun 2008 - 16:44:57 CEST
Message-Id: <200806141645.00922.bero@arklinux.ch>
On Saturday 14 June 2008 15.55:21 Jeff Johnson wrote:
> There's a class of peculier issues with initializing under bindings
> and applications because the code paths are rather different. I get
> burned by the library <-> executable initialization differences
> frequently.

In the particular case of apt, there's another thing I just noticed -- both 
rpm and apt come with an internalized version of lua.
Chances are the simple symbol clash caused by this is what causes the crash. 
Guess switching both over to using system lua (or at least making apt use 
rpm's version) is the best fix.

> Guessing from "rpmSystem::Score" names:
> If apt is attempting rpmPlatformScore(), then patterns need to be
> added to /etc/rpm/platform.

It isn't -- rpmSystem::Score simply checks if rpm is installed and returns a 
matching score to make sure rpmSystem::Score > dpkgSystem::Score, so rpm gets 
used over other low level package managers.

ttyl
bero
Received on Sat Jun 14 21:05:23 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.