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

multiple problems with mysql + pkg'ized ssl lib #106

Open
anttikantee opened this issue May 11, 2016 · 5 comments
Open

multiple problems with mysql + pkg'ized ssl lib #106

anttikantee opened this issue May 11, 2016 · 5 comments

Comments

@anttikantee
Copy link
Member

  1. mysql does not accept version "2" of libressl
    => either teach it to accept that, or package openssl and use that if you want mysql
  2. cmake does not find pkgs dir outside of CMAKE_FIND_ROOT_PATH
    => either put pkgs dir under root, or otherwise play games with cmake
@Ulrar
Copy link

Ulrar commented Mar 28, 2017

Not quite sure what to do with this. I've tried exporting CMAKE_FIND_ROOT_PATH to where I cloned rumrun-packages/pkgs but that doesn't work, or are you not referencing an env variable ?

@kaveman-
Copy link
Member

tried passing -DCMAKE_FIND_ROOT_PATH to cmake?

@Ulrar
Copy link

Ulrar commented Mar 28, 2017

Just tried, the final command run is :

cd /home/username/workspace/rumprun-packages/mysql/build/mysql/build-cross && cmake \
    -C /home/username/workspace/rumprun-packages/mysql/CachePreseed.cmake \
    -DCMAKE_TOOLCHAIN_FILE=/home/username/workspace/rumprun/./rumprun/rumprun-x86_64/share/x86_64-rumprun-netbsd-toolchain.cmake \
    -DSTACK_DIRECTION=-1 \
    -DDISABLE_SHARED=ON \
    -DWITH_ZLIB=system \
    -DWITH_SSL=system \
    -DFEATURE_SET=small \
    -DWITHOUT_PERFSCHEMA_STORAGE_ENGINE=1 \
		-DCMAKE_FIND_ROOT_PATH=/home/username/workspace/rumprun-packages/pkgs \
    ..

Still the same error. Whatever the actual solution is, might be a good idea to add a note in the README, I can't be the only one who doesn't know how cmake works.

@Ulrar
Copy link

Ulrar commented Mar 29, 2017

Allright, figured it out.
I ran make in the openssl directory myself, then I added

SET(CMAKE_FIND_ROOT_PATH "/home/username/workspace/rumprun-packages/pkgs")

On line 419 of build/mysql/CMakeLists.txt, that solved the openssl detection problem.

Then I had to add

SET(HAVE_SHA512_DIGEST_LENGTH TRUE)

on line 221 of build/mysql/cmake/ssl.cmake, just before the if. It should have been true already, I checked by hand, but for some reason it wasn't .. That might just be my cmake version I suppose.

In any case, could be a good idea to add a note in the README to say where to add the SET in the CMakeLists.txt

@anttikantee
Copy link
Member Author

Nice.

Can that be automatically patched as part of the build process?

btw, you might want to update the openssl package to the latest, probably not more complicated than bumping the version number.

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

3 participants