Re: RPM package bundle problem.

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

 



At the point when you run the %post the files are *not* in  $RPM_BUILD_ROOT but instead under root (/).
Plus you should not be running another rpm transaction within an rpm  transaction - it might work (depending on the version of rpm), or it  might fail with locking issues, or it might completely corrupt your  rpm database.
You should do this with dependancies and a proper package management  tool (ie yum etc) rather than abusing raw rpm.
	Nigel.
On 23 Jul 2009, at 10:48, NgaNTH wrote:
I don’t understand what you wrote L As I see from this spec (I  > copied it from the internet),  2 rpm (abc and log4c) will be  > extracted into folder $RPM_BUILD_ROOT%{bundledir}> Then, from this folder, it will run : rpm –Uvh with each rpm to  > install log4c and abc.>> So, in your opinion, please tell clearly what I should do to make  > this spec work properly as I expected? Thanks> -------------->> A Typo perhaps? You are installing into bundledir and not in the rpm  > buildroot :=)> rpm -Uvh %{bundledir}/log4c-1.2.1-1.i386.rpm>> rpm -Uvh %{bundledir}/abc-1.0-1.i386.rpm>>> hth>> PS>> Let me guess: have you perhaps ALSO looked to my yum-pull-update ?>>>>> _______________________________________________> Rpm-list mailing list> Rpm-list@xxxxxxxxxxxxx> http://lists.rpm.org/mailman/listinfo/rpm-list
--[ Nigel Metheringham             Nigel.Metheringham@xxxxxxxxxxxxxxxx ][ - Comments in this message are my own and not ITO opinion/policy - ]
_______________________________________________Rpm-list mailing listRpm-list@xxxxxxxxxxxxxxxxx://lists.rpm.org/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