Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

kdiff3 under kde4 for cfg-update [solved]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
petlab
Apprentice
Apprentice
User avatar
Posts: 290
Joined: Mon May 03, 2004 6:38 am
Location: Armpit, Oregon
Contact:
Contact petlab
Website

kdiff3 under kde4 for cfg-update [solved]

  • Quote

Post by petlab » Sat Apr 11, 2009 4:37 pm

I have kdiff3-0.9.95 installed, and it runs fine for users, but not for root. I use cfg-update, so I need to use it as root. I'm in X as my regular user, running cfg-update as root in a Konsole.

Code: Select all

# kdiff3 --version
Qt: 4.5.0
KDE: 4.2.1 (KDE 4.2.1)
kdiff3: 0.9.95
When I run it from konsole, nothing appears to happen. I tried using options, with no effect. Any ideas? TIA

Code: Select all

# kdiff3 --display :0.0
(still nothing)
Last edited by petlab on Wed May 06, 2009 9:01 pm, edited 1 time in total.
Get Serious - Get JAWA CZ
Top
stan666
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Mon Jun 25, 2007 6:20 pm
Location: Germany
Contact:
Contact stan666
Website

  • Quote

Post by stan666 » Fri May 01, 2009 7:37 pm

have you tried to run it via kdesu?

Code: Select all

kdesu cfg-update
BOFH Excuse #450:
Terrorists crashed an airplane into the server room, have to remove /bin/laden. (rm -rf /bin/laden)
Top
petlab
Apprentice
Apprentice
User avatar
Posts: 290
Joined: Mon May 03, 2004 6:38 am
Location: Armpit, Oregon
Contact:
Contact petlab
Website

  • Quote

Post by petlab » Sat May 02, 2009 3:12 pm

Yes, I did that from a konsole. No effect. The thing is, it used to work fine in 3.5.10. I simply used

Code: Select all

# cfg-update -u
from a konsole and it worked. I think I'll investigate the 3v5 / 4v2 issue some more.
Get Serious - Get JAWA CZ
Top
stan666
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Mon Jun 25, 2007 6:20 pm
Location: Germany
Contact:
Contact stan666
Website

  • Quote

Post by stan666 » Tue May 05, 2009 3:32 pm

petlab wrote:Yes, I did that from a konsole. No effect.
But did you run it via kdesu as a non-root user?
BOFH Excuse #450:
Terrorists crashed an airplane into the server room, have to remove /bin/laden. (rm -rf /bin/laden)
Top
petlab
Apprentice
Apprentice
User avatar
Posts: 290
Joined: Mon May 03, 2004 6:38 am
Location: Armpit, Oregon
Contact:
Contact petlab
Website

  • Quote

Post by petlab » Wed May 06, 2009 5:45 pm

No, I didn't. How would you do that?

Code: Select all

(run) kdesu konsole??
  (run) kdesu cfg-update??
running kdesu cfg-update produces no output. either from "run command" or from a user Konsole.
I tried a kdesu konsole from my regular user, and

Code: Select all

  # cfg-update -u -t /usr/kde/4.2/bin/kdiff3
and got an error:

Code: Select all

In kdiff3 you select the lines that you want to keep.
  When done, click the save button and exit kdiff3!
  When you exit kdiff3, cfg-update will finish the update...
* GUI not available, unable to run the mergetool set in /etc/cfg-update.conf!
  Run cfg-update from within an X-terminal if you want to use a GUI mergetool.
  If you are getting this from within an X-terminal, you should try running
  "xhost +localhost" as the user who started the X-server.
  If you use this script on a system without an X-server you should permanently
  set the MERGETOOL variable in /etc/cfg-update.conf to vimdiff or sdiff.
  I recommend the more advanced vimdiff on systems without an X-server.
  See http://people.zeelandnet.nl/xentric for vimdiff usage instructions.
Get Serious - Get JAWA CZ
Top
stan666
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Mon Jun 25, 2007 6:20 pm
Location: Germany
Contact:
Contact stan666
Website

  • Quote

Post by stan666 » Wed May 06, 2009 6:00 pm

petlab wrote:No, I didn't. How would you do that?
try this

Code: Select all

$ kdesu -t "cfg-update -u"
Searching for updates...

<< Stage1 >> 0 files in queue for automatic replacing, skipping...

<< Stage2 >> 3 files in queue for automatic 3-way merging, starting...

(1/5)  /etc/genkernel.conf  *Modified File
* Merge conflict(s) found, this file will be re-scheduled for manual updating.
Update canceled...

(2/5)  /etc/mono/2.0/DefaultWsdlHelpGenerator.aspx  *Modified File
* Merge conflict(s) found, this file will be re-scheduled for manual updating.
Update canceled...

(3/5)  /etc/mono/2.0/machine.config  *Modified File
* Merge conflict(s) found, this file will be re-scheduled for manual updating.
Update canceled...

<< Stage3 >> 3 files in queue for manual 3-way merging, starting...

(1/5)  /etc/genkernel.conf  *Modified File
* YOU ARE ABOUT TO UPDATE A MODIFIED FILE WHICH PROBABLY CONTAINS
* CUSTOM SETTINGS. YOU ARE FORCED TO UPDATE MANUALLY!
  Press [y] - to merge the current file and the ._cfg0000_* file with kdiff3
  Press [s] - to skip this update (to investigate first, and try again later)
  Press [q] - to quit cfg-update immediately
  Merge manually with file : /etc/._cfg0000_genkernel.conf ? [y|s|q]
(use the -t option to see console output)

Edit: I just installed cfg-update and found out it got stuck while invoking kdiff3 (but "kdesu kdiff3" starts kdiff3 as super user, maybe a cfg-update issue?), maybe one should try to compile kdiff3 with the "debug" use flag to find out why (sorry I forgot, the last time I used cfg-update I used it under kde 3.5 :oops:, today I prefer "etc-proposals"), but

Code: Select all

$ sudo cfg-update -u
Searching for updates...            

<< Stage1 >> 0 files in queue for automatic replacing, skipping...
                                                                                                   
<< Stage2 >> 3 files in queue for automatic 3-way merging, starting...                             
                                                                                                   
(1/5)  /etc/genkernel.conf  *Modified File                                                         
* Merge conflict(s) found, this file will be re-scheduled for manual updating.                     
Update canceled...                                                                                 
                                                                                                   
(2/5)  /etc/mono/2.0/DefaultWsdlHelpGenerator.aspx  *Modified File                                 
* Merge conflict(s) found, this file will be re-scheduled for manual updating.                     
Update canceled...                                                                                 
                                                                                                   
(3/5)  /etc/mono/2.0/machine.config  *Modified File                                                
* Merge conflict(s) found, this file will be re-scheduled for manual updating.                     
Update canceled...                                                                                 
                                                                                                   
<< Stage3 >> 3 files in queue for manual 3-way merging, starting...                                
                                                                                                   
(1/5)  /etc/genkernel.conf  *Modified File                                                         
* YOU ARE ABOUT TO UPDATE A MODIFIED FILE WHICH PROBABLY CONTAINS                                  
* CUSTOM SETTINGS. YOU ARE FORCED TO UPDATE MANUALLY!                                              
  Press [y] - to merge the current file and the ._cfg0000_* file with kdiff3                       
  Press [s] - to skip this update (to investigate first, and try again later)                      
  Press [q] - to quit cfg-update immediately                                                       
  Merge manually with file : /etc/._cfg0000_genkernel.conf ? [y|s|q] y                             
  In kdiff3 you select the lines that you want to keep.                                            
  When done, click the save button and exit kdiff3!                                                
  When you exit kdiff3, cfg-update will finish the update...                                       
  Merged result file /etc/genkernel.conf.merge not found...                                        
  No changes detected...                                                                           
  Press [1] - to replace the current file with the ._cfg0000_* file                                
  Press [2] - to keep the current file and remove the ._cfg0000_* file                             
  Press [u] - to undo and re-try merging the files later                                           
  Press [s] - to skip this update (to investigate first, and try again later)                      
  Press [q] - to quit cfg-update immediately                                                       
  How do you want to finish this update? [1|2|u|s|q] ^C 
works as a normal user from my terminal.
Last edited by stan666 on Wed May 06, 2009 6:24 pm, edited 2 times in total.
BOFH Excuse #450:
Terrorists crashed an airplane into the server room, have to remove /bin/laden. (rm -rf /bin/laden)
Top
petlab
Apprentice
Apprentice
User avatar
Posts: 290
Joined: Mon May 03, 2004 6:38 am
Location: Armpit, Oregon
Contact:
Contact petlab
Website

  • Quote

Post by petlab » Wed May 06, 2009 6:23 pm

Ahh, Thanks! Well, it must be my riced system then, because

Code: Select all

kdesu -t "cfg-update -u -t /usr/kde/4.2/bin/kdiff3"
does work, but kdiff3 still doesn't appear. I had investigated the kde4 'rewrite/port/version' of kdiff3, but it was 'too hard' for me to install. I'll have to look at that again.
Get Serious - Get JAWA CZ
Top
stan666
Apprentice
Apprentice
User avatar
Posts: 165
Joined: Mon Jun 25, 2007 6:20 pm
Location: Germany
Contact:
Contact stan666
Website

  • Quote

Post by stan666 » Wed May 06, 2009 6:27 pm

Does

Code: Select all

sudo cfg-update -u
work for you?

Edit: This bug seems to be related to the issue http://bugs.gentoo.org/258384
Edit: have you tried to use the kdiff-0.9.92 from slot "0"(emerge kdiff3:0)?
BOFH Excuse #450:
Terrorists crashed an airplane into the server room, have to remove /bin/laden. (rm -rf /bin/laden)
Top
petlab
Apprentice
Apprentice
User avatar
Posts: 290
Joined: Mon May 03, 2004 6:38 am
Location: Armpit, Oregon
Contact:
Contact petlab
Website

  • Quote

Post by petlab » Wed May 06, 2009 7:24 pm

Yeah, that works nicely!

FYI I have set my /etc/cfg-update.conf to use

Code: Select all

MERGE_TOOL = /usr/kde/4.2/bin/kdiff3
during my investigation of this. However, finding the binary never was the problem.

EDIT: I have 0.9.92-r1 installed. I see from the bug that the 'new' version works with kde4 so I'll try that.
Get Serious - Get JAWA CZ
Top
petlab
Apprentice
Apprentice
User avatar
Posts: 290
Joined: Mon May 03, 2004 6:38 am
Location: Armpit, Oregon
Contact:
Contact petlab
Website

  • Quote

Post by petlab » Wed May 06, 2009 9:00 pm

Emerging the newer version (0.9.95) repaired my problem. Now I can use cfg-update from a Konsole, as root, and Kdiff3 starts up. That's just what I needed!

BTW I am using USE="kdeprefix" and I have kdelibs-3.5.10 pulled in along with my kde4.2 installation. My kde4.2 comes from the overlay called kde-testing. I'm on ~~~x86. Thanks for your help, marking as [solved].
Get Serious - Get JAWA CZ
Top
petlab
Apprentice
Apprentice
User avatar
Posts: 290
Joined: Mon May 03, 2004 6:38 am
Location: Armpit, Oregon
Contact:
Contact petlab
Website

  • Quote

Post by petlab » Sat Sep 12, 2009 8:33 pm

I am on a new system now, ~amd64. I am still using

Code: Select all

sudo cfg-update -u
from a konsole, with kde-4.3.1 and kde-misc/kdiff3-0.9.95-r1. Works great. This post came up because I originally used just

Code: Select all

cfg-update -u
because I am normally root in a console after emerging a package. Originally, it worked. Something must have changed in one of the programs to cause me to need to # sudo.
Get Serious - Get JAWA CZ
Top
Post Reply

11 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic