RE: File listed twice

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

 



One more question:

How come when I list the following directory under %files:

/usr/local/foo

RPM starts looking for those files under the $RPM_BUILD_DIR? Because of
this, I have actually had to modify my script to build everything in
$RPM_BUILD_DIR/usr/local/foo and then copy it all over to /usr/local/foo
at the end of $install.

That can't be correct. 

-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx]
On Behalf Of Jeffrey Sherwin
Sent: Monday, September 01, 2008 1:05 AM
To: RPM Package Manager
Subject: RE: File listed twice

That makes sense. Thanks. The warnings are now all gone. 

I appreciate all of the help.


-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx]
On Behalf Of Michael Jennings
Sent: Monday, September 01, 2008 1:00 AM
To: rpm-list@xxxxxxxxxx
Subject: Re: File listed twice

On Monday, 01 September 2008, at 00:54:21 (-0400),
Jeffrey Sherwin wrote:

> Interesting. I think that's the answer. I have directories in the file
> list. So I need to pull them out. 
> 
> If I have a big tree (that the entire installation is contained
within),
> with a 900 or so files, what is the easiest way to accomplish a
> comprehensive and proper file list?
> 
> Thanks again for all the help.

List only the top-level files and directories your package should
own.  For example, list %{_datadir}/yourapp/ as a directory, not all
its contents.  That way your package will own the directory *and* the
contents.  List files in system directories (e.g., %{_bindir}/yourapp)
individually.  This technique properly delegates file/directory
ownership.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <mej@xxxxxxxxx>
Linux Server/Cluster Admin, LBL.gov       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 "I've been looking for a Savior in these dirty streets, 
  Looking for a Savior beneath these dirty sheets." 
                                               -- Tori Amos, "Crucify"

_______________________________________________
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



_______________________________________________
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