[Ilugc] Relocatable rpm Package.

  • From: venaraya@xxxxxxxxxxxxxxx (Venkat N)
  • Date: Fri, 06 Sep 2002 19:17:02 +0530

--------------64128920CC56F66FAA544DAC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi ,

For all those who may try building a relocatable package in the future .

This is not possible with rpm version 4.0.2 (RH 7.1)

I tried the same with rpm version 4.0.4. (RH 7.3)

It works.

Thanks ,
-Venkat




Venkat N wrote:

Hi,

If I do a
rpm -qip xyz.rpm

it shows under the Relocations column the prefix with which the packet has
been built  and
which also means the package is already relocatable.

But when I give

rpm -ivh --prefix=/xyz/abc/   1234.rpm

the package does not relocate itself to /xyz/abc.

If i give
rpm -ivh --prefix=/binary    1234.rpm

I see that the executable is created with the name binary.

Does it mean that --prefix option is not able to create directories and
place the source there .
But accordin to "the RPM HowTO " it is supposed to create directories . or
does it mean that  creation
of directories has to be done in the spec file .

Can anyone explain this ?

--
 -Venkat

Prabhu Ramachandran wrote:

"VN" == Venkat N <Venkat> writes:

    VN> Hi , Any body knows how to build a relocatable rpm package ?

IIRC 2 things to note.

  1. The RPM needs to be made so its relocateable.  When I used rpm
  last this meant that you defined a Prefix: /usr or whatever upfront.

  2. Some packages are not easy to relocate as in the case when you
  need to put things inside /etc.  You cant relocate them so the
  package is inherently non-relocateable.  This is a possible problem.

Hmm looks like the URL you specify below mentions both these things
and thats about all I remember about it.  Maybe thats not what you
want but hope it helps.

    VN> I went through the following link for building the package ..
    VN> http://www.rpm.org/max-rpm/s1-rpm-reloc-building-relocatable.html

prabhu
_______________________________________________
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc

_______________________________________________
To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc

--
 Regards,
-Venkat

Visit http://cdn.hcltech.com/



--------------64128920CC56F66FAA544DAC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi ,
<p>For all those who may try building a relocatable package in the future
.
<p>This is not possible with rpm version 4.0.2 (RH 7.1)
<p>I tried the same with rpm version 4.0.4. (RH 7.3)
<p>It works.
<p>Thanks ,
<br>-Venkat
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<p>Venkat N wrote:
<blockquote TYPE=CITE>Hi,
<p>If I do a
<br>rpm -qip xyz.rpm
<p>it shows under the Relocations column the prefix with which the packet
has
<br>been built&nbsp; and
<br>which also means the package is already relocatable.
<p>But when I give
<p>rpm -ivh --prefix=/xyz/abc/&nbsp;&nbsp; 1234.rpm
<p>the package does not relocate itself to /xyz/abc.
<p>If i give
<br>rpm -ivh --prefix=/binary&nbsp;&nbsp;&nbsp; 1234.rpm
<p>I see that the executable is created with the name binary.
<p>Does it mean that --prefix option is not able to create directories
and
<br>place the source there .
<br>But accordin to "the RPM HowTO " it is supposed to create directories
. or
<br>does it mean that&nbsp; creation
<br>of directories has to be done in the spec file .
<p>Can anyone explain this ?
<p>--
<br>&nbsp;-Venkat
<p>Prabhu Ramachandran wrote:
<p>> >>>>> "VN" == Venkat N &lt;Venkat> writes:
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp; VN> Hi , Any body knows how to build a relocatable
rpm package ?
<br>>
<br>> IIRC 2 things to note.
<br>>
<br>>&nbsp;&nbsp; 1. The RPM needs to be made so its relocateable.&nbsp;
When I used rpm
<br>>&nbsp;&nbsp; last this meant that you defined a Prefix: /usr or whatever
upfront.
<br>>
<br>>&nbsp;&nbsp; 2. Some packages are not easy to relocate as in the case
when you
<br>>&nbsp;&nbsp; need to put things inside /etc.&nbsp; You cant relocate
them so the
<br>>&nbsp;&nbsp; package is inherently non-relocateable.&nbsp; This is
a possible problem.
<br>>
<br>> Hmm looks like the URL you specify below mentions both these things
<br>> and thats about all I remember about it.&nbsp; Maybe thats not what
you
<br>> want but hope it helps.
<br>>
<br>>&nbsp;&nbsp;&nbsp;&nbsp; VN> I went through the following link for
building the package ..
<br>>&nbsp;&nbsp;&nbsp;&nbsp; VN> <a 
href="http://www.rpm.org/max-rpm/s1-rpm-reloc-building-relocatable.html";>http://www.rpm.org/max-rpm/s1-rpm-reloc-building-relocatable.html</a>
<br>>
<br>> prabhu
<br>> _______________________________________________
<br>> To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with
<br>> "unsubscribe &lt;password> address"
<br>> in the subject or body of the message.
<br>> <a 
href="http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc";>http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc</a>
<p>_______________________________________________
<br>To unsubscribe email Ilugc-request@xxxxxxxxxxxxxxxxxx with
<br>"unsubscribe &lt;password> address"
<br>in the subject or body of the message.
<br><a 
href="http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc";>http://www.aero.iitm.ernet.in/mailman/listinfo/ilugc</a></blockquote>

<pre>--&nbsp;
&nbsp;Regards,
-Venkat

Visit <A HREF="http://cdn.hcltech.com/";>http://cdn.hcltech.com/</A></pre>
&nbsp;</html>

--------------64128920CC56F66FAA544DAC--


Other related posts: