man Pages needs Toggle to enable/disable and/or Cmake path option #265
Labels
No labels
bug
duplicate
enhancement
help wanted
in progress...
information
invalid
not enough info
priority high
priority low
priority normal
question
request
research
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Techwizz/pvpgn-server#265
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PvPGN on
make install
wants to install man pages to a location accessible by root. I compile PvPGN as a non-privileged user, and this causes the install process to fail on the man page step.I don't exactly need the man pages, so perhaps a Cmake option to disable them might be viable. Alternatively, a Cmake option to set the man directory would also work (I could set the directory to a location my PvPGN user can access). I have no idea if the man pages could work from a non-standard directory though so I'm not sure how good of an idea this is.
I think you got the compiling and installing step confused.
make
compiles it butmake install
installs it (basically, it copies files to/usr/local/*
which requires root. I don't see a problem here.Perhaps you want to install it to some non-default location like home directory? You can use
-D CMAKE_INSTALL_PREFIX=/home/me
, with cmake, should work. It's in the readme.Ah, I usually run 'make install' when I compile things just so it'll automatically put the compiled stuff in the expected folder.
With PvPGN (and other game servers), I have a dedicated non-privileged account that can only write to a few folders.
CMAKE_INSTALL_PREFIX
covers everything except the man pages, which is a forced define toSHARE_INSTALL_PREFIX
insrc/cmake/Modules/DefineInstallationPaths.cmake
.As a quick hack-fix, I changed the
SHARE_INSTALL_PREFIX
toCMAKE_INSTALL_PREFIX
at line 41 inDefineInstallationPaths.cmake
: https://github.com/pvpgn/pvpgn-server/blob/master/cmake/Modules/DefineInstallationPaths.cmake#L41Ah I see. The define is at https://github.com/pvpgn/pvpgn-server/blob/master/cmake/Modules/DefineInstallationPaths.cmake#L61 but it's already used previously. That block should probably be moved further up (like at line 10) and then it should be fine. Can you try this and make a pull request if it works?