plutil
plutil copied to clipboard
liblinenoise.so was built but not installed.
Summary
make install
does not copy liblinenoise.so
.
Reproduction
% docker run --rm -it ubuntu:20.04
root@e4dfaf16dcce:/# export DEBIAN_FRONTEND=noninteractive
root@e4dfaf16dcce:/# cd usr/src/
root@e4dfaf16dcce:/usr/src# apt update && apt install tzdata -y
...
root@e4dfaf16dcce:/usr/src# apt install sudo -y && sudo apt install libpng-dev zlib1g-dev libxml2-dev pkg-config ninja-build cmake build-essential git -y
...
done.
root@e4dfaf16dcce:/usr/src# git clone --depth=1 https://github.com/screenplaydev/plutil && cd plutil && git submodule update --init && make install
Cloning into 'plutil'...
remote: Enumerating objects: 193, done.
remote: Counting objects: 100% (193/193), done.
remote: Compressing objects: 100% (155/155), done.
remote: Total 193 (delta 37), reused 147 (delta 26), pack-reused 0
Receiving objects: 100% (193/193), 146.81 KiB | 5.24 MiB/s, done.
Resolving deltas: 100% (37/37), done.
Submodule 'ThirdParty/googletest' (https://github.com/google/googletest.git) registered for path 'ThirdParty/googletest'
Submodule 'ThirdParty/linenoise' (https://github.com/antirez/linenoise.git) registered for path 'ThirdParty/linenoise'
Cloning into '/usr/src/plutil/ThirdParty/googletest'...
Cloning into '/usr/src/plutil/ThirdParty/linenoise'...
Submodule path 'ThirdParty/googletest': checked out 'a2b8a8e07628e5fd60644b6dd99c1b5e7d7f1f47'
Submodule path 'ThirdParty/linenoise': checked out 'c894b9e59f02203dbe4e2be657572cf88c4230c3'
mkdir -p build
cmake -Bbuild -H. -G Ninja -DCMAKE_INSTALL_PREFIX=
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.10")
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/src/plutil/build
ninja -C build
ninja: Entering directory `build'
[102/102] Linking CXX executable test_plist_XML
# @DESTDIR= \
#
ninja -C build install
ninja: Entering directory `build'
[0/1] Install the project...
-- Install configuration: ""
-- Installing: /lib/libgtest.so
-- Set runtime path of "/lib/libgtest.so" to "$ORIGIN/../lib"
-- Installing: /lib/libgtest_main.so
-- Set runtime path of "/lib/libgtest_main.so" to "$ORIGIN/../lib"
-- Installing: /include/gtest
-- Installing: /include/gtest/gtest-typed-test.h
-- Installing: /include/gtest/gtest-spi.h
-- Installing: /include/gtest/gtest_prod.h
-- Installing: /include/gtest/gtest-test-part.h
-- Installing: /include/gtest/gtest-param-test.h
-- Installing: /include/gtest/gtest.h
-- Installing: /include/gtest/gtest-param-test.h.pump
-- Installing: /include/gtest/internal
-- Installing: /include/gtest/internal/gtest-param-util.h
-- Installing: /include/gtest/internal/gtest-filepath.h
-- Installing: /include/gtest/internal/gtest-type-util.h.pump
-- Installing: /include/gtest/internal/gtest-linked_ptr.h
-- Installing: /include/gtest/internal/gtest-param-util-generated.h.pump
-- Installing: /include/gtest/internal/gtest-tuple.h
-- Installing: /include/gtest/internal/gtest-string.h
-- Installing: /include/gtest/internal/custom
-- Installing: /include/gtest/internal/custom/gtest.h
-- Installing: /include/gtest/internal/custom/gtest-port.h
-- Installing: /include/gtest/internal/custom/gtest-printers.h
-- Installing: /include/gtest/internal/gtest-tuple.h.pump
-- Installing: /include/gtest/internal/gtest-internal.h
-- Installing: /include/gtest/internal/gtest-port-arch.h
-- Installing: /include/gtest/internal/gtest-port.h
-- Installing: /include/gtest/internal/gtest-death-test-internal.h
-- Installing: /include/gtest/internal/gtest-param-util-generated.h
-- Installing: /include/gtest/internal/gtest-type-util.h
-- Installing: /include/gtest/gtest-death-test.h
-- Installing: /include/gtest/gtest-message.h
-- Installing: /include/gtest/gtest-printers.h
-- Installing: /include/gtest/gtest_pred_impl.h
-- Installing: /usr/lib/libext.so
-- Set runtime path of "/usr/lib/libext.so" to "$ORIGIN/../lib"
-- Installing: /usr/lib/libutil.so
-- Set runtime path of "/usr/lib/libutil.so" to "$ORIGIN/../lib"
-- Installing: /usr/lib/libplist.so
-- Set runtime path of "/usr/lib/libplist.so" to "$ORIGIN/../lib"
-- Installing: /usr/bin/plutil
-- Set runtime path of "/usr/bin/plutil" to "$ORIGIN/../lib"
-- Installing: /usr/bin/PlistBuddy
-- Set runtime path of "/usr/bin/PlistBuddy" to "$ORIGIN/../lib"
-- Installing: /usr/lib/libprocess.so
-- Set runtime path of "/usr/lib/libprocess.so" to "$ORIGIN/../lib"
root@e4dfaf16dcce:/usr/src/plutil# ls build/
CMakeCache.txt Libraries build.ninja libgtest.so libprocess.so test_plist_ASCII test_plist_JSON test_util_Escape test_util_Wildcard
CMakeFiles PlistBuddy cmake_install.cmake libgtest_main.so libutil.so test_plist_Binary test_plist_Real test_util_FSUtil test_util_Windows
CTestTestfile.cmake Testing install_manifest.txt liblinenoise.so plutil test_plist_Boolean test_plist_String test_util_MemoryFilesystem
DartConfiguration.tcl ThirdParty libext.so libplist.so rules.ninja test_plist_Encoding test_plist_XML test_util_Unix
root@e4dfaf16dcce:/usr/src/plutil# ls -la build/
total 6896
drwxr-xr-x 6 root root 4096 Dec 26 02:35 .
drwxr-xr-x 8 root root 4096 Dec 26 02:35 ..
-rw-r--r-- 1 root root 104256 Dec 26 02:35 .ninja_deps
-rw-r--r-- 1 root root 10395 Dec 26 02:35 .ninja_log
-rw-r--r-- 1 root root 20990 Dec 26 02:35 CMakeCache.txt
drwxr-xr-x 4 root root 4096 Dec 26 02:35 CMakeFiles
-rw-r--r-- 1 root root 314 Dec 26 02:35 CTestTestfile.cmake
-rw-r--r-- 1 root root 2522 Dec 26 02:35 DartConfiguration.tcl
drwxr-xr-x 7 root root 4096 Dec 26 02:35 Libraries
-rwxr-xr-x 1 root root 364328 Dec 26 02:35 PlistBuddy
drwxr-xr-x 3 root root 4096 Dec 26 02:35 Testing
drwxr-xr-x 3 root root 4096 Dec 26 02:35 ThirdParty
-rw-r--r-- 1 root root 141558 Dec 26 02:35 build.ninja
-rw-r--r-- 1 root root 1722 Dec 26 02:35 cmake_install.cmake
-rw-r--r-- 1 root root 1255 Dec 26 02:35 install_manifest.txt
-rwxr-xr-x 1 root root 16848 Dec 26 02:35 libext.so
-rwxr-xr-x 1 root root 1160376 Dec 26 02:35 libgtest.so
-rwxr-xr-x 1 root root 17328 Dec 26 02:35 libgtest_main.so
-rwxr-xr-x 1 root root 37032 Dec 26 02:35 liblinenoise.so
-rwxr-xr-x 1 root root 1552720 Dec 26 02:35 libplist.so
-rwxr-xr-x 1 root root 368136 Dec 26 02:35 libprocess.so
-rwxr-xr-x 1 root root 455224 Dec 26 02:35 libutil.so
-rwxr-xr-x 1 root root 391504 Dec 26 02:35 plutil
-rw-r--r-- 1 root root 16139 Dec 26 02:35 rules.ninja
-rwxr-xr-x 1 root root 311848 Dec 26 02:35 test_plist_ASCII
-rwxr-xr-x 1 root root 116904 Dec 26 02:35 test_plist_Binary
-rwxr-xr-x 1 root root 73320 Dec 26 02:35 test_plist_Boolean
-rwxr-xr-x 1 root root 138920 Dec 26 02:35 test_plist_Encoding
-rwxr-xr-x 1 root root 325632 Dec 26 02:35 test_plist_JSON
-rwxr-xr-x 1 root root 67416 Dec 26 02:35 test_plist_Real
-rwxr-xr-x 1 root root 103936 Dec 26 02:35 test_plist_String
-rwxr-xr-x 1 root root 254848 Dec 26 02:35 test_plist_XML
-rwxr-xr-x 1 root root 71872 Dec 26 02:35 test_util_Escape
-rwxr-xr-x 1 root root 153504 Dec 26 02:35 test_util_FSUtil
-rwxr-xr-x 1 root root 311784 Dec 26 02:35 test_util_MemoryFilesystem
-rwxr-xr-x 1 root root 150552 Dec 26 02:35 test_util_Unix
-rwxr-xr-x 1 root root 45352 Dec 26 02:35 test_util_Wildcard
-rwxr-xr-x 1 root root 175000 Dec 26 02:35 test_util_Windows
root@e4dfaf16dcce:/usr/src/plutil# ls -la /usr/lib
total 3652
drwxr-xr-x 1 root root 4096 Dec 26 02:35 .
drwxr-xr-x 1 root root 4096 Oct 6 16:47 ..
drwxr-xr-x 5 root root 4096 Oct 6 16:58 apt
drwxr-xr-x 2 root root 4096 Dec 26 02:34 bfd-plugins
drwxr-xr-x 2 root root 4096 Dec 26 02:34 compat-ld
lrwxrwxrwx 1 root root 21 Dec 26 02:35 cpp -> /etc/alternatives/cpp
drwxr-xr-x 3 root root 4096 Oct 6 16:47 dpkg
drwxr-xr-x 3 root root 4096 Dec 26 02:34 emacsen-common
drwxr-xr-x 3 root root 4096 Dec 26 02:34 gcc
drwxr-xr-x 3 root root 12288 Dec 26 02:34 git-core
drwxr-xr-x 2 root root 4096 Dec 26 02:34 gnupg
drwxr-xr-x 2 root root 4096 Dec 26 02:34 gnupg2
drwxr-xr-x 2 root root 4096 Dec 26 02:34 gold-ld
drwxr-xr-x 2 root root 4096 Oct 6 16:57 init
-rw-r--r-- 1 root root 16848 Dec 26 02:35 libext.so
-rw-r--r-- 1 root root 1160376 Dec 26 02:35 libgtest.so
-rw-r--r-- 1 root root 17328 Dec 26 02:35 libgtest_main.so
-rw-r--r-- 1 root root 1552720 Dec 26 02:35 libplist.so
-rw-r--r-- 1 root root 368136 Dec 26 02:35 libprocess.so
-rw-r--r-- 1 root root 455224 Dec 26 02:35 libutil.so
drwxr-xr-x 3 root root 4096 Apr 14 2020 locale
drwxr-xr-x 3 root root 4096 Oct 6 16:56 lsb
drwxr-xr-x 1 root root 4096 Nov 17 2019 mime
drwxr-xr-x 2 root root 4096 Dec 26 02:34 openssh
-rw-r--r-- 1 root root 382 Aug 4 14:53 os-release
-rw-r--r-- 1 root root 17 Feb 7 2020 pkg-config.multiarch
drwxr-xr-x 2 root root 4096 Feb 7 2020 pkgconfig
drwxr-xr-x 2 root root 4096 Dec 26 2019 sasl2
drwxr-xr-x 3 root root 4096 Dec 26 02:34 ssl
drwxr-xr-x 2 root root 4096 Dec 26 02:34 sudo
drwxr-xr-x 2 root root 4096 Oct 6 16:58 sysctl.d
drwxr-xr-x 1 root root 4096 Dec 26 02:34 systemd
drwxr-xr-x 16 root root 4096 Feb 26 2020 terminfo
drwxr-xr-x 1 root root 4096 Dec 26 02:34 tmpfiles.d
drwxr-xr-x 3 root root 4096 Oct 6 16:58 udev
drwxr-xr-x 1 root root 12288 Dec 26 02:35 x86_64-linux-gnu
root@e4dfaf16dcce:/usr/src/plutil# PlistBuddy
PlistBuddy: error while loading shared libraries: liblinenoise.so: cannot open shared object file: No such file or directory