From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#28138: bug build python-pygit2 on guix 0.13 Date: Fri, 18 Aug 2017 21:43:53 +0200 Message-ID: <87ziawy83q.fsf@fastmail.com> References: <447268654.49439.1503066364939.JavaMail.zimbra@ensea.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dinCb-0001u7-OK for bug-guix@gnu.org; Fri, 18 Aug 2017 15:45:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dinCY-0002dg-IT for bug-guix@gnu.org; Fri, 18 Aug 2017 15:45:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35942) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dinCY-0002dV-2a for bug-guix@gnu.org; Fri, 18 Aug 2017 15:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dinCX-0004Eu-Pw for bug-guix@gnu.org; Fri, 18 Aug 2017 15:45:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <447268654.49439.1503066364939.JavaMail.zimbra@ensea.fr> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Adrien Marin , 28138@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Adrien Marin writes: > Hi,=20 > > yesterday ,I updated guix and try to install my package's new version and= the install fail because of pygit2 error.=20 > > I've found a bug with the package python-pygit2 when I tried to build it:= =20 > > " #error You need a compatible libgit2 version (v0.25.x)"=20 > > so I change in the definition of python-pygit2, in propagated input :=20 > > ("libgit2" ,libgit2) ---> ("libgit2-0.25.1" ,libgit2-0.25.1)=20 > > and add the definition of libgit2-0.25.1 in my own package=20 > > > > after that, i get another issue during the build of python-pygit2, during= the check phase :=20 > >>ERROR: test_describe_pattern (test.test_describe.DescribeTest) >>---------------------------------------------------------------------- >>Traceback (most recent call last): >> File "/tmp/guix-build-python-pygit2-0.25.0.drv-0/pygit2-0.25.0/test/tes= t_describe.py", line 70, in test_describe_pattern >> self.assertEqual('public/tag2-2-g2be5719', self.repo.describe(pattern= =3D'public/*')) >> File "/tmp/guix-build-python-pygit2-0.25.0.drv-0/pygit2-0.25.0/pygit2/r= epository.py", line 728, in describe >> check_error(err) >> File "/tmp/guix-build-python-pygit2-0.25.0.drv-0/pygit2-0.25.0/pygit2/e= rrors.py", line 64, in check_error >> raise GitError(message) >>_pygit2.GitError: Cannot describe - No reference found, cannot describe a= nything. >> >>---------------------------------------------------------------------- >>Ran 266 tests in 11.741s >> >>FAILED (errors=3D1) >>phase `check' failed after 18.0 seconds >>builder for `/gnu/store/1f3nya5lmmwxyhvc6yalzyn2irwrpkk9-python-pygit2-0.= 25.0.drv' failed with exit code 1 >>@ build-failed /gnu/store/1f3nya5lmmwxyhvc6yalzyn2irwrpkk9-python-pygit2-= 0.25.0.drv - 1 builder for `/gnu/store/1f3nya5lmmwxyhvc6yalzyn2irwrpkk9-pyt= hon-pygit2-0.25.0.drv' failed with exit code 1 >>guix build: error: build failed: build of `/gnu/store/1f3nya5lmmwxyhvc6ya= lzyn2irwrpkk9-python-pygit2-0.25.0.drv' failed=20 > > so I looked the dependencies of python-pygit2 and saw that python-cffi ch= anged version in guix 0.13 than my old version=20 > > so I force the 1.4.2 version of python-cffi in the definition of pygit2 A= ND IT'S WORKING!!=20 Hi Adrien, Sorry you had to go through this trouble! But your workaround is pretty impressive :-) It's the way to go if you want to use the existing Guix package definition with custom versions. Note that you can inherit package definitions so that you (typically) only have to override the source, instead of copying the whole thing. Anyway, I went ahead and updated pygit2 to 0.26, which matches the current libgit2 version and also is compatible with python-cffi-1.10. Can you try to pull 'master' and see if it works for you? Thanks for the report! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlmXQ3kACgkQoqBt8qM6 VPoExwgA0vWd84v0ja715C1HAbCh0sq0CraO+avR/uJxDtZ4pUTf67m7y0cgloNR Xeq+OjbXBv/fWMJCMISXRRV4az2xggk0z5+0eJe22xM+L3NjeTLMIvki1HcXZ5iM 70LG/TGFa59qZ12J1SZ5jvE+GjBLEOmy/UZbfPa/GBdHSASYaQzVxSpqZN9vYMs+ mRVs9Em8jeLN/QJeLOcOvr/Gufnkqj3wGDX8qXd/Wm2T5PDOnGPL+6tE7JwvPKhG 98bFNRdcOebjDPWkjnlRzs0TeZLrBn8FfRyFJsmDviNN5QeWyOXyBRV7lXd5nsnU LjWRSYi0sUn/Q2CWGLsujf0z1nFEig== =HGgX -----END PGP SIGNATURE----- --=-=-=--