Re: [Libreoffice] permission 444/555 of installation files

2011-07-19 Thread Petr Mladek
Andreas Radke píše v Út 19. 07. 2011 v 00:09 +0200:
 Nice, you've almost fixed all of them expect some *rc files:
 
 -r--r--r-- 1 root root 126 Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/ure/bin/versionrc
 -r--r--r-- 1 root root 1.1K Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/unorc
 -r--r--r-- 1 root root 44 Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/pythonloader.unorc
 -r--r--r-- 1 root root 1.5K Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/fundamentalbasisrc
 -r--r--r-- 1 root root 150 Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/versionrc
 -r--r--r-- 1 root root 50 Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/program/redirectrc
 -r--r--r-- 1 root root 56 Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/program/setuprc
 -r--r--r-- 1 root root 1.5K Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/program/fundamentalrc
 -r--r--r-- 1 root root 421 Jul 18 22:01 
 /build/pkg/libreoffice-common/usr/lib/libreoffice/program/versionrc

These might get fixed by the attached patch. They are created by the
perl installer from scratch.


Best Regards,
Petr
--- solenv/bin/modules/installer/profiles.pm.old	2011-05-18 17:51:47.0 +0200
+++ solenv/bin/modules/installer/profiles.pm	2011-07-19 18:45:47.0 +0200
@@ -107,7 +107,7 @@ sub add_profile_into_filelist
 $profile{'ismultilingual'} = 0;
 $profile{'sourcepath'} = $completeprofilename;
 $profile{'Name'} = $oneprofile-{'Name'};
-$profile{'UnixRights'} = 444;
+$profile{'UnixRights'} = 644;
 $profile{'gid'} = $oneprofile-{'gid'};
 $profile{'Dir'} = $oneprofile-{'Dir'};
 $profile{'destination'} = $oneprofile-{'destination'};
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] permission 444/555 of installation files

2011-07-18 Thread Petr Mladek
Andreas Radke píše v Po 18. 07. 2011 v 18:26 +0200:
 For a long time now we see lots of files installed with permission 444
 and 555 in ArchLinux. We are not sure if this is caused by a bug in our
 chroot environment using fakeroot or due to the LibO installer. Because of
 the missing write permission our build tools fail to strip the symbols.
 So we apply this:
 
  #fix http://bugs.archlinux.org/task/17656
  find ${pkgdir} -perm 444 -exec ls -lh {} \;
  find ${pkgdir} -perm 444 -exec chmod 644 {} \;
  find ${pkgdir} -perm 555 -exec ls -lh {} \;
  find ${pkgdir} -perm 555 -exec chmod 755 {} \;

I was always curious about the too strict permissions. I havn't seen it
in other software.

The attached patch should change it. I am not sure if it is acceptable
for others, though.


Best Regards,
Petr

PS: If you want to test it, please, remove scp2/unxlng* and
rebuild/deliver it. Just for sure ;-)
--- scp2/inc/macros.inc.old	2011-05-18 17:51:47.0 +0200
+++ scp2/inc/macros.inc	2011-07-18 19:58:27.0 +0200
@@ -92,10 +92,10 @@
 #endif
 
 #define BIN_FILE_BODY \
-UnixRights   = 555
+UnixRights   = 755
 
 #define TXT_FILE_BODY \
-UnixRights   = 444
+UnixRights   = 644
 
 #define USER_FILE_BODY \
 UnixRights   = 644
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] permission 444/555 of installation files

2011-07-18 Thread Andreas Radke
Nice, you've almost fixed all of them expect some *rc files:

-r--r--r-- 1 root root 126 Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/ure/bin/versionrc
-r--r--r-- 1 root root 1.1K Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/unorc
-r--r--r-- 1 root root 44 Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/pythonloader.unorc
-r--r--r-- 1 root root 1.5K Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/fundamentalbasisrc
-r--r--r-- 1 root root 150 Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/basis3.4/program/versionrc
-r--r--r-- 1 root root 50 Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/program/redirectrc
-r--r--r-- 1 root root 56 Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/program/setuprc
-r--r--r-- 1 root root 1.5K Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/program/fundamentalrc
-r--r--r-- 1 root root 421 Jul 18 22:01 
/build/pkg/libreoffice-common/usr/lib/libreoffice/program/versionrc


-Andy
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice