Hi all, this is not a problem directly related to OpenClonk as game, but more of an issue packaging it for a certain Linux distribution. Since we don't have an off topic board anymore, I figured I'd post it here.
I recently submitted an update to a so-called PKGBUILD to the public Arch Linux User Repository to work with OpenClonk 5.4.0, enabling users to quickly install the stable version. This works out fine so far, the only problem is that c4group is installed to
Does it make sense to create another package only for c4group which Clonk Rage and OpenClonk can depend upon, or are the version differences problematic? Should I agree with the other maintainer to keep the whole games in their own folders, similar to how the binary tarballs are published? I'd be really happy for any ideas or recommendations to enable users to keep both games on one system.
On a related note, am I able to tell OpenClonk where the game files are located? The game seems to only find them in
I recently submitted an update to a so-called PKGBUILD to the public Arch Linux User Repository to work with OpenClonk 5.4.0, enabling users to quickly install the stable version. This works out fine so far, the only problem is that c4group is installed to
/usr/bin/c4group
, which conflicts with another PKGBUILD for Clonk Rage. I do think it makes sense to keep the binaries at the respective location of the distribution, but have any other packagers maybe got experience how this could be done with both games at once?Does it make sense to create another package only for c4group which Clonk Rage and OpenClonk can depend upon, or are the version differences problematic? Should I agree with the other maintainer to keep the whole games in their own folders, similar to how the binary tarballs are published? I'd be really happy for any ideas or recommendations to enable users to keep both games on one system.
On a related note, am I able to tell OpenClonk where the game files are located? The game seems to only find them in
/usr/share/games/openclonk
, whereas the distribution usually would recommend using /usr/share/openclonk
(if I don't go they way of putting binaries and game data in the same folder).
This has to work for OC4.0? For future versions, we could rename c4group to ocgroup.
It doesn't really - I just updated the package to 4.0 and realized the conflict, since I usually have the Clonk Rage package installed. Renaming it to
ocgroup
would solve the problem, since we dropped the .c4*-prefix (at least on the filesystem) anyway. I've added an entry to the bugtracker for discussion.
> On a related note, am I able to tell OpenClonk where the game files are located? The game seems to only find them in /usr/share/games/openclonk, whereas the distribution usually would recommend using /usr/share/openclonk (if I don't go they way of putting binaries and game data in the same folder).
There is this snippet from
CMakeLists.txt
:
if(UNIX)
# Don't put this into CMAKE_CXX_FLAGS because otherwise it is cached,
# and when the path is changed both the old and new definition appears
# in the list of flags.
add_definitions("-DOC_SYSTEM_DATA_DIR=\"${CMAKE_INSTALL_PREFIX}/share/games/openclonk\"")
endif()
So it does not seem to be easily configurable, but you could apply a distro-patch for Arch, changing the path. For the future we should maybe make this a cmake option.
> On a related note, am I able to tell OpenClonk where the game files are located? The game seems to only find them in /usr/share/games/openclonk, whereas the distribution usually would recommend using /usr/share/openclonk (if I don't go they way of putting binaries and game data in the same folder).
That is how it was before. We changed it on request by our Debian packager pkern. See bugtracker entry:
http://bugs.openclonk.org/view.php?id=834
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill