Bug 24721 - Many bzr commands fail due to a change in python2
Summary: Many bzr commands fail due to a change in python2
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal major
Target Milestone: Mageia 6
Assignee: QA Team
QA Contact:
URL: https://bugs.launchpad.net/bzr/+bug/1...
Whiteboard: MGA6-64-OK
Keywords: PATCH, advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-04-26 11:07 CEST by Frédéric "LpSolit" Buclin
Modified: 2019-05-12 11:36 CEST (History)
5 users (show)

See Also:
Source RPM: bzr-2.7.0-1.2.mga6.src.rpm
CVE:
Status comment:


Attachments
patch for bzrlib/lazy_regex.py (690 bytes, patch)
2019-04-26 11:07 CEST, Frédéric "LpSolit" Buclin
Details | Diff

Description Frédéric "LpSolit" Buclin 2019-04-26 11:07:11 CEST
Created attachment 10971 [details]
patch for bzrlib/lazy_regex.py

Per this upstream bug report https://bugs.launchpad.net/bzr/+bug/1644003, a change in python2 makes bzr 2.7.0 fail with commands such as 'bzr commit'. This happened to me this morning, probably because python2 RPMs have been updated in Mageia 6 recently:

Source RPM  : python-2.7.15-1.3.mga6.src.rpm
Build Date  : mar 09 avr 2019 07:57:08 CEST

bzr was working fine before.


The patch proposed in the upstream bug fixes the problem on Mageia 6:

https://bazaar.launchpad.net/~bzr-pqm/bzr/2.7/revision/6621
https://bazaar.launchpad.net/~bzr-pqm/bzr/2.7/revision/6622

I merged the relevant changes in bzrlib/lazy_regex.py in a single patch attached to this bug report. Could you please apply this patch to Mageia 6? I guess Mageia 7 is affected too.
Comment 1 David GEIGER 2019-04-26 13:06:02 CEST
Done for mga6 and Cauldron too! Thanks Frédéric!

CC: (none) => geiger.david68210

Comment 2 Frédéric "LpSolit" Buclin 2019-04-26 15:41:17 CEST
Works fine (tested on Mageia 6). Thanks! :)
Comment 3 David GEIGER 2019-04-26 15:54:53 CEST
Assigning to QA,

Advisory:
========================

Since some change in python 2.7.13 and later bzr doesn't work properly anymore.
e.g: it fails with commands such as 'bzr commit'
So this update fixes this issue.

========================

Packages in 6/core/updates_testing:
========================
bzr-2.7.0-1.3.mga6.i586.rpm
bzr-2.7.0-1.3.mga6.x86_64.rpm

Source RPM: 
========================
bzr-2.7.0-1.3.mga6.src.rpm

Assignee: bugsquad => qa-bugs

Comment 4 PC LX 2019-04-28 11:19:36 CEST
Installed and tested without issues.

System: Mageia 6, x86_64, Intel CPU.

Tested commands: init, whoami, commit, status, add, mv, diff, check, log.

$ uname -a
Linux marte 4.14.106-desktop-1.mga6 #1 SMP Thu Mar 14 18:01:29 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -q bzr
bzr-2.7.0-1.3.mga6
$ bzr init test
Criou um standalone tree (formato: 2a)                                                                                                                                                                           
$ cd test/
$ bzr whoami "test <test@example.com>"
$ echo "test 1 2 3\n" >> test.txt
$ bzr status
unknown:
  test.txt
$ bzr add
adding test.txt
$ bzr commit -m "test"
Submetendo  to: /tmp/test/                                                                                                                                                                                       
adicionado test.txt
Revisão submetida 1.
$ bzr log
------------------------------------------------------------
revno: 1
committer: test <test@example.com>
branch nick: test
timestamp: Sun 2019-04-28 10:13:52 +0100
message:
  test
$ bzr check
Verificando árvore de trabalho em '/tmp/test'.
Verificando ramo em 'file:///tmp/test/'.
Verificando repositório em 'file:///tmp/test/'.
verificando repositório file:///tmp/test/ formato RepositoryFormat2a()                                                                                                                                           
     1 versões
     2 ids dos arquivos
verificado o ramo file:///tmp/test/ formato Branch format 7
$ bzr status
$ echo "test 1 2 3\n" >> test.txt
$ bzr status
modified:
  test.txt
$ bzr diff
=== modified file 'test.txt'
--- test.txt    2019-04-28 09:13:52 +0000
+++ test.txt    2019-04-28 09:14:51 +0000
@@ -1,1 +1,2 @@
 test 1 2 3\n
+test 1 2 3\n

$ bzr commit -m "test 2"
Submetendo  to: /tmp/test/                                                                                                                                                                                       
modificado test.txt
Revisão submetida 2.
$ bzr log
------------------------------------------------------------
revno: 2
committer: test <test@example.com>
branch nick: test
timestamp: Sun 2019-04-28 10:15:08 +0100
message:
  test 2
------------------------------------------------------------
revno: 1
committer: test <test@example.com>
branch nick: test
timestamp: Sun 2019-04-28 10:13:52 +0100
message:
  test
$ bzr mv test.txt 
.bzr/     test.txt  
$ bzr mv test.txt test2.txt
test.txt => test2.txt
$ bzr commit -m "test 3"
Submetendo  to: /tmp/test/                                                                                                                                                                                       
renomeado test.txt => test2.txt
Revisão submetida 3.
$ bzr log
------------------------------------------------------------
revno: 3
committer: test <test@example.com>
branch nick: test
timestamp: Sun 2019-04-28 10:18:16 +0100
message:
  test 3
------------------------------------------------------------
revno: 2
committer: test <test@example.com>
branch nick: test
timestamp: Sun 2019-04-28 10:15:08 +0100
message:
  test 2
------------------------------------------------------------
revno: 1
committer: test <test@example.com>
branch nick: test
timestamp: Sun 2019-04-28 10:13:52 +0100
message:
  test

CC: (none) => mageia
Whiteboard: (none) => MGA6-64-OK

Comment 5 Thomas Andrews 2019-05-02 16:40:21 CEST
Validating. Advisory in Comment 3.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Thomas Backlund 2019-05-12 10:40:04 CEST

Keywords: (none) => advisory
CC: (none) => tmb

Comment 6 Mageia Robot 2019-05-12 11:36:53 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0033.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.