OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004762 [cas_cptemplates] regular use minor always 2011-04-24 07:48 2011-07-10 18:25
Reporter ja View Status public  
Assigned To phil
Priority normal Resolution open  
Status assigned  
Summary 0004762: cswcptemplates doesn't set ownerships and file permissions
Description cswcptemplates doesn't set the ownerships and file permissions given in pkgmap of the package. Instead the system defaults settings were used.
Additional Information I figured out, that the following line in i.cswcptemplates might be the reason:

contents=`grep "^${file} " $PKG_INSTALL_ROOT/var/sadm/install/contents`

$contents was always empty, so no information about modes and ownerships could have been extracted.

When using this:

contents=`grep "^${TEMPLATEDIR}/${PKG}/${file} " $PKG_INSTALL_ROOT/var/sadm/install/contents`

ownerships and permissions were set as written in the pkgmap file.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0008998)
bwalton (administrator)
2011-04-24 16:45

Moved this issue to cas_cptemplates (package specific) since each CAS is now an independent package.

Phil, when you've fixed this in the GAR repo, you can get an updated package with:
gmake package-CSWcas-cptemplates

Thanks
-Ben
(0008999)
bwalton (administrator)
2011-04-24 16:46

Phil: Not sure if I properly reassigned this before making the previous note.
(0009001)
phil (reporter)
2011-04-26 03:38

I may not be able to focus on this issue for a while. suggested fixes welcomed.
(0009002)
bwalton (administrator)
2011-04-26 04:12

I haven't tested this, but it might work...As you can't rely on install/contents for the info you need, can it be gathered from $src instead?

HTH.
-Ben
(0009194)
ja (developer)
2011-07-10 18:25

Sorry for my delay. I'm not very familiar with cas scripts, but I think, it's ok to look for the ownerships and permissions in install/contents, because the script is calling "pkgadm sync" some lines before, so the information should be there.

In $src is stored only the filename of a temporary file used by the cas script. No information about ownerships and permissions.

Regards,
Juergen


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker