[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packaging Jami progress

From: Gábor Boskovits
Subject: Re: Packaging Jami progress
Date: Mon, 4 Nov 2019 23:48:00 +0100


Jan Wielkiewicz <address@hidden> ezt írta (időpont: 2019. nov. 4., H, 21:48):
Hello everyone,

With some help from both you and Jami developers, I finally managed
to build pjproject-jami, which means the hardest task has been
already done! Now I have to package restinio, which replaced restbed in
Jami. I have already a sketch of the package, but I encountered a
problem I don't really know the meaning nor know how to fix it:

CMake Error at CMakeLists.txt:84 (add_subdirectory):
  add_subdirectory given source "fmt" which is not an existing directory.

This is most probably because fmt is missing from inputs.

-- Found OpenSSL: /gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.1c/lib/ (found version "1.1.1c") 
OpenSSL include dir: /gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.1c/include
OpenSSL libraries: /gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.1c/lib/;/gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.1c/lib/
-- Found PCRE: /gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43/lib/ 
-- PCRE_LIBRARIES='/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43/lib/'
-- PCRE_INCLUDE_DIRS='/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43/include'
-- Found PCRE2: /gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.33/lib/ 
-- PCRE2_LIBRARIES='/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.33/lib/'
-- PCRE2_INCLUDE_DIRS='/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.33/include'
-- PCRE2_LIBRARIES='/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.33/lib/'
-- PCRE2_INCLUDE_DIRS='/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.33/include'
CMake Error at CMakeLists.txt:124 (add_subdirectory):
  add_subdirectory given source "so_5" which is not an existing directory.

This is because SObjectizer is missing from inputs.
You can get further info about this in the cmake file:

-- Found ZLIB: /gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11/lib/ (found version "1.2.11")
-- ZLIB_LIBRARIES='/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11/lib/'
-- ZLIB_INCLUDE_DIRS='/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11/include'
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE 
-- Configuring incomplete, errors occurred!
See also "/tmp/guix-build-restinio-".
See also "/tmp/guix-build-restinio-".
command "cmake" "../dev" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DCMAKE_INSTALL_PREFIX=/gnu/store/1xjcw3icsrmrzjikbqslr11ihrsz22nj-restinio-" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" "-DCMAKE_INSTALL_RPATH=/gnu/store/1xjcw3icsrmrzjikbqslr11ihrsz22nj-restinio-" "-DCMAKE_VERBOSE_MAKEFILE=ON" failed with status 1

The package:

(define-public restinio
    (name "restinio")
    (version "")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "")

This does not seem the upstream repo. Could you change it to the upstream one? (Albeit, it seems to be an official mirror.)
Or if there is a tarball available for the needed version, that would be even better (, but I don't know if these archives are stable.
                    (commit (string-append "v." version))))
              (file-name (git-file-name name version))
    (build-system cmake-build-system)
     `(("zlib", zlib)
       ("openssl", openssl)
       ("boost", boost)
       ("asio", asio)
       ("pcre", pcre)
       ("pcre2", pcre2)))
     `(#:configure-flags '()
       (modify-phases %standard-phases
                      (add-after 'unpack 'change-directory
                                 (lambda _
                                   (chdir "dev")
    (home-page "")
    (synopsis "C++14 library that gives you an embedded HTTP/Websocket
    (description "RESTinio is a header-only C++14 library that gives
you an embedded
HTTP/Websocket server. It is based on standalone version of ASIO
and targeted primarily for asynchronous processing of HTTP-requests.")
    (license license:bsd-3)))

I created a new thread, because the old one was too long, which is not
helpful for anyone.

Jan Wielkiewicz

Best regards,
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

reply via email to

[Prev in Thread] Current Thread [Next in Thread]