Bug 20662 – dmd: cannot execute: Permission denied

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-03-10T15:18:14Z
Last change time
2020-11-09T01:22:22Z
Assigned to
No Owner
Creator
Ernesto Castellotti

Comments

Comment #0 by erny.castell — 2020-03-10T15:18:14Z
DMD does not have execute permission after installation via make install. It is therefore necessary to manually give execute permission to the dmd binary. Output log: ./dmd -v bash: ./dmd: Permesso negato
Comment #1 by dlang-bot — 2020-03-10T15:20:50Z
@ErnyTech updated dlang/dmd pull request #10889 "Set the DMD binary as executable" mentioning this issue: - Set the DMD binary as executable The dmd binary must have permission to be executable otherwise it would be impossible to launch it without manually setting permissions. This patch sets the 644 permission by default for all the other files installed through installRelativeFiles while the 755 permissions will be set for the dmd binary. This fixes the issue #20662 https://github.com/dlang/dmd/pull/10889
Comment #2 by erny.castell — 2020-03-10T15:22:08Z
This problem occurs as a result of PR #10670
Comment #3 by dlang-bot — 2020-03-10T23:56:59Z
dlang/dmd pull request #10889 "(Fix #20662) Set the DMD binary as executable" was merged into stable: - 16b3334395547123fd62f00728928be399257705 by Ernesto Castellotti: Set the DMD binary as executable The dmd binary must have permission to be executable otherwise it would be impossible to launch it without manually setting permissions. This patch sets the 644 permission by default for all the other files installed through installRelativeFiles while the 755 permissions will be set for the dmd binary. This fixes the issue #20662 https://github.com/dlang/dmd/pull/10889
Comment #4 by dlang-bot — 2020-03-28T00:04:35Z
@MoonlightSentinel created dlang/dmd pull request #10970 "Merge branch 'master' into stable" mentioning this issue: - Set the DMD binary as executable The dmd binary must have permission to be executable otherwise it would be impossible to launch it without manually setting permissions. This patch sets the 644 permission by default for all the other files installed through installRelativeFiles while the 755 permissions will be set for the dmd binary. This fixes the issue #20662 https://github.com/dlang/dmd/pull/10970
Comment #5 by dlang-bot — 2020-04-12T21:07:06Z
@MartinNowak created dlang/dmd pull request #11027 "merge stable" mentioning this issue: - Set the DMD binary as executable The dmd binary must have permission to be executable otherwise it would be impossible to launch it without manually setting permissions. This patch sets the 644 permission by default for all the other files installed through installRelativeFiles while the 755 permissions will be set for the dmd binary. This fixes the issue #20662 https://github.com/dlang/dmd/pull/11027
Comment #6 by pro.mathias.lang — 2020-11-09T01:22:22Z
Fixed by https://github.com/dlang/dmd/pull/10889 (v2.091.1) but the commit message had an extra "the" so the bot didn't recognize it.