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

cmake: install --prefix is ignored for /etc/ssl/ files #1118

Closed
vszakats opened this issue Oct 24, 2024 · 0 comments · Fixed by #1119
Closed

cmake: install --prefix is ignored for /etc/ssl/ files #1118

vszakats opened this issue Oct 24, 2024 · 0 comments · Fixed by #1119

Comments

@vszakats
Copy link
Contributor

When installing LibreSSL with cmake --install, --prefix is ignored for /etc/ssl/ files:

cmake -B _bld
cmake --build _bld
cmake --install _bld --prefix _out

[...]
-- Installing: /path/to/libressl/_out/lib/pkgconfig/libtls.pc
-- Installing: /usr/local/etc/ssl/cert.pem
-- Installing: /usr/local/etc/ssl/openssl.cnf
-- Installing: /usr/local/etc/ssl/x509v3.cnf
-- Installing: /usr/local/etc/ssl/certs

It overwrites system files or fails, while missing these files from the requested prefix.

It's possible to work around this by using the DESTDIR env instead.

vszakats added a commit to curl/curl-for-win that referenced this issue Oct 24, 2024
@botovq botovq closed this as completed in 4f20970 Oct 29, 2024
nak3 pushed a commit to nak3/portable that referenced this issue Dec 16, 2024
Replace `${CMAKE_INSTALL_PREFIX}/etc` with
`${CMAKE_INSTALL_SYSCONFDIR}`.

It makes the install step honor the `--prefix` option.

Fixes libressl#1118
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

Successfully merging a pull request may close this issue.

1 participant