Bug 11268

Summary: drakconf (kde) launcher created in mga3 fails in mga4
Product: Mageia Reporter: Barry Jackson <zen25000>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, mageia
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: drakconf-12.42-1.mga4 CVE:
Status comment:
Attachments: patch to add symlink

Description Barry Jackson 2013-09-22 17:16:57 CEST
Description of problem:
When running both Mga3 and Mga4 with a common home folder all launcher icons work correctly except drakconf.
My workaround for this is:
ln -s /usr/bin/drakconf /usr/sbin/drakconf
in Mga4, so the Mga3 launcher finds drakconf.
Patch for drakconf.spec attached.
 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Barry Jackson 2013-09-22 17:18:01 CEST
Created attachment 4370 [details]
patch to add symlink
Comment 2 Manuel Hiebel 2013-09-27 21:19:09 CEST
isn't this something like this bug https://bugs.mageia.org/show_bug.cgi?id=11304 ?

Keywords: (none) => NEEDINFO

Comment 3 Barry Jackson 2013-09-27 22:07:29 CEST
(In reply to Manuel Hiebel from comment #2)
> isn't this something like this bug
> https://bugs.mageia.org/show_bug.cgi?id=11304 ?

I really don't understand that bug after reading 3 times :\
Comment 4 Manuel Hiebel 2013-09-27 22:32:34 CEST
(yes it's hard to read franglish)

have you a message if you run drakconf from the terminal ?
Comment 5 Barry Jackson 2013-09-27 23:00:03 CEST
(In reply to Manuel Hiebel from comment #4)
> (yes it's hard to read franglish)
> 
> have you a message if you run drakconf from the terminal ?

No it's fine.

In mga4:
which drakconf
/usr/bin/drakconf

In mga3:
which drakconf
/sbin/drakconf

A KDE launcher created in Mga3 does not know about this, but creating a symlink during drakconf package installation in mga4 is a workaround which is much better than a broken icon on the panel.
Comment 6 Dave Hodgins 2013-09-27 23:35:14 CEST
On my Mageia 3 x86_64 system

$ which drakconf
/usr/bin/drakconf

So the question is what happened to /usr/bin/drakconf on that system?

CC: (none) => davidwhodgins

Comment 7 Barry Jackson 2013-09-28 01:22:47 CEST
(In reply to Dave Hodgins from comment #6)
> On my Mageia 3 x86_64 system
> 
> $ which drakconf
> /usr/bin/drakconf
> 
> So the question is what happened to /usr/bin/drakconf on that system?

Nothing - it is there, but the Mga3 version of drakconf has this in the spec which is missing in Mga4:

ln -sf %_bindir/drakconf %buildroot/%_sbindir/drakconf

For some reason when KDE creates a launcher in Mga3 it uses the symlink rather than the real path, so when that launcher is used in Mga4 it fails.

I now realize that my workaround is almost identical to replacing the missing line back in the spec.

Ah...
Author: 	colin
Date: 	Sun Sep 1 15:12:46 2013 UTC (3 weeks, 5 days ago)
Changed paths: 	1
Log Message: 	

Do not include unneeded symlink in /usr/sbin/

CC: (none) => mageia

Comment 8 Dave Hodgins 2013-09-28 03:50:49 CEST
On my Mageia 4 x86-64 system, installed from the pre-release alpha3 kde live dvd
iso,
$ which drakconf
/usr/bin/drakconf

And mcc starts ok from clicking on the icon in the kde panel.

In comment 5, it indicates it's Mageia 3 where the problem exists.

I'm not able to recreate the problem either in Mageia 3 or 4 kde.
Comment 9 Barry Jackson 2013-09-28 11:27:06 CEST
(In reply to Dave Hodgins from comment #8)
> On my Mageia 4 x86-64 system, installed from the pre-release alpha3 kde live
> dvd
> iso,
> $ which drakconf
> /usr/bin/drakconf
> 
> And mcc starts ok from clicking on the icon in the kde panel.
> 
> In comment 5, it indicates it's Mageia 3 where the problem exists.
> 
> I'm not able to recreate the problem either in Mageia 3 or 4 kde.

Are you using the same home for both mga3 and mga4 after creating the panel icon for drakconf in mga3?

I have re-checked by removing any drakconf icons and symlinks in both installs, re-installed (--replacepkgs --replacefiles) drakconf in both systems and then added the panel icon in mga3 only.
When running mga4 the launcher fails "KDEInit could not launch '/usr/sbin/drakconf' which is reasonable since the symlink is not there.

I agree that this may be an issue with the icon creation in mga3.
Comment 10 Colin Guthrie 2013-09-28 12:45:22 CEST
Yeah, for upgrades I'll make a note of keeping compatibility symlinks.
Comment 11 Barry Jackson 2013-10-16 15:30:27 CEST
Fixed in drakconf-12.43.2

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