From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aPc8LLk9xl6icwAA0tVLHw (envelope-from ) for ; Thu, 21 May 2020 08:37:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eEb7J7k9xl5EKwAAbx9fmQ (envelope-from ) for ; Thu, 21 May 2020 08:37:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B48FF9401AD for ; Thu, 21 May 2020 08:37:12 +0000 (UTC) Received: from localhost ([::1]:36398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbghS-00010c-A1 for larch@yhetil.org; Thu, 21 May 2020 04:37:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbghK-0000yP-Vr for bug-guix@gnu.org; Thu, 21 May 2020 04:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbghK-0007Rt-N5 for bug-guix@gnu.org; Thu, 21 May 2020 04:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbghK-0007iu-LT for bug-guix@gnu.org; Thu, 21 May 2020 04:37:02 -0400 Subject: bug#41213: boost-for-mysql fails to build Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 21 May 2020 08:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 41213 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marius Bakke Mail-Followup-To: 41213@debbugs.gnu.org, efraim@flashner.co.il, jonathan.brielmaier@web.de Received: via spool by 41213-done@debbugs.gnu.org id=D41213.159005021529668 (code D ref 41213); Thu, 21 May 2020 08:37:02 +0000 Received: (at 41213-done) by debbugs.gnu.org; 21 May 2020 08:36:55 +0000 Received: from localhost ([127.0.0.1]:55301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbghC-0007iS-Jb for submit@debbugs.gnu.org; Thu, 21 May 2020 04:36:54 -0400 Received: from flashner.co.il ([178.62.234.194]:42046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbghB-0007iC-4d for 41213-done@debbugs.gnu.org; Thu, 21 May 2020 04:36:53 -0400 Received: from localhost (unknown [188.120.128.132]) by flashner.co.il (Postfix) with ESMTPSA id 00C734025B; Thu, 21 May 2020 08:36:46 +0000 (UTC) Date: Thu, 21 May 2020 11:36:14 +0300 From: Efraim Flashner Message-ID: <20200521083614.GA958@E5400> References: <87367ubb6j.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <87367ubb6j.fsf@devup.no> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jonathan Brielmaier , 41213-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.69 X-TUID: M70J7q6clFlu --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 20, 2020 at 10:31:32PM +0200, Marius Bakke wrote: > Jonathan Brielmaier writes: >=20 > > `tools/build/src/engine/execunix.cpp` was named > > `tools/build/src/engine/execunix.c` before. So the following patch > > allows to build boost@1.59 again. > > > > ``` > > diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm > > index 2f2ca289ab..d44b534939 100644 > > --- a/gnu/packages/boost.scm > > +++ b/gnu/packages/boost.scm > > @@ -120,10 +120,11 @@ > > (let ((icu (assoc-ref inputs "icu4c")) > > (python (assoc-ref inputs "python")) > > (out (assoc-ref outputs "out"))) > > - (substitute* '("libs/config/configure" > > - "libs/spirit/classic/phoenix/test/runtes= t.sh" > > - "tools/build/src/engine/execunix.cpp" > > - "tools/build/src/engine/Jambase") > > + (substitute* (append > > + (find-files "tools/build/src/engine/" > > "execunix\\.c.*") > > + '("libs/config/configure" > > + > > "libs/spirit/classic/phoenix/test/runtest.sh" > > + "tools/build/src/engine/Jambase")) > > (("/bin/sh") (which "sh"))) > > > > (setenv "SHELL" (which "sh")) > > ``` We can't straight-up patch boost because it has too many dependants, but I copied the configure phase to boost-for-mysql and applied the changes there. > > > > Although it fails with > > ``` > > libs/python/src/converter/builtin_converters.cpp: In function =E2=80=98= void* > > boost::python::converter::{anonymous}::convert_to_cstring(PyObject*)=E2= =80=99: > > libs/python/src/converter/builtin_converters.cpp:51:35: error: invalid > > conversion from =E2=80=98const void*=E2=80=99 to =E2=80=98void*=E2=80= =99 [-fpermissive] > > return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0; > > > > "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall > > -pthread -fPIC -m64 -DBOOST_ALL_NO_LIB=3D1 -DBOOST_PYTHON_SOURCE -DNDE= BUG > > -I"." > > -I"/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/include/pyt= hon3.8" > > -c -o > > "bin.v2/libs/python/build/gcc-7.5.0/release/threading-multi/converter/b= uiltin_converters.o" > > "libs/python/src/converter/builtin_converters.cpp" > > ``` >=20 > I think our efforts are better spent on updating the packages that use > this ancient Boost instead of hacking it to work with Python 3.8. >=20 > Though disabling Python support might work around the issue for now... >=20 > Do you use any packages that depend on this? It built with no problems with python2 instead of python3 but of course I'd rather not add more dependencies on python2. Luckily it will build without any python binaries so I've just gone ahead and removed python =66rom native-inputs. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7GPX4ACgkQQarn3Mo9 g1H0NQ//bJBhbY9+7Jj62DtlCA6hEnuzPfw2Zgfm2OvNqJoIW9DGb29PqKkAWpQM +7QapGKY3nZPzEX/x2qf3UId8wEGCZITSI2f5R705AkjRqaCEViBjaI4BLfv84sg rPamdZ+P3eWyeHKOwsllzzabj5uD8qSukY/ZcBrs0NK/w1kU+jXngNhMrbt9Bavd md9iCxn0oFdwWr5sLb/YxhX/kmiaqv5b26moz8PkFXsxyevzKFoTyWp2tpxVhPmK eKeUTxlq3ZG5jyGF9Rl5q5Vxk8QyOOInF5HVzOOnKzOQ4MncKs4ypTxr5YBEhSXP 7IQKkPk2S5HOz2Gp/ZroF6ePQdbMv9xlSp4aDccUkeEeGYw4HaqJjfelOXsk3xdD TA0wcfHdQhyg0/rX0qcFtEUA6yQUWtk6LS/A8K7new36iWUipdvsgUG7NdBVC46/ d1lr9v+9g3CJmM19YlKKKkMZpxnrZ3fKVD8f/ElDoSmbWEUTa3K7v78KL2c/XCaD HXqC6pgnvj46btmvfSw9jl0HY2b6T9gpwmF9oPCRm3mcRl+rJnZflpPQmNT9hWeR KX/RYb8vHmfijKk9Y0JRaH7OorrTj8TkI7AXCkumA3iq+2LxV96ilz0ZHhgkM9Ja lLFH4Vf4zsB/FHFbsrYloigd2tJ73tSY5u2ZGCG6zw8lFe44Ed4= =Rl7w -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--