Bug 7362 - perl-URPM: update candidate: prepare mga3 upgrade
Summary: perl-URPM: update candidate: prepare mga3 upgrade
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure mga1-64-OK mga1-32-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-09-05 19:38 CEST by Thierry Vignaud
Modified: 2012-09-13 20:19 CEST (History)
4 users (show)

See Also:
Source RPM: perl-URPM-3.38.1.2
CVE:
Status comment:


Attachments

Description Thierry Vignaud 2012-09-05 19:38:45 CEST
This update adds support for repository metadata compressed with XZ,
thus enabling direct update from mga1 to mga3.

perl-URPM & urpmi testsuites pass with the same success rate as before.


Suggested advisory:
===================
This update adds support for repository metadata compressed with XZ,
thus enabling direct update from mga1 to mga3.

Steps to Reproduce:
If you really want to check, you can:
0) mirror some medium locally (eg: a small one like Non-Free/Updates
or Tainted/Updates
1) cd /where/it/was/mirrored/<medium_name>/media_info
2) mv  synthesis.hdlist.cz{,.gz}
3) zcat  synthesis.hdlist.cz.gz | xz > synthesis.hdlist.cz
4) urpmi.addmedia XZmedium /where/it/was/mirrored/<medium_name>
5) urpmi <some_package>
    where "<some_package>" only exist in that medium
    urpmi should display it will install it from "XZmedium"

it should fail with current perl-URPM then succeeds with new perl-URPM
Comment 1 Sander Lepik 2012-09-05 19:52:28 CEST
A bit OT but i don't see how we can upgrade from mga1 to mga3. mga3 = usrmove + systemd when mga1 is mostly running on sysvinit.

CC: (none) => sander.lepik

Comment 2 Thierry Vignaud 2012-09-05 20:16:34 CEST
One problem at a time.
usrmove upgrade has to be fixed for mga2>3 path too...
Comment 3 Thierry Vignaud 2012-09-05 20:41:47 CEST
Also, like in bug #6621, it should fix a Mandriva -> Mageia live upgrade faillure where urpmi fails on restart after upgrading itself due to still
having old mdv zlib at this stage:
/usr/bin/perl: symbol lookup error:
/usr/lib/perl5/vendor_perl/5.14.2/i386-linux-thread-multi/auto/URPM/URPM.so:
undefined symbol: gzopen64

I've fixed this by making URPM not relying on zlib in order to
decompress synthesis files.
It now relies on rpmlib that already had everything needed.
As a cherry on the cake, we gain support for synthesis compressed with
xz or bzip2.
Samuel Verschelde 2012-09-06 08:03:18 CEST

Whiteboard: (none) => has_procedure

Comment 4 Manuel Hiebel 2012-09-11 22:50:09 CEST
so with working on a duplicate from my local mirror (cp -al pub pub2)

cd 1/x86_64/media/core/updates_testing/
ls | grep null > null-5-4.4.mga1.x86_64.rpm
rpm -qa | grep null > nothing

sudo urpmi.addmedia testperlupdate /mnt/data/var/pub2/1/x86_64/media/core/updates_testing --no-md5sum

LC_ALL=C urpmi null
invalid line <�7zXZ>
problem reading synthesis file of medium "testperlupdate"
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  tcsh                           6.17         2.mga1        x86_64  
(medium "Nonfree Release")
  null 

~~
after the update of perl-URPM:

LC_ALL=C urpmi null
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  tcsh                           6.17         2.mga1        x86_64  
(medium "testperlupdate")
  null      

update validate on x86_64, thanks for the procedure.

Whiteboard: has_procedure => has_procedure, mga1-64-OK,

Comment 5 Thierry Vignaud 2012-09-11 23:49:25 CEST
rpm -q rpm perl-URPM?
Comment 6 Dave Hodgins 2012-09-12 00:00:38 CEST
Does the updated perl-URPM package need the updates testing version
for rpm?  We don't have a bug report for the rpm package, so can't
validate it yet.

CC: (none) => davidwhodgins

Comment 7 Thierry Vignaud 2012-09-12 09:55:50 CEST
It depends on rpm-4.8.1-10.4.mga1.x86_64.rpm which is updates.
Comment 8 Manuel Hiebel 2012-09-12 10:42:33 CEST
(In reply to comment #5)
> rpm -q rpm perl-URPM?

[manu@vosdook ~]$ rpm -q rpm perl-URPM
rpm-4.8.1-10.5.mga1
perl-URPM-3.38.1.2-2.mga1

so indeed both from testing sorry :s
it's ok or should I try only with the perl-urpm from testing ?
Comment 9 Thierry Vignaud 2012-09-12 10:52:41 CEST
I think it should have worked but I tested with rpm-4.8.1-10.4.mga1
Comment 10 Samuel Verschelde 2012-09-12 10:55:13 CEST
(In reply to comment #8)
> (In reply to comment #5)
> > rpm -q rpm perl-URPM?
> 
> [manu@vosdook ~]$ rpm -q rpm perl-URPM
> rpm-4.8.1-10.5.mga1
> perl-URPM-3.38.1.2-2.mga1
> 
> so indeed both from testing sorry :s
> it's ok or should I try only with the perl-urpm from testing ?

As far as QA procedure is concerned, you should test perl-urpm from testing + rpm from updates, otherwise we are not validating the update as it will be delivered to users.
Comment 11 Thierry Vignaud 2012-09-12 10:59:28 CEST
Strange I just tested with rpm-4.8.1-10.5.mga1 & perl-URPM-3.38.1.2-2.mga1 and it works fine for me.
Comment 12 Thierry Vignaud 2012-09-12 11:00:28 CEST
rpm -q lib64rpm1 ?
Comment 13 Samuel Verschelde 2012-09-12 11:01:24 CEST
Thierry, I think comment #4 meant that everything is OK. He checked that it
doesn't work without the update and works with it, isn't it?
Comment 14 Manuel Hiebel 2012-09-12 11:02:30 CEST
Thierry, read again, works fine too here :)
Samuel, ok will try with only perl-urpm from testing. (or somebody other can do it)
Manuel Hiebel 2012-09-12 11:03:03 CEST

Whiteboard: has_procedure, mga1-64-OK, => has_procedure,

Comment 15 Thierry Vignaud 2012-09-12 11:03:37 CEST
Yes indeed, I misread :-)
Sorry for the noise :-(
Comment 16 claire robinson 2012-09-12 14:55:43 CEST
Testing mga1 64 with rpm from updates.

# rpm -q rpm
rpm-4.8.1-10.4.mga1
Comment 17 claire robinson 2012-09-12 15:27:47 CEST
Mirrored tainted updates and converted the synthesis file

After update..

# urpmi xine-flac
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "XZmedium")
  lib64postproc51                0.6.6        0.1.mga1.tai> x86_64  
  lib64xine1                     1.1.19       5.mga1.taint> x86_64  
  xine-flac                      1.1.19       5.mga1.taint> x86_64  
  xine-plugins                   1.1.19       5.mga1.taint> x86_64  
(medium "Core Release")
  lib64iso9660_7                 0.82         3.mga1        x86_64  
  lib64mesaglu1                  7.10.2       4.mga1        x86_64  
  lib64theora0                   1.1.1        3.mga1        x86_64  
  lib64vcd0                      0.7.23       10.mga1       x86_64  
  lib64xcb-shape0                1.7          1.mga1        x86_64  
  lib64xcb-shm0                  1.7          1.mga1        x86_64  
  lib64xcb-xv0                   1.7          1.mga1        x86_64  
(medium "Core Updates")
  lib64modplug1                  0.8.8.3      1.mga1        x86_64

Seems fine. I have it on a VM with a snapshot so it can be rolled back if necessary.

Whiteboard: has_procedure, => has_procedure mga1-64-OK

Comment 18 Manuel Hiebel 2012-09-12 18:42:00 CEST
little off topic, will a netinstall still works with the new structure of the updates media ?
Comment 19 Thierry Vignaud 2012-09-12 18:47:42 CEST
What new media structure?
Comment 20 claire robinson 2012-09-13 17:38:14 CEST
Confirmed the fix in mga1 i586 in a new VM.

Validating

Suggested advisory:
===================
This update adds support for repository metadata compressed with XZ,
thus enabling direct update from Mageia 1 to Mageia 3.



perl-URPM-3.38.1.2-2.mga1


Could sysadmin please push from core/updates_testing to core/updates

Thanks!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: has_procedure mga1-64-OK => has_procedure mga1-64-OK mga1-32-OK

Comment 21 Thomas Backlund 2012-09-13 20:19:54 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0194


Note, as we dont have decided yet if we will support direct update from mga1 -> mga3 I changed the advisory to a more generic one:


This update adds support for repository metadata compressed with XZ,
thus enabling reading upcoming Mageia 3 repository metadata.

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


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