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

Re: %attr directive issues when installing an rpms



On Thu, Jul 19, 2001 at 03:04:18PM -0400, Peter Tsimmerman wrote:

> 
> solardev:/home2/ptsimmer/opt/local/src/rpm$ ls -l /home2/ptsimmer/peter2/
> cdp-0.33/13/cdp-0.33
> drwxr-xr-x   2 ptsimmer dev          512 Jul 18 18:08 .
> drwxr-xr-x   4 ptsimmer dev          512 Jul 17 14:50 ..
> -rwxr-xr-x    1 ptsimmer dev    50008 May  4 09:04 cdp
> -r-xr--r--       1 ptsimmer dev      4550 May  4 09:04 cdp.1
> 

This seems to be the cause of confusion.

Run
	rpm -qlvp <your_binary_rpm_package_here>
to see the effect of %attr.

Equivalently, if you're from MO :-), install the package, and check the
permissions after install.

The confusion comes from the manner that %attr and rpm work. The permisions,
user, and group are stored in the header, not in the build root, not even in
the cpio payload, only in the header metadata, applied after each
file is installed.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org	(jbj@redhat.com)
Chapel Hill, NC





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