Bug 5066 - Live upgrade from Mga1 to Cauldron fails on gurpmi restart
Summary: Live upgrade from Mga1 to Cauldron fails on gurpmi restart
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks: 3342
  Show dependency treegraph
 
Reported: 2012-03-23 04:42 CET by Dave Hodgins
Modified: 2012-03-26 00:18 CEST (History)
0 users

See Also:
Source RPM: urpmi-6.46-1.mga2.src.rpm
CVE:
Status comment:


Attachments
log file from upgrade attempt (32.10 KB, text/plain)
2012-03-23 04:43 CET, Dave Hodgins
Details
Log file with modified Glib.pm (34.37 KB, text/plain)
2012-03-25 01:13 CET, Dave Hodgins
Details
Can you try again with that patch? (487 bytes, patch)
2012-03-25 13:10 CEST, Thierry Vignaud
Details | Diff
Patch for gurpmi.pm (567 bytes, patch)
2012-03-25 21:17 CEST, Dave Hodgins
Details | Diff

Description Dave Hodgins 2012-03-23 04:42:18 CET
In my first test of trying to upgrade from Mageia 1 to
cauldron, using a qa only version of mgaapplet from
bug 5065, after urpmi was installed, the restart failed.
Comment 1 Dave Hodgins 2012-03-23 04:43:17 CET
Created attachment 1828 [details]
log file from upgrade attempt
Manuel Hiebel 2012-03-23 17:25:27 CET

Blocks: (none) => 3342
Assignee: bugsquad => thierry.vignaud

Comment 2 Thierry Vignaud 2012-03-23 19:48:15 CET
uh?
Did you have a DVD media set up for urpmi?
I failed to see how it's possible urpmi tried to load Glib.

Can you add the two following lines after "package Glib" in /usr/lib/perl5/vendor_perl/5.14.2/x86_64-linux-thread-multi/Glib.pm, then retry and attach the printed trace here?

use MDK::Common;
warn "\n\n" . backtrace() ."\n\n";

Keywords: (none) => NEEDINFO

Comment 3 Dave Hodgins 2012-03-25 01:13:23 CET
Created attachment 1836 [details]
Log file with modified Glib.pm

No dvd.  This is using a modified copy of the Megeia 1 mgaapplet to
test upgrading to cauldron.  It correctly deletes all repositories,
then adds the Cauldron repositories, and starts the upgrade process.

I've also compared the rpms used by urpmi --auto-select to the ones installed
by the distro upgrade attempt, before restarting urpmi.  The following
have not yet been installed/upgraded ...

 cmake fdupes jpackage-utils kde4-macros libbzip2_1 libcap2 libdb4.8
 libelfutils1 liblua5.1 liblzma5 libmagic1  libncursesw5 libnspr4
 libnss3 libpopt0 libreadline6 libsqlite3_0 libzlib1 mageia-release-common
 mageia-release-Default multiarch-utils perl-Config-IniFiles
 perl-MDV-Distribconf perl-MDV-Distribconf rpm-helper rpm-mageia-setup
 rpm-mageia-setup-build setup spec-helper
Comment 4 Thierry Vignaud 2012-03-25 13:01:06 CEST
So you did not use urpmi but gurpmi....
I'll have to alter gurpmi so that it push perl-Glib & perl-Gtk2 as priority packages too

Summary: Upgrade from Mageia 1 to Cauldron fails on urpmi restart => Live upgrade from Mga1 to Cauldron fails on gurpmi restart

Comment 5 Thierry Vignaud 2012-03-25 13:10:38 CEST
Created attachment 1840 [details]
Can you try again with that patch?

Just alter gurpm.pm file from gurpmi. Path will be different on mga1 of course (perl-5.12 instead of 5.14)

With that, gurpmi should upgrade perl-Glib & perl-Gtk2 prior to restart
Comment 6 Dave Hodgins 2012-03-25 21:17:24 CEST
Created attachment 1846 [details]
Patch for gurpmi.pm

As per the attached patch, I also had to add libglib2.0_0.
After that, the restart works.
Comment 7 Thierry Vignaud 2012-03-25 21:51:00 CEST
This won't work on 64bit and anyway the proper fix would be to bump the required glib version in perl-Glib
What was the error?
Thierry Vignaud 2012-03-25 21:51:19 CEST

Attachment 1846 is obsolete: 0 => 1

Comment 8 Dave Hodgins 2012-03-25 22:54:16 CEST
I'd have to redo the test with the old patch to confirm, but IIRC it was

undefined symbol mutex_lock in
/usr/lib/perl5/vendor_perl/5.14.2/i386-linux-thread-multi/auto/Glib/Glib.so

I used the output ldd on that module in a working cauldron install to
figure out which other package was needed.
Comment 9 Thierry Vignaud 2012-03-25 23:00:51 CEST
This has been fixed in perl-Glib-1.251.0-2.mga2

Once urpmi-6.40.3-1.mga1 lands on your mirror, you should try again just with enabling the core/updates_testing medium and it should just work
Comment 10 Dave Hodgins 2012-03-26 00:18:13 CEST
Closing as fixed.  Thanks for the quick response.

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


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