-
Notifications
You must be signed in to change notification settings - Fork 22
Debian package fix lintian errors #437
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
base: master
Are you sure you want to change the base?
Conversation
Use header level 2 for sections. Specify shell as language for commands.
…ep libs Two libraries are added manually because they aren't detected by shlibs
Also replace deprecated pkg-config with pkgconf
The CMake has a built-in variable BUILD_TESTING (default ON) to compile tests. When building a debian package, the debhelper configures the CMake with this option OFF. So now we don't need to pass the DADMC_BUILD_DEB=ON and we can simplify the debian/rules
|
|
||
| add_subdirectory(src) | ||
| if(NOT ADMC_BUILD_DEB) | ||
| if(BUILD_TESTING) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I recall correctly, the BUILD_TESTING variable is set up by CTest, which is not currently enabled in this project (see
https://cmake.org/cmake/help/latest/module/CTest.html
). Instead, we use the ADMC_BUILD_DEB variable, which is OFF by default. We need to consider one of three options: creating and setting a separate variable to explicitly enable or disable testing, setting ADMC_BUILD_DEB to ON by default, or completely refactoring the test setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the BUILD_TESTING not declared then the if will be ignored. This is typical usage as far I saw from other repos.
fea801a to
af5e590
Compare
@kvvloten please review.
The set cmake_minimum_required to 3.5 I made to fix a deprecation warning.
Now we have two ways to build a deb package: the standard
debuildand themake packageto build the deb package directly from the cmake with CPack. I found this confusing and unless the CPack is really used I would propose to remove it.UPD fixed in 468dcc8 Another problem is that tests are included by default unless the
ADMC_BUILD_DEBvar is not set. Because of this we have to specify theADMC_BUILD_DEBin thedebian/rulesfile.Maybe the test should be implemented with the CMake add_test or something like that to make it more standard. The the debhelper will just skip the tests in the convenient way.