Skip to content

appImage segfaults and build fails on Devuan 4 #8

@hyperlogos

Description

@hyperlogos

The appimage segfaulted so I tried to build admin-tools myself on Devuan 4 (based on Debian 11).

I built my own libxcrypt from the git sources and installed it to /usr/local.

This is where my build went wrong first:

Making all in yast-ruby-bindings
make[2]: Entering directory '/home/drink/Software/admin-tools/src/yast-ruby-bindings'
cmake -DCMAKE_CXX_FLAGS="-I/home/drink/Software/admin-tools/src/yast-core/liby2util-r/src/include -I/home/drink/Software/admin-tools/src/yast-core/libycp/src/include -I/home/drink/Software/admin-tools/src/yast-core/libscr/src/include -I/home/drink/Software/admin-tools/src" -DCMAKE_MODULE_PATH=/home/drink/Software/admin-tools/src/ -DCMAKE_PREFIX_PATH=/home/drink/Software/admin-tools/src/yast-ycp-ui-bindings/src/.libs/ -DCMAKE_PREFIX_PATH=/home/drink/Software/admin-tools/src/yast-core/scr/src/.libs/ -DCMAKE_PREFIX_PATH=/home/drink/Software/admin-tools/src/yast-core/wfm/src/.libs/ -DCMAKE_INSTALL_PREFIX=/usr/local CMakeLists.txt && make --trace
-- prefix set to /usr/local
-- Libraries will be installed in /usr/local/lib64
-- package name set to 'yast2-ruby-bindings'
-- Version: 4.5.4

-- YaST2 found: includes in /home/drink/Software/admin-tools/src/yast-core/liby2/src/include, library in /home/drink/Software/admin-tools/src/yast-core/liby2/src/.libs/liby2.so
--              plugins in /usr/local/lib64/YaST2/plugin
--              scr in /home/drink/Software/admin-tools/src/yast-core/scr/src/.libs/libpy2scr.so
--              wfm in /home/drink/Software/admin-tools/src/yast-core/wfm/src/.libs/libpy2wfm.so
--              UI in /home/drink/Software/admin-tools/src/yast-ycp-ui-bindings/src/.libs/libpy2UI.so
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
RUBY_LIBRARY (ADVANCED)

I was able to bypass this by editing the CMakeCache.txt thusly:

RUBY_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libruby-2.7.so

The library is there, I don't know why it couldn't find it, I didn't look further.
Now I've got the whole thing built but because I'm trying to install to /usr/local it's dying here:

make[6]: Entering directory '/home/drink/Software/admin-tools/src/yast-core/liby2/src'
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ../../libtool   --mode=install /usr/bin/install -c -p   liby2.la '/usr/local/lib'
libtool:   error: error: cannot install 'liby2.la' to a directory not ending in /usr/lib
make[6]: *** [Makefile:513: install-libLTLIBRARIES] Error 1

I guess I'll try configure --prefix=/opt/admin-tools/usr
...hmm nope, it blew up again

make[4]: Entering directory '/home/drink/Software/admin-tools/src'
pushd yast-yast2; rake install && popd
/home/drink/Software/admin-tools/src/yast-yast2 /home/drink/Software/admin-tools/src
rake aborted!
LoadError: cannot load such file -- yast/rake
/home/drink/Software/admin-tools/src/yast-yast2/Rakefile:1:in `<top (required)>'
/usr/share/rubygems-integration/all/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
make[4]: *** [Makefile:571: install-exec-hook] Error 1
make[4]: Leaving directory '/home/drink/Software/admin-tools/src'

etc. I have rake installed on my system. It seems to be at /var/lib/gems/2.7.0/gems/rake-13.0.6. I don't know where to go from here.

Oh good, I just discovered that you're not successfully passing the --prefix flag on to the sub-projects, so now I've got a mess in /usr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions