Project

General

Profile

Actions

Task #102370

closed

More a question: The order of the $defaultExecutableSearchPaths Array

Added by Michael Kasten 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
-
Start date:
2023-11-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
easy
Sprint Focus:

Description

Inside the Classfile:

https://github.com/TYPO3-CMS/install/blob/v12.4.4/Classes/Configuration/Image/AbstractImagePreset.php

is a PHP Array with known executable Path Informations:

protected $defaultExecutableSearchPaths = [
        '/usr/local/bin/',
        '/opt/local/bin/',
        '/usr/bin/',
        '/usr/X11R6/bin/',
        '/opt/bin/',
        'C:/php/ImageMagick/',
        'C:/php/GraphicsMagick/',
        'C:/apache/ImageMagick/',
        'C:/apache/GraphicsMagick/',
    ];

I am a little bit confused about the path order if i think about the Unix Directory Tree specifications:

1. /usr/local/bin is for programs that a normal user may run
2. /opt/local/bin Add-on application software packages, optional!
3. /usr/bin is the primary directory for executable programs.
...

Question: Why stand an optional executable path in this order bevor the primary paths of executables

In my opinion this creates unnecessary warnings, maybe there is somthing that i not know here but i guess this would be the better order:

'/usr/bin/',
'/usr/local/bin/',
'/opt/bin/',
'/opt/local/bin/',
'/usr/X11R6/bin/',
.....

Actions #1

Updated by Chris Müller 6 months ago

From my understanding:

When I install a package locally as an administrator (in /usr/local/bin) this is done on purpose and should have priority about the package from the distribution (installed in /usr/bin).

Actions #2

Updated by Michael Kasten 5 months ago

Thanks for the answer, that is the point i am totally overseen.
So Ticket can closed

Actions #3

Updated by Sybille Peters 5 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF