-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fixed #13083 - correct addons and cfgs install locations #6764
Conversation
`FILESDIR_DEF` is an actual path which should be used for installation, while `FILESDIR` is an option with default value of `OFF` which leads to files installed to `${CMAKE_INSTALL_PREFIX}/OFF/{addons,cfgs,platforms}`
Thanks for your contribution. This needs tests to make sure it actually behaves as intended. We also need to get input from the actual packagers how they are building packages (I have been wanted to do that for ages). See also https://trac.cppcheck.net/ticket/8659. |
CC'ing @c72578 @gdsotirov |
Something also seems wrong when using |
It does indeed, in fact I'm surprised such regression came unnoticed. IIRC that's not the only installation regression.
You can have my input as FreeBSD packager, you can also inspect known recipes for packages in many repositories. You would also have more input of GH issues were enabled. For instance, you have test regression in 2.15.0 on FreeBSD, but I cannot afford spending time on reporting to (and then monitoring) third party trackers. |
I was thinking about that - something I never got around to since I wasn't sure how things are actually to behave. Same for
Nice. I wasn't aware of that. But we also have other packagers which actively give feedback so it would be good if all are on the same page.
I understand that, but that's kinda what has to be done to keeping things together. |
Concerning Fedora packaging, the current rpm spec file can be found here: |
Until #6776 I did not understand the issue and I was not aware it was just a "typo". I filed https://trac.cppcheck.net/ticket/13083 so it is being tracked. I will tests in a follow-up PR and also open a backport for 2.15.x. |
`FILESDIR_DEF` is an actual path which should be used for installation, while `FILESDIR` is an option with default value of `OFF` which leads to files installed to `${CMAKE_INSTALL_PREFIX}/OFF/{addons,cfgs,platforms}` (cherry picked from commit 5ad1d39)
Backport to |
`FILESDIR_DEF` is an actual path which should be used for installation, while `FILESDIR` is an option with default value of `OFF` which leads to files installed to `${CMAKE_INSTALL_PREFIX}/OFF/{addons,cfgs,platforms}` (cherry picked from commit 5ad1d39) Co-authored-by: Dmitry Marakasov <[email protected]>
Thanks for the additional information concerning -- FILESDIR = /usr/share/Cppcheck
-- FILESDIR_DEF = /usr/share/Cppcheck Remark: Line 107 in 70b3f71
[1] See e.g.: https://kojipkgs.fedoraproject.org//packages/cppcheck/2.15.0/1.fc42/data/logs/x86_64/build.log |
We have no documentation of those variables. Since it is not possible to only the custom
Yeah, I changed that in #6437 so I can actually disable it. But even though I authored it I am a bit confused by it. Somehow I totally blanked on that you can set CMake variables without having an Seems my long-standing health issue affect my mind even more than I even realize in some cases...having that many balls in the air definitively doesn't help. I should have added tests in that PR. |
I'm already using |
FILESDIR_DEF
is an actual path which should be used for installation, whileFILESDIR
is an option with default value ofOFF
which leads to files installed to${CMAKE_INSTALL_PREFIX}/OFF/{addons,cfgs,platforms}