Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Fedora 23 build failing when packaging #75

Open
radekg opened this issue Mar 30, 2016 · 1 comment
Open

Fedora 23 build failing when packaging #75

radekg opened this issue Mar 30, 2016 · 1 comment

Comments

@radekg
Copy link

radekg commented Mar 30, 2016

Hello,

I am building Mesos on Fedora 23 and my build is failing at the very, very end, after building the python egg. This happens at the packaging stage. The error is:

Create symlinks for backwards compatibility (e.g. Marathon currently
expects libmesos.so to exist in /usr/local/lib).
cp: cannot stat '../../lib/lib*.so': No such file or directory

I believe the problem resides here: https://github.com/mesosphere/mesos-deb-packaging/blob/master/build_mesos#L236-L242

My toor structure looks like this:

$> ls -la toor/usr/lib
total 0
drwxr-xr-x   4 rad  staff  136 30 Mar 03:38 .
drwxr-xr-x  10 rad  staff  340 30 Mar 03:38 ..
drwxr-xr-x   3 rad  staff  102 30 Mar 03:38 python2.7
drwxr-xr-x   3 rad  staff  102 30 Mar 03:38 systemd

and

$> $ ls -la toor/usr/lib64/
total 72080
drwxr-xr-x  15 rad  staff       510 30 Mar 03:38 .
drwxr-xr-x  10 rad  staff       340 30 Mar 03:38 ..
-rwxr-xr-x   1 rad  staff    175568 30 Mar 03:38 libfixed_resource_estimator-0.27.2.so
-rwxr-xr-x   1 rad  staff      1237 30 Mar 03:38 libfixed_resource_estimator.la
lrwxr-xr-x   1 rad  staff        37 30 Mar 03:38 libfixed_resource_estimator.so -> libfixed_resource_estimator-0.27.2.so
-rwxr-xr-x   1 rad  staff    210160 30 Mar 03:38 libload_qos_controller-0.27.2.so
-rwxr-xr-x   1 rad  staff      1207 30 Mar 03:38 libload_qos_controller.la
lrwxr-xr-x   1 rad  staff        32 30 Mar 03:38 libload_qos_controller.so -> libload_qos_controller-0.27.2.so
-rwxr-xr-x   1 rad  staff    433000 30 Mar 03:38 liblogrotate_container_logger-0.27.2.so
-rwxr-xr-x   1 rad  staff      1249 30 Mar 03:38 liblogrotate_container_logger.la
lrwxr-xr-x   1 rad  staff        39 30 Mar 03:38 liblogrotate_container_logger.so -> liblogrotate_container_logger-0.27.2.so
-rwxr-xr-x   1 rad  staff  36045000 30 Mar 03:38 libmesos-0.27.2.so
-rwxr-xr-x   1 rad  staff      1180 30 Mar 03:38 libmesos.la
lrwxr-xr-x   1 rad  staff        18 30 Mar 03:38 libmesos.so -> libmesos-0.27.2.so
drwxr-xr-x   3 rad  staff       102 30 Mar 03:37 pkgconfig

I wonder if there is a setting available to make the installation happen to the expected directory or, if this is an issue to look at, what would be the desired way to tackle this? One way would be to check if there is usr/lib64 and if there are *.so file in there, if there are any, copy them to usr/lib. Does that sound reasonable?

I'm up for creating a pr if this would be a reasonable solution.

Thank you in advance.

radekg added a commit to radekg/mesos-toolbox that referenced this issue Mar 30, 2016
@radekg
Copy link
Author

radekg commented Mar 30, 2016

I have tested this patch: https://github.com/radekg/mesos-toolbox/blob/master/patches/mesos-packaging/b929d6b84bcc080b490a7ee79c0115e82984a648-fedora.patch
with Fedora 22 and Fedora 23. Mesos builds fine. I am now testing Fedora 21. I'd love to hear some feedback.

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

No branches or pull requests

1 participant