Hello Jeff, thanks.
Thanks everybody (specially Tim Mooney).
Now I think it is very close to the finish.
I tried
rpm -qlvp <my_binary_rpm_package_here> (as you, Jeff recommended)
and really saw the effect of %attr :
solardev:/home2/ptsimmer/opt/local/src/redhat/RPMS/sparc64$ ls -l
drwxrwxrwx 2 ptsimmer dev 512 Jul 18 16:32 .
drwxrwxrwx 6 ptsimmer dev 512 Mar 16 13:56 ..
-rw-rw-r-- 1 ptsimmer dev 28439 Jul 18 16:32 cdp-0.33-13.sparc64.rpm
solardev:/home2/ptsimmer/opt/local/src/redhat/RPMS/sparc64$ rpm -qlvp cdp-0.33-13.sparc64.rpm
-rwxr-xr-x 1 root root 50008 May 4 09:04 /home2/ptsimmer/
peter2/cdp-0.33/13/cdp-0.33/cdp
-r-xr--r-- 1 root root 4550 May 4 09:04 /home2/ptsimmer/
peter2/cdp-0.33/13/cdp-0.33/cdp.1
drwxr-xr-x 1 root root 512 Jul 18 16:32 /home2/ptsimmer/
peter2/cdp-0.33/13/instructs/cdp-0.33
-rw-r--r-- 1 root root 1085 May 4 09:04 /home2/ptsimmer/
peter2/cdp-0.33/13/instructs/cdp-0.33/README
It shows that the creation part is OK.
About installation part ...
On Thu, Jul 19, 2001 at 03:50PM , Jeff Johnson wrote:
> Equivalently, if you're from MO :-), install the package, and check
> the permissions after install.
Sorry, What is it "from MO :-)" ?
On Thu, Jul 19, 2001 at 03:43PM , Tim Mooney wrote:
> The assumption is that `root' is doing the package install, though.
> If the install is done as a normal user, then assuming you have
> permission to both modify the RPM databases (you do here) and drop
> the files into place (you apparently do here), those parts will go
> ok, but the actual shown and chgrp calls will fail, because most
> UNIXes won't let you do that if you're not root.
According to all of this, if I understood correct, the following
will happened :
If now our sysadmin will install the newly built
package (as root) and will run my previous command :
"ls -l /home2/ptsimmer/peter2/cdp-0.33/13/cdp-0.33" <=============
then will not be any cause of confusion and actual user/group
will be shown ?
Is it correct ?
Ttanks again,
Peter Tsimerman
-----Original Message-----
From: Jeff Johnson [mailto:jbj@JBJ.ORG]
Sent: Thursday, July 19, 2001 3:50 PM
To: rpm-list@redhat.com
Subject: 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
_______________________________________________
Rpm-list mailing list
Rpm-list@redhat.com
https://listman.redhat.com/mailman/listinfo/rpm-list