specifying files that are dynamically generated at %pre time
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat RPM > specifying files that are dynamically generated at %pre time




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    specifying files that are dynamically generated at %pre time  
Yakov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-27-06 06:16 PM

In .spec, how do I specify a filename that does not exist at the time
of installation,  (it is created during %pre), but I want rpm to know
about this file. How do I tell rpm about such filenames ?
(They do not exist at the rpm build time but they exist after rpm is
installed. I want rpm to report them rpm -q -f, rpm -q -l, and by rpm
-q -p --list)

Thanks
Yakov






[ Post a follow-up to this message ]



    Re: specifying files that are dynamically generated at %pre time  
Michal Jaegermann


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-07-07 12:59 AM

In linux.redhat.rpm Yakov <iler.ml@gmail.com> wrote:
> In .spec, how do I specify a filename that does not exist at the time
> of installation,  (it is created during %pre), but I want rpm to know
> about this file. How do I tell rpm about such filenames ?

Try to mark those as '%ghost'. Possibly you may need to "touch"
such files in the build process; or you may simply just "touch"
and you will overwrite them later in %pre and let 'rpm -V' to
complain when asked.

It is possible to find such markings in spec files from time time
(IIRC somewhere in xorg-x11* specs, for example, and for sure in specs
for lcms-1.15-1.2.2 from FC) but I have no idea if this is really
explicitely documented anywhere save rpmbuild sources.

Michal





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:46 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register