Skip to content
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

Flashmq ignores CMAKE_INSTALL_PREFIX #113

Open
billpriest opened this issue Aug 30, 2024 · 2 comments
Open

Flashmq ignores CMAKE_INSTALL_PREFIX #113

billpriest opened this issue Aug 30, 2024 · 2 comments

Comments

@billpriest
Copy link

When crosscompiling I specified the CMAKE_INSTALL_PREFIX on the command line
cmake -DCMAKE_INSTALL_PREFIX=/opt/flashmq ../Flashmq
make
sudo make install

The install step installed as follows
-- Install configuration: ""
-- Up-to-date: /usr/bin/flashmq
-- Up-to-date: /var/lib/flashmq
-- Up-to-date: /var/log/flashmq
-- Up-to-date: /etc/flashmq/flashmq.conf
-- Up-to-date: /lib/systemd/system/flashmq.service
-- Up-to-date: /usr/share/man/man5/flashmq.conf.5
-- Up-to-date: /usr/share/man/man1/flashmq.1

@halfgaar
Copy link
Owner

halfgaar commented Sep 1, 2024

I'm looking into it, but the cmake CMAKE_INSTALL_PREFIX world is a treacherous one, apparently.

A problem is the systemd file, whose content needs to change for a different path.

Also, I'm not quite sure what to do with /etc, /var/log and /var/lib. Cmake has variables for them that put them in /usr/local, but using those dirs seems uncommon. The whole concept of 'local install' is dodgy anyway.

BTW, you're building a slow debug build.

@billpriest
Copy link
Author

Since I am crosscompiling my install scripts typically transform paths in the tarball to put the files in the "correct" place on the target system as opposed to having to change "default paths" of the services and configuration files. I'm not sure what other people that crosscompile do; so modifying the systemd files wasn't required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants