Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260098 - kde-base/knetworkconf-4.2.0 backends scripts not updated with correct path
Summary: kde-base/knetworkconf-4.2.0 backends scripts not updated with correct path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: InOverlay, InVCS
Depends on:
Blocks:
 
Reported: 2009-02-24 08:11 UTC by Rajish
Modified: 2009-02-28 05:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
set SCRIPTSDIR in CMakeLists.txt (backends-scriptsdir.patch,291 bytes, patch)
2009-02-27 17:31 UTC, Marc Rodarte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rajish 2009-02-24 08:11:31 UTC
KDE emerged with kdeprefix flag.
Every script in /usr/kde/4.2/share/apps/knetworkconf/backends has local variable $SCRIPTSDIR initialized with empty string causing error in KDE network configuration window ("Could not parse the XML file."). The command below cures the problem:

find /usr/kde/4.2/share/apps/knetworkconf/backends -name \*.pl | xargs perl -i.bak -ne 's!^\$SCRIPTSDIR = \"\"!\$SCRIPTSDIR = \"/usr/kde/4.2/share/apps/knetworkconf/backends\"!; print'
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-27 12:28:24 UTC
hi,
if you rewrite it in bash we can add it to the ebuild ;]
I am actualy too lazy to decript that ;]
Comment 2 Rajish 2009-02-27 12:43:27 UTC
The script should have something like:
-----
for file in <path_to_backends>/*

replace the line 

$SCRIPTSDIR = ""

with 

$SCRIPTSDIR = "<path_to_backends>"
-----
I'm to lazy to write it properly in bash ;]
Comment 3 Marc Rodarte 2009-02-27 17:31:55 UTC
Created attachment 183390 [details, diff]
set SCRIPTSDIR in CMakeLists.txt
Comment 4 Alexey Shvetsov archtester gentoo-dev 2009-02-27 19:04:52 UTC
Patch added to kde-testing overlay
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-28 05:28:41 UTC
Sweet,
thanks for patchie.
Applied in kde-testing and in the tree :]