bugGNU Octave - Bugs: bug #58072, Do not install executable *.oct in...

 
 

bug #58072: Do not install executable *.oct in /usr/lib

Submitter:  Rafael Laboissière <rlaboiss>
Submitted:  Sat 28 Mar 2020 10:24:47 PM UTC
   
 
Category:  Configuration and Build System Severity:  1 - Wish
Priority:  1 - Later Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 5.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 29 Mar 2020 07:14:54 PM UTC, comment #1: 

I don't think this is really covered by FHS. As I read it, FHS doesn't say anything about whether shared library files should or should not have the executable permission bits set. It only talks about whether executable programs should be installed under /usr/lib or elsewhere. .oct files are clearly not programs, but are dynamic modules, so they are allowed to be installed under /usr/lib.

This is more a question of Debian Policy §8.1, which says

> Shared libraries should not be installed executable, since the dynamic linker does not require this and trying to execute a shared library usually results in a core dump.


but also says

> Shared libraries […] that are only loaded as dynamic modules are not covered by this section and are not subject to its requirements.


There doesn't seem to be a clear right answer here, and the easiest and most consistent thing would be to continue to install .oct files with the executable permission bits set. But we could discuss whether we should change the permissions on .oct files, either when building or when installing them.

We should also consider .oct files built by Octave's own build system as well as .oct files built by mkoctfile and installed by the pkg command equivalently.

Mike Miller <mtmiller>
Group Member
Sat 28 Mar 2020 10:24:47 PM UTC, original submission:  

According to the Filesystem Hierarchy Standard (FHS) version 3.0, sections 4.6 and 4.7, executable files should not be installed in /usr/lib.

The install function in pkg/private/install.m installs the *.oct files in /usr/lib with execute access, which is a violation of FHS.

Please, change install.m in order to install non-executable *.oct files.

Rafael Laboissière <rlaboiss>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rlaboiss (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-03-29 mtmiller CategoryOctave Function Configuration and Build System
        Severity3 - Normal 1 - Wish
        Priority5 - Normal 1 - Later
        Item GroupOther Feature Request

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code