Re: /var/lock/rpm/transaction not relocatable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[resending.. my other previous attempt got blocked by list moderation due to my From address changing...]

Just a quicky helpful pointer.

The file you are looking for is "lib/rpmlock.c".  Look for the:
#define RPMLOCK_FILE "/var/lock/rpm/transaction"

(and of course the associated usage)

My suggestion is to modify the usage to include the install prefix with
it.  (Sorry I can't help you more.. What I did was change the
RPMLOCK_FILE to reference a global variable, then earlier in the program
I set the global variable based on some items specific to my system.)

--Mark

James Olin Oden wrote:
On Mon, 9 Aug 2004, Christof Pintaske wrote:


Hi,

my name is Christof Pintaske, I'm employed by Sun Microsystems, working on OpenOffice.org in general, and specifically on deploying it as an rpm.

We face a problem with rpm 4.3.x in that the transaction locking does try to lock the file /var/lock/rpm/transaction regardless of the dbpath or any prefix. In fact rpmlock_new() from rpm/lib/rpmlock.c takes a "rootdir" as an argument, however RPMLOCK_FILE is not relocated to it.

That causes grieves on our side because we need to install rpms without root privileges. QA and development need to be able to install several private instances of the same product. To do so we relocate the rpm database (--dbpath) and the product (--prefix) to the users home directory. That worked fine with older versions of rpm but became an issue on Fedora core with rpm 4.3.1.


You can be the first to provide the patch (-;

I saw this when the code was first introduced, but at the time they where working on it so I did not do anything about it. Course, I may be missing something...james


_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list





_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux