Closed dankmolot closed 2 years ago
Hmm, this is a weird one. I have an idea that I'd appreciate you try, without any other changes. Replace include("bitmap")
at the bottom of garrysmod_common/sourcesdk-minimal/premake5.lua
with include("./bitmap")
. It's weird that include
is trying to open /usr/bin/bitmap
but it's possible it's a premake-core bug. I'd expect it to search locally before using PATH
.
Changed to include('./bitmap')
, but it didn't help. It also tries to load /usr/bin/bitmap
. Cloned again garrysmod_common
and changed include
, nothing changed. Now I will try to use the alpha version of premake5.
It looks like this is a problem with the beta
release of premake5. With premake5 alpha 16
, everything works fine. I will open an issue.
Here issue on premake repository premake/premake-core#1783
Interesting fact. The problem is not with the premake5 version, but with the location of the binary. If premake5 is in /usr/bin, it will search /usr/bin first.
Good find. This is definitely a premake-core bug because, even if you do include("./bitmap")
, the error occurs. And that one should definitely search from the current working directory.
That also explains why I never got (or could reproduce) the issue. I always have user installed binaries in a user directory added to the PATH
variable.
I'll close this off as a third-party issue.
Enviroment
OS - Debian GNU/Linux 10 (buster) Premake5 - premake5 (Premake Build Script Generator) 5.0.0-beta1 garrysmod_common - master branch 72f62b4bb2ee33e05bfbc3ea79e48ba54e952904
Premake script
Output
How to fix
Delete or move
/usr/bin/bitmap
, so premake5 can't find it:Also found simillar issue: https://github.com/hoelzro/linotify/issues/18 Alternatively, change the
package.cpath
(maybe works, not tested)Current
package.path
Current
package.cpath
But there must be another way. These options are a little hacky, maybe something in garrysmod_common is the problem? (exactly in it, but where?)