premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

BUILD.txt instructions to build a debian package are not working

Open Pshy0 opened this issue 1 year ago • 1 comments

What seems to be the problem? Quote from BUILD.txt:

BUILDING deb BINARY PACKAGE

  1. sudo apt install devscripts
  2. bootstrap the premake
  3. ./bin/release/premake5 gmake2
  4. cp ./packages/debian ./debian
  5. debuild --no-lintian --no-sign
  6. the built package should appear in the parent dir.

Those instructions does not produce a functional debian package. There is several issues with those:

  • The cp ./packages/debian ./debian command is missing the -r option, which is necessary to copy the debian directory.
  • The debuild --no-lintian --no-sign will fail if the package debhelper is not installed.
  • The debian package will be created, but if you install it and run premake5, you get this error: Error: ** Error: Cannot find either vs2005.lua or vs2005.lua.lua or vs2005.lua/premake5.lua or vs2005.lua/premake4.lua

How can we reproduce this? Try the instructions from BUILD.txt mentioned above.

What version of Premake are you using? I am trying to build from the latest sources.

Related Issues: #420 #2041

Pshy0 avatar Aug 15 '23 00:08 Pshy0

There is currently a bug in the build not caught by CI. I plan to get that merged in within a day or so.

nickclark2016 avatar Aug 15 '23 00:08 nickclark2016