https://bugzilla.novell.com/show_bug.cgi?id=625415
https://bugzilla.novell.com/show_bug.cgi?id=625415#c14
Michal Vyskocil changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEEDINFO
InfoProvider| |maintenance@opensuse.org
--- Comment #14 from Michal Vyskocil 2010-09-22 13:51:09 UTC ---
Hi all,
finally I was able to find the real root of this problem. It is a changed/more
strict semantics of %attr definition in %file list section in a spec file.
Affected directories are defined like
%attr(0775,root,tomcat) %dir %{logdir}
The rpm(build) to 4.7.1 recognize the 0775 for %dir as a directory mode, even
if specification says [1] it is file permission. In openSUSE 11.3 we have the
more recent rpm 4.8.0 interprets this correctly, so in this case it use the
directory mode from the closest %deffattr, which is 0755.
So fix is straightforward - collect all tomcat group writable directories under
%defattr(-,root,tomcat,0775)
The new commit in home:mvyskocil:branches:openSUSE:11.3:Update:Test/tomcat6 [2]
contains this fix and reverts back the previous ownership change, so nothing
will changes in tomcat6.
A quick check
$ ls -ld /usr/share/tomcat6/logs/ /usr/share/tomcat6/work/Catalina/
/usr/share/tomcat6/webapps/ /var/cache/tomcat6/ /var/cache/tomcat6/*
/srv/tomcat6/webapps/ /var/log/tomcat6/
drwxrwxr-x 8 root tomcat 89 Sep 22 14:34 /srv/tomcat6/webapps/
drwxrwxr-x 2 root tomcat 6 Sep 22 14:23 /usr/share/tomcat6/logs/
drwxrwxr-x 8 root tomcat 89 Sep 22 14:34 /usr/share/tomcat6/webapps/
drwxrwxr-x 3 root tomcat 22 Sep 22 14:34 /usr/share/tomcat6/work/Catalina/
drwxrwxr-x 4 root tomcat 32 Sep 22 14:34 /var/cache/tomcat6/
drwxrwxr-x 3 root tomcat 22 Sep 22 14:34 /var/cache/tomcat6/Catalina
drwxrwxr-x 2 root tomcat 6 Sep 22 14:23 /var/cache/tomcat6/temp
drwxrwxr-x 2 root tomcat 6 Sep 22 14:23 /var/log/tomcat6/
It has a fix of /etc/tomcat6/Catalina symlink too
lrwxrwxrwx 1 root root 27 Sep 22 14:34 Catalina ->
/var/cache/tomcat6/Catalina
[1] http://www.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html
(In reply to comment #13)
I can't see a 11.3 branch in /repositories/home:/mvyskocil:/branches:/openSUSE:
Am I looking in the right place?
Sorry, forgot to publish. The download.o.o is dead right away so cannot check.
Anyway the osc getbinaries
home:mvyskocil:branches:openSUSE:11.3:Update:Test/tomcat6 will download the
rpms using API.
maintenance: can I have a swampid for tomcat6 update for openSUSE 11.3?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.