Page MenuHomePhabricator

file permissions cause lintian warnings
Closed, ResolvedPublic

Description

Dear Sir or Madam,

0) Context

DEB packages of `mediawiki' and many of its extensions, are prepared as part of the WP-MIRROR project (see https://www.mediawiki.org/wiki/Wp-mirror).

  1. Lintian

During the build process, `lintian' performs a great number of sanity checks, including seeing if each file has file permissions appropriate to its file type.

When lintian' sees a non-executable file with 755 permissions, rather than 644, lintian' will throw a warning like:

W: wp-mirror-mediawiki-extensions: executable-not-elf-or-script usr/share/wp-mirror-mediawiki/tests/browser/Gemfile

When lintian' sees a shell script with 644 permissions, rather than 755, lintian' will throw a warning like:

W: wp-mirror-mediawiki-extensions: script-not-executable usr/share/wp-mirror-mediawiki/includes/limit.sh

  1. Files which should have permissions set to 644

resources/src/mediawiki.skinning/content.externallinks.css
tests/browser/Gemfile

  1. Files which should have permissions set to 755

includes/limit.sh
includes/normal/UtfNormalTest2.php
maintenance/postgres/compare_schemas.pl
maintenance/postgres/mediawiki_mysql2postgres.pl
maintenance/storage/make-blobs

  1. Technical details

DEB standards version: 3.9.6
GIT branch: wmf/1.24wmf22

Sincerely Yours,
Kent


Version: unspecified
Severity: enhancement
OS: Linux

Details

Reference
bz71972

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:49 AM
bzimport added a project: MediaWiki-General.
bzimport set Reference to bz71972.
bzimport added a subscriber: Unknown Object (MLST).

gerritadmin wrote:

Change 168627 had a related patch set uploaded by Southparkfan:
chmod 755 bash & Perl files, chmod 644 .css file

https://gerrit.wikimedia.org/r/168627

gerritadmin wrote:

Change 168627 merged by jenkins-bot:
chmod 755 bash & Perl files, chmod 644 .css file

https://gerrit.wikimedia.org/r/168627

Some files also done with I6def7588b970a15c4e6bd49dc4f7a7138687a99e