-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake fails on non-Debian Linux #801
Comments
I overcame this by manually configuring with Debian packaging disabled. |
On further investigation, this may be because in the past month I have installed a version of dpkg on my system (was playing with installing some Debian packages) and cmake finds it and thinks incorrectly that I am on Debian. This issue may only apply to my very special case (a non-Debian system that has dpkg installed anyway) and I think this issue can be closed. |
@stamasd So it primarily looks at |
Edited: Instead I confirm @stamasd issue |
@FabioLolix could you post a copy of what |
I've got a message on AURWeb and instead I confirm the problem https://aur.archlinux.org/packages/vegastrike-engine?all_deps=1#comment-938453 Will update later this evening |
|
Okay looking a little closer. @evertvorster - thanks. @stamasd if you're hitting https://github.com/vegastrike/Vega-Strike-Engine-Source/blob/master/engine/CMakeLists.txt#L1313 then it's because it detected Debian's Package Tooling on your system via https://github.com/vegastrike/Vega-Strike-Engine-Source/blob/master/engine/FindLinuxDistro.cmake#L88 and it also did not detected the LSB Tooling per https://github.com/vegastrike/Vega-Strike-Engine-Source/blob/master/engine/FindLinuxDistro.cmake#L75 so it thinks the Debian Essentially, the our CMake tooling checks for the available tools and configures CPack accordingly: ...
IF(VS_CAN_BUILD_DEB)
MESSAGE("-- Configuring Debian Packaging")
# See https://cmake.org/cmake/help/v3.3/module/CPackDeb.html
SET(CPACK_DEBIAN_PACKAGE_NAME "Vega-Strike")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]")
SET(CPACK_DEBIAN_PACKAGE_VERSION "${VEGASTRIKE_PKG_VERSION_STR}")
# Debian Version: /etc/debian_version - <name>/<junk>
IF (NOT LSB_EXISTS)
SET(USE_DEBIAN_VERSION TRUE)
FILE(READ "/etc/debian_version" DEBIAN_VERSION_DATA)
STRING(REGEX MATCH "^(.+)\/.*$" DEBIAN_VERSION_DATA DEBIAN_RELEASE_VERSION)
ELSE (NOT LSB_EXISTS)
SET(USE_DEBIAN_VERSION FALSE)
SET(DEBIAN_RELEASE_VERSION "Debian Derivative Release Version ${LSB_LINUX_DISTRIBUTION_CODENAME}")
ENDIF (NOT LSB_EXISTS)
... We probably should have a check to see if the @FabioLolix you only need NOTE: I used vegastrike/build-system-docker-images#45 to build an image to test locally. |
I have added
It is a depends of something else, Arch packages don't separate headers, etc |
@FabioLolix opened up a couple PRs; please help validate the builds; I was seeing other issues with the 0.8.x builds. I can confirm it detects the Debian Packaging on Arch and correctly marks the Debian Distro as This should also alleviate the need for inlcuding the |
Here is my /etc/os-release: No, I do not have lsb-release installed (the name of the package on Funtoo is sys-apps/lsb-release) If I install that, then /etc/lsb-release reads But again, that package is not installed by default on Funtoo. One way to tell if the installed distribution is Gentoo or a Gentoo derivative is to check if a directory /etc/portage exists. |
@stamasd do the PRs I posted help you? |
The PRs worked for me |
After updating the engine tree today, cmake fails to generate a makefile. It's because it can't figure out which version of Debian I'm on. I don't use Debian (Funtoo is my distribution, similar to Gentoo) and there is no file /etc/debian_version
Relevant output:
-- Configuring Packaging for Linux
-- Configuring Debian Packaging
CMake Error at CMakeLists.txt:1313 (FILE):
FILE failed to open for reading (No such file or directory):
Looking for /home/silviu/games/vegastrike/Vega-Strike-Engine-Source/build/dependency.list
Still need to generate dependency list
SEND_WARNING!! Unsupported Debian version.
The text was updated successfully, but these errors were encountered: