Hi Ryan,
I think I have a working package for Arch Linux, but there
are some minor issues I would like to resolve before submitting
it to the official repo.
1. Disabling models and model drivers
So far I did not plan to split the package into different parts, like
lib, headers and models. That's why I would like to remove all
default models and model drivers. This was possible
with the -DKIM_API_BUILD_MODELS_AND_DRIVERS switch.
Apparently this has been removed and is no longer supported.
Is there any replacement or should I just manually remove the files
from the respective directories before creating the package?
2. Enabling PIE flags
Arch requires libraries to be built with the PIE flags.
The common way of adding the default CMake flags does not work:
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
Do you have some recommendations how I could enable this
for all binaries and libraries created by CMake?
3. Changing libexec path
Arch Linux does not allow the libexec path and requires everthing
to be installed in /usr/lib/$pkgname. So far that is no problem,
I just adjusted the paths in kim-api-v2-config.cmake, libkim-api-v2.pc
and kim-api-v2-collections-management. Do you think this will be a problem?
Did I maybe miss something?
4. $srcdir in binaries
The build process issues some warnings that the binaries contain references
to the source path. Basically this is due to the log statements containing the
full path of the source file. Probably there is nothing we can do about this.
However, there are some other places which look pretty strange to me.
E.g. here:
$ strings /usr/lib/kim-api-v2/kim-api-v2-simulator-model | grep workspace
/usr/lib/kim-api-v2/model-driver~/.kim-api-v2/mo/home/daniel/workspace/libkim-
api/src/kim-api/cpp/src/old_KIM_APsilent
Can you see where this is coming from or which string this might be?
Here is another one:
$ strings /usr/lib/kim-api-v2/kim-api-v2-collections-info | grep workspace
/home/daniel/workspace/libkim-api/src/kim-api/cpp/src/KIM_LogImpLog object
destrUnable to make directory '
Best regards,
Daniel