RE: File listed twice

"Jeffrey Sherwin" <[email protected]> Mon, 1 Sep 2008 15:21:10 -0400
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
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.=20

-----Original Message-----
From: [email protected] [mailto:[email protected]]
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.=20

I appreciate all of the help.


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Michael Jennings
Sent: Monday, September 01, 2008 1:00 AM
To: [email protected]
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.=20
>=20
> 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?
>=20
> 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

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

_______________________________________________
Rpm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rpm-list



_______________________________________________
Rpm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rpm-list