From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Packaging Jami progress Date: Mon, 4 Nov 2019 23:48:00 +0100 Message-ID: References: <20191104214754.793ec2ff@interia.pl> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000041f5a405968d1c1b" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45857) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRl95-0008Ka-8x for guix-devel@gnu.org; Mon, 04 Nov 2019 17:48:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRl8z-0003lN-Ve for guix-devel@gnu.org; Mon, 04 Nov 2019 17:48:21 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:44817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRl8y-0003gd-K1 for guix-devel@gnu.org; Mon, 04 Nov 2019 17:48:17 -0500 Received: by mail-ed1-x52c.google.com with SMTP id a67so2390651edf.11 for ; Mon, 04 Nov 2019 14:48:13 -0800 (PST) In-Reply-To: <20191104214754.793ec2ff@interia.pl> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jan Wielkiewicz Cc: Guix-devel --00000000000041f5a405968d1c1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Jan Wielkiewicz ezt =C3=ADrta (id=C5= =91pont: 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/libcrypto.= so > (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/libssl.so;= /gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.1c/lib/libcrypto.so > -- Found PCRE: > /gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43/lib/libpcre.so > -- > PCRE_LIBRARIES=3D'/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43/l= ib/libpcre.so' > -- > PCRE_INCLUDE_DIRS=3D'/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.4= 3/include' > -- Found PCRE2: > /gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.33/lib/libpcre2-8.so > -- > PCRE2_LIBRARIES=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.3= 3/lib/libpcre2-8.so' > -- > PCRE2_INCLUDE_DIRS=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-1= 0.33/include' > -- > PCRE2_LIBRARIES=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.3= 3/lib/libpcre2-8.so' > -- > PCRE2_INCLUDE_DIRS=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-1= 0.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: https://github.com/Stiffstream/restinio/blob/master/dev/CMakeLists.txt > > -- Found ZLIB: > /gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11/lib/libz.so (foun= d > version "1.2.11") > -- > ZLIB_LIBRARIES=3D'/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11= /lib/libz.so' > -- > ZLIB_INCLUDE_DIRS=3D'/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2= .11/include' > -- Looking for pthread.h > -- Looking for pthread.h - found > -- Performing Test CMAKE_HAVE_LIBC_PTHREAD > -- 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-0.6.0.1.drv-0/source/build/CMakeFiles/CMakeOutp= ut.log". > See also > "/tmp/guix-build-restinio-0.6.0.1.drv-0/source/build/CMakeFiles/CMakeErro= r.log". > command "cmake" "../dev" "-DCMAKE_BUILD_TYPE=3DRelWithDebInfo" > "-DCMAKE_INSTALL_PREFIX=3D/gnu/store/1xjcw3icsrmrzjikbqslr11ihrsz22nj-res= tinio-0.6.0.1" > "-DCMAKE_INSTALL_LIBDIR=3Dlib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=3DTRU= E" > "-DCMAKE_INSTALL_RPATH=3D/gnu/store/1xjcw3icsrmrzjikbqslr11ihrsz22nj-rest= inio-0.6.0.1/lib" > "-DCMAKE_VERBOSE_MAKEFILE=3DON" failed with status 1 > > > The package: > > (define-public restinio > (package > (name "restinio") > (version "0.6.0.1") > (source (origin > (method git-fetch) > (uri (git-reference > (url "https://github.com/Stiffstream/restinio.git") > This does not seem the upstream repo. Could you change it to the upstream one? (Albeit, it seems to be an official mirror.) (https://bitbucket.org/sobjectizerteam/restinio/src/default/) Or if there is a tarball available for the needed version, that would be even better ( https://bitbucket.org/sobjectizerteam/restinio/downloads/), but I don't know if these archives are stable. (commit (string-append "v." version)))) > (file-name (git-file-name name version)) > (sha256 > (base32 > "1c25kpx652nng8m1sqf5an2c3c4g3k6zj85mkkaxzk88iwfzq1s8")))= ) > (build-system cmake-build-system) > (inputs > `(("zlib", zlib) > ("openssl", openssl) > ("boost", boost) > ("asio", asio) > ("pcre", pcre) > ("pcre2", pcre2))) > (propagated-inputs > `()) > (native-inputs > `()) > (arguments > `(#:configure-flags '() > #:phases > (modify-phases %standard-phases > (add-after 'unpack 'change-directory > (lambda _ > (chdir "dev") > #t))))) > (home-page "https://stiffstream.com/en/products/restinio.html") > (synopsis "C++14 library that gives you an embedded HTTP/Websocket > server") > (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, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21 --00000000000041f5a405968d1c1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Jan Wielkiewicz <tona_kosmicznego_smiecia@i= nteria.pl> ezt =C3=ADrta (id=C5=91pont: 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):
=C2=A0 add_subdirectory given source "fmt" which is not an existi= ng directory.


This is most probably because fmt is m= issing from inputs.


-- Found OpenSSL: /gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.1= c/lib/libcrypto.so (found version "1.1.1c")=C2=A0
OpenSSL include dir: /gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.= 1.1c/include
OpenSSL libraries: /gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.= 1c/lib/libssl.so;/gnu/store/k2m4q2av9hw73hw2jx6qrxqdyh855398-openssl-1.1.1c= /lib/libcrypto.so
-- Found PCRE: /gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8.43/lib/li= bpcre.so=C2=A0
-- PCRE_LIBRARIES=3D'/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcre-8= .43/lib/libpcre.so'
-- PCRE_INCLUDE_DIRS=3D'/gnu/store/5j6w0x3aq0i5r9565w92lrh016vlmv2d-pcr= e-8.43/include'
-- Found PCRE2: /gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2-10.33/lib= /libpcre2-8.so=C2=A0
-- PCRE2_LIBRARIES=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2= -10.33/lib/libpcre2-8.so'
-- PCRE2_INCLUDE_DIRS=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pc= re2-10.33/include'
-- PCRE2_LIBRARIES=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pcre2= -10.33/lib/libpcre2-8.so'
-- PCRE2_INCLUDE_DIRS=3D'/gnu/store/4jmnzz60hrm7k1lmn4565sh7xh447q1z-pc= re2-10.33/include'
CMake Error at CMakeLists.txt:124 (add_subdirectory):
=C2=A0 add_subdirectory given source "so_5" which is not an exist= ing directory.

This is because SObjectizer is missing from inputs.
You can get further info about this in the cmake file: htt= ps://github.com/Stiffstream/restinio/blob/master/dev/CMakeLists.txt

-- Found ZLIB: /gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1.2.11/lib/= libz.so (found version "1.2.11")
-- ZLIB_LIBRARIES=3D'/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zlib-1= .2.11/lib/libz.so'
-- ZLIB_INCLUDE_DIRS=3D'/gnu/store/qx7p7hiq90mi7r78hcr9cyskccy2j4bg-zli= b-1.2.11/include'
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE=C2=A0
-- Configuring incomplete, errors occurred!
See also "/tmp/guix-build-restinio-0.6.0.1.drv-0/source/build/CMakeFil= es/CMakeOutput.log".
See also "/tmp/guix-build-restinio-0.6.0.1.drv-0/source/build/CMakeFil= es/CMakeError.log".
command "cmake" "../dev" "-DCMAKE_BUILD_TYPE=3DRel= WithDebInfo" "-DCMAKE_INSTALL_PREFIX=3D/gnu/store/1xjcw3icsrmrzji= kbqslr11ihrsz22nj-restinio-0.6.0.1" "-DCMAKE_INSTALL_LIBDIR=3Dlib= " "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=3DTRUE" "-DCMAKE= _INSTALL_RPATH=3D/gnu/store/1xjcw3icsrmrzjikbqslr11ihrsz22nj-restinio-0.6.0= .1/lib" "-DCMAKE_VERBOSE_MAKEFILE=3DON" failed with status 1=


The package:

(define-public restinio
=C2=A0 (package
=C2=A0 =C2=A0 (name "restinio")
=C2=A0 =C2=A0 (version "0.6.0.1")
=C2=A0 =C2=A0 (source (origin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (method git-fetch)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (uri (git-reference
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (url = "https://github.com/Stiffstream/restinio.git&quo= t;)

This does not seem the upstream rep= o. Could you change it to the upstream one? (Albeit, it seems to be an offi= cial mirror.)
Or if there is a tarball available for the needed ver= sion, that would be even better (
https://bitbucket.org/sobjectizerteam/=
restinio/downloads/), but I don't know if these archives are stable=
.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (comm= it (string-append "v." version))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (file-name (git-file-name = name version))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (sha256
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(base32
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "1c25kpx652nng= 8m1sqf5an2c3c4g3k6zj85mkkaxzk88iwfzq1s8"))))
=C2=A0 =C2=A0 (build-system cmake-build-system)
=C2=A0 =C2=A0 (inputs
=C2=A0 =C2=A0 =C2=A0`(("zlib", zlib)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("openssl", openssl)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("boost", boost)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("asio", asio)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("pcre", pcre)
=C2=A0 =C2=A0 =C2=A0 =C2=A0("pcre2", pcre2)))
=C2=A0 =C2=A0 (propagated-inputs
=C2=A0 =C2=A0 =C2=A0`())
=C2=A0 =C2=A0 (native-inputs
=C2=A0 =C2=A0 =C2=A0`())
=C2=A0 =C2=A0 (arguments
=C2=A0 =C2=A0 =C2=A0`(#:configure-flags '()
=C2=A0 =C2=A0 =C2=A0 =C2=A0#:phases
=C2=A0 =C2=A0 =C2=A0 =C2=A0(modify-phases %standard-phases
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (add-after 'unpack 'change-directory
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(lambda _
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(chdir "dev")=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#t)))))
=C2=A0 =C2=A0 (home-page "https://stiffstream.= com/en/products/restinio.html")
=C2=A0 =C2=A0 (synopsis "C++14 library that gives you an embedded HTTP= /Websocket
server")
=C2=A0 =C2=A0 (description "RESTinio is a header-only C++14 library th= at gives
you an embedded
HTTP/Websocket server. It is based on standalone version of ASIO
and targeted primarily for asynchronous processing of HTTP-requests.")=
=C2=A0 =C2=A0 (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,
g_b= or
--
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:C= F63:0B21
--00000000000041f5a405968d1c1b--