Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Troubleshooting cfg-update..
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
smith
Apprentice
Apprentice


Joined: 12 Sep 2003
Posts: 222

PostPosted: Sun Nov 16, 2003 3:02 pm    Post subject: Reply with quote

excellent... I will do that.. ty
_________________
gentoo portage > *
Back to top
View user's profile Send private message
Corw|n of Amber
Apprentice
Apprentice


Joined: 08 Aug 2003
Posts: 221
Location: Socialist Sovietic Republic of Belgium

PostPosted: Tue Dec 09, 2003 9:55 am    Post subject: Reply with quote

Didin't read all the thread, but then a search didn't return any result, either.
Code:
lewella root # emerge cfg-update
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-util/xxdiff-2.9.2-r1 to /
>>> md5 src_uri ;-) xxdiff-2.9.2.tar.gz
>>> Unpacking source...
>>> Unpacking xxdiff-2.9.2.tar.gz to /var/tmp/portage/xxdiff-2.9.2-r1/work
 * Applying kdesupport.patch...                                           [ ok ]
>>> Source unpacked.
tmake error: xxdiff.pro:88: Syntax error
make: *** No target. Stop.
 
!!! ERROR: dev-util/xxdiff-2.9.2-r1 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! (no error message)

Any idea? (I don't know the syntax in makefiles/python/bash/anything that's not C or C++.)
_________________
Whoever is enough of a fanatic to KILL people should be shot on sight.
Back to top
View user's profile Send private message
xentric
Guru
Guru


Joined: 16 Mar 2003
Posts: 410
Location: Netherlands

PostPosted: Tue Dec 09, 2003 5:38 pm    Post subject: Reply with quote

Corw|n of Amber wrote:
Didin't read all the thread, but then a search didn't return any result, either.
...
Any idea? (I don't know the syntax in makefiles/python/bash/anything that's not C or C++.)


A "quick search" on xxdiff turns up this solution:
Bug #34524

To fix your problem type this:
emerge -C tmake
emerge /usr/portage/dev-util/tmake/tmake-1.8-r1.ebuild
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Thu Feb 12, 2004 11:35 am    Post subject: Reply with quote

I'm also guilty of not reading the entire thread but...

Wow installing cfg-update has been a real ordeal -- figuring out how to emerge the ebuild (directions were very good, just hadn't done it before) Managing to get xxdiff to compile without breaking. (had to re-compile qt 3.2 ... wonder why?? but it worked) Getting the root/.* files to appear (heh.. typo in make.conf)

So I arrive at what I hope is my final problem..

cfg-update appears to work perfectly --only it claims that no config files were found for updating. This clearly isn't true as etc-update finds around 118 files for updating. The only message I get from cfg-update is:
Code:

root@enigma / # cfg-update -u

No (._cfg[0-9]{4}_*) files found...


I'm sure this is something small and easy that I just missed....
help??

Justin
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
xentric
Guru
Guru


Joined: 16 Mar 2003
Posts: 410
Location: Netherlands

PostPosted: Thu Feb 12, 2004 4:53 pm    Post subject: Reply with quote

The second problem is that I don't have access to my development box
for a couple of days... so I can't fix the ebuild right now :(
Damn... I shouldn't have released while in a hurry and without time to
troubleshoot unexpected problems. It won't happen again!

Update: I have been able to fix the tarball on the server !
You can unmerge cfg-update and merge it again...
I don't know what effect a changed tarball has on portage, so please
remove all files from /usr/local/portage/app-portage/cfg-update
and simply follow the installation instructions again.

_________________
When all else fails, read the manual...
Registered Linux User #340626
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Sun Feb 22, 2004 11:25 am    Post subject: xxdiff broken Reply with quote

I installed the cfg-update script yesterday and it workt fine for me. Then I changed some colors in the options window. After that it doesn't work anymore. :oops: Just get this output:

Code:
# cfg-update -u

(1/2)  /etc/hotplug/pci.rc  [no index]
Update file : /etc/hotplug/pci.rc ? [y|n|q|?] y
 (GUI tool) : when done, use the save button with the M on it !
 (GUI tool) : you have not saved your selections as /etc/hotplug/pci.rc.merge !
Update cancelled...

(2/2)  /etc/hotplug/usb.rc  [no index]
Update file : /etc/hotplug/usb.rc ? [y|n|q|?] y
 (GUI tool) : when done, use the save button with the M on it !
 (GUI tool) : you have not saved your selections as /etc/hotplug/usb.rc.merge !
Update cancelled...


After reading some documentation I tried:

Code:
# xxdiff --no-rcfile --single /etc/fstab
Segmentation fault


I figured; maybe I corrupted the config file from xxdiff. The docs say that this file is called '.xxdiffrc', but I can't find that file anywhere. If anybody could help me out, cause I realy like this script. It was from hell to heaven, realy. :cry:

Carrot. :wink:
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Mon Feb 23, 2004 5:54 pm    Post subject: Reply with quote

Just tried to run the command 'xxdiff --no-rcfile --single /etc/fstab' as a normal user. That works fine.
So it only gives an error when I'm root. This could point out to a fault in the configfile if you ask me. But where's the configfile for xxdiff. Can't find the '.xxdiffrc'-file under the root-directory.
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Mon Feb 23, 2004 10:29 pm    Post subject: Reply with quote

Try typing this:
Code:
xhost +localhost


as the user who you logged in as (the one who runs xxdiff no problem).

Justin
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Mon Feb 23, 2004 11:41 pm    Post subject: Reply with quote

Tried it, but doesn't work. As I told it begun after I messed arround with the options dialogwindow - changing the collors. Before it the program was running fine.
After that I got the Segmentation fault. So I think its the configfile, but I can't find a config file for xxdiff. :?

Carrot. :wink:
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Mon Feb 23, 2004 11:56 pm    Post subject: Reply with quote

hmm... one solution might be to re-emerge xxdiff. You could set cfg-update to use another diff program in order to merge teh xxdiff config files (if any are needed) and then switch it back.
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Tue Feb 24, 2004 12:00 am    Post subject: Reply with quote

Try taking a look at this: http://xxdiff.sourceforge.net/doc/xxdiff-doc.html

and specifically, this part:
http://xxdiff.sourceforge.net/doc/xxdiff-doc.html

and see if it helps...

Excerpted from this page....
Quote:
Much of the state of xxdiff can be customized through a resource file (actually, some of the features can only be changed through resource customization). By default, xxdiff looks for the file .xxdiffrc located in the user's home directory (this file location can be overriden by setting the environment variable XXDIFFRC), and reads that file for resource definition.



Also, while you are trying to get xxdiff back up, I recommend just using xxdiff by itself, without using cfg-update. Just type xxdiff with two file arguments:
Code:
xxdiff file1.txt file2.txt
(You probably already knew this, but in case you didn't hope it helps)

justin
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
Beholders_Eye
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2003
Posts: 116
Location: Brazil

PostPosted: Wed Feb 25, 2004 1:28 am    Post subject: Reply with quote

Has anyone tried out sux?
It's a su wrapper that, somehow, let another user use the current open XSession:
Code:

root # emerge -sv sux
Searching...
[ Results for search key : sux ]
[ Applications found : 1 ]

*  x11-misc/sux
      Latest version available: 1.0
      Latest version installed: 1.0
      Size of downloaded files: 9 kB
      Homepage:    http://fgouget.free.fr/sux/sux-readme.shtml
      Description: "su" wrapper which transfers X credentials
      License:     X11

root #emerge sux


I think configuring it at konsole's session settings would make things easier. If you change the "execute line" from "su" to "sux -", I think all the issues will be solved... Well, I've not tested it, I would, but can't download cfg-update... It seems that xentric's personal page is out!!! :cry:
This image shows where to configure...
http://magia.trix.net/konsole-sessionconfig.png
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Wed Feb 25, 2004 7:51 am    Post subject: Reply with quote

Sorry for the late reaction.

infamousmrsatan wrote:
hmm... one solution might be to re-emerge xxdiff. You could set cfg-update to use another diff program in order to merge teh xxdiff config files (if any are needed) and then switch it back.


I have re-emerged cfg-update, but that didn't help. But I didn't try to use a different diff-program yet. So I emerged gtkdiff.
I dont just get yet how to configure cfg-update to use this program. Is it just by typing 'cfg-update -c' and then typing the name 'gtkdiff' when it asks for the name? Or are there other configuration options I have to fill in?

infamousmrsatan wrote:
Try taking a look at this: http://xxdiff.sourceforge.net/doc/xxdiff-doc.html

and specifically, this part:
http://xxdiff.sourceforge.net/doc/xxdiff-doc.html


I saw this document. That where I did read about the .xxdiffrc file that I couldn't find.
I looked at the cfg-update script a bit closer. Now I can't program, but I think a saw that the script launches xxdiff with some inline resource options (I hope you understand what I mean). Maybe this is the reason I cant find the .xxdiffrc file.

Carrot.:wink:
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Wed Feb 25, 2004 4:43 pm    Post subject: Reply with quote

You're right, I can't find the .xxdiffrc or whatever its called either.... hmm..

I think you use the -c program to select the diff program you will use -- I assume that that means you enter the command (which should be in your PATH variable (actually in this case it would be in ROOTPATH)) that activates the diff program

What version of cfg-update did you get now, and what version was the first one you downloaded? What options did you specify the last time you emerged cfg-update or xxdiff?

Don't worry that its taking you a spell to get it to work. Cfg-update is very fickle, it seems to me, and not really stable yet. It took me about a week to get it working. Once you do though, it is very useful.

JS
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Wed Feb 25, 2004 6:15 pm    Post subject: Reply with quote

infamousmrsatan wrote:
What version of cfg-update did you get now, and what version was the first one you downloaded? What options did you specify the last time you emerged cfg-update or xxdiff?


I emerged cfg-update version 1.6 First time and still have that version installed.

This is what happened:
    * Emerged cfg-update first time.
    * Got it to work in about half a day.
    * Got to enthusiastic and changed some colors in the dialogbox.
    * After that xxiff gave error when I am root: Segmentation fault.
    * I umerged xxdiff and re-emerged xxdiff. Problem remains.
    * Re-installed cfg-update (without umerging it). Problem remains.



infamousmrsatan wrote:
I assume that that means you enter the command (which should be in your PATH variable (actually in this case it would be in ROOTPATH)) that activates the diff program .


Could you give a code-example of this. I am only a beginner and dont understand everything your say here. I have experienced code-examples help me a lot more then just plain text explanations. (My Englisch isn't that good either.) :)

Thanks for the help so far.

Carrot. :wink:
Back to top
View user's profile Send private message
Beholders_Eye
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2003
Posts: 116
Location: Brazil

PostPosted: Wed Feb 25, 2004 8:04 pm    Post subject: Reply with quote

Could somebody tell me why I'm getting this?
Code:

>>> Downloading http://people.zeelandnet.nl/xentric/cfg-update/cfg-update-1.6.tar.gz
--17:00:29--  http://people.zeelandnet.nl/xentric/cfg-update/cfg-update-1.6.tar.gz
           => `/usr/portage/distfiles/cfg-update-1.6.tar.gz'
Resolving people.zeelandnet.nl... 212.115.192.168
Connecting to people.zeelandnet.nl[212.115.192.168]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:00:30 ERROR 404: Not Found.

!!! Couldn't download cfg-update-1.6.tar.gz. Aborting.
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Thu Feb 26, 2004 6:29 am    Post subject: Reply with quote

Beholders_Eye wrote:

Could somebody tell me why I'm getting this?
Code:

>>> Downloading http://people.zeelandnet.nl/xentric/cfg-update/cfg-update-1.6.tar.gz
--17:00:29-- http://people.zeelandnet.nl/xentric/cfg-update/cfg-update-1.6.tar.gz
=> `/usr/portage/distfiles/cfg-update-1.6.tar.gz'
Resolving people.zeelandnet.nl... 212.115.192.168
Connecting to people.zeelandnet.nl[212.115.192.168]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:00:30 ERROR 404: Not Found.

!!! Couldn't download cfg-update-1.6.tar.gz. Aborting.


Looks like xentric's server is down or having some kind of problem... try again later? Or.... hey! Head's up xentric! Your server is having problems...


Carrot wrote:

Could you give a code-example of this. I am only a beginner and dont understand everything your say here. I have experienced code-examples help me a lot more then just plain text explanations. (My Englisch isn't that good either.)


PATH and ROOTPATH are environment variables-- they each contain a list of directories in which the system searches for files that represent an executable command. For example, when you type "ls" into the bash shell, gentoo looks in specific directories where it might find this command, (one of which being /bin where "ls" is actually located) and executes the command if found... If no command is found it gives you a message like this: "bash: blahblahblah: command not found"

PATH is an environment variable for regular users while ROOTPATH is an environment variable for the super user. These paths are stored in /etc/profile and /etc/profile.env (but these files should NEVER be modified directly)

xxdiff is stored in /usr/bin -- so if you can't run it as root, then you probably have problems with a lot of other applications as root as well.

To find out, execute the following (as any user)
Code:

bash-2.05b$ less /etc/profile | grep /usr/bin

And this should be your output:
Code:

if [ `/usr/bin/whoami` = 'root' ]
        export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
        export PATH="/bin:/usr/bin:${PATH}"
bash-2.05b$


If it is, then your path should be fine and thats not the problem.

IIf you don't get the same output, please post your output when you run the following command:

Code:
less /etc/profile.env | egrep ROOTPATH.*


For your reference, to add environment variables to your path, you use env-update -- just add a new file to /etc/env.d/ directory and add the line you want to add to the path in the file, and then type

Code:

env-update && source /etc/profile


More information is available in the Gentoo env-update howto
http://www.gentoo.org/doc/en/handbook/handbook.xml?part=2&chap=6[/code]
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Thu Feb 26, 2004 5:06 pm    Post subject: Reply with quote

Thanks very much. Looks very clear. I'll have a look at it later tonight. :D

Carrot. :wink:
Back to top
View user's profile Send private message
xentric
Guru
Guru


Joined: 16 Mar 2003
Posts: 410
Location: Netherlands

PostPosted: Thu Feb 26, 2004 8:20 pm    Post subject: Reply with quote

infamousmrsatan wrote:
Looks like xentric's server is down or having some kind of problem... try again later? Or.... hey! Head's up xentric! Your server is having problems...


Fixed, updated the ebuild and moved the files to a new location!
_________________
When all else fails, read the manual...
Registered Linux User #340626
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Fri Feb 27, 2004 11:15 pm    Post subject: update on situation Reply with quote

Thanks for your help so far.
I found out something new. I have only troubles starting xxdiff when I use su -l. When I login as root in KDM and I try to use xxdiff, all's fine. So I can use it afterall.
But the question remaines: Why does xxdiff suddenly stop working in 'su -l' modes?

When I su without the -l option I get the xxdiff: cannot connect to X server localhost:0,0 '-error. But I haven't looked over all documentation about that yet.

(Btw.: What is exactly the difference between su and su -l? :oops: )


Carrot. :wink:
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Sun Feb 29, 2004 6:38 pm    Post subject: Reply with quote

I'm not sure what the "su -l" option does (I'll look it up later), but when you get the error you just posted after usingi su (without the -l option), that means you need to type "xhost +localhost" as the user logged into kdm.

For example, first login as a normal user and type "xhost +localhost", then su to root (without the -l option) and try xxdiff. Let us know what happens.

JS
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
Carrot
n00b
n00b


Joined: 08 Apr 2003
Posts: 31

PostPosted: Sun Feb 29, 2004 11:39 pm    Post subject: Reply with quote

:D Good news!
infamousmrsatan wrote:
first login as a normal user and type "xhost +localhost", then su to root (without the -l option) and try xxdiff. Let us know what happens.


This worked. xxdiff Started up allright. Now what to do next?

I red the part from wrc1944 who had the same problem. But I didn't understand the part about the solution. (By the time he switched boxes.) :oops:
I added the last line to the .bashrc file in the root, home and /etc/skel/ directories, but I still get the localhost-error (after I rebooted of course).

The output from the 'bash-2.05b$ less /etc/profile | grep /usr/bin'-line you gave previously was correct.

So I guess I need your help some more... :wink:
_________________
Carrot. :wink:
Back to top
View user's profile Send private message
infamousmrsatan
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 201
Location: California

PostPosted: Mon Mar 01, 2004 6:50 am    Post subject: Reply with quote

Hmm.. I'm not sure how to make the "xhost +localhost" work automatically... it might possibly be in the x configuration?? Anyway, I always just do the line when I need it. Anyone know how to automate this????

What exactly happens when one tries "xhost +localhost"... I think that will take us to the bottom of this problem.

Justin
_________________
Registered Linux User 344425
Join the adopt an unanswered post initiative today!
Por favor, corrija mi espanol!
Back to top
View user's profile Send private message
xentric
Guru
Guru


Joined: 16 Mar 2003
Posts: 410
Location: Netherlands

PostPosted: Tue Mar 02, 2004 12:39 pm    Post subject: Reply with quote

Carrot wrote:
So I guess I need your help some more... :wink:


The problem probably has to do with the difference between a login shell and
a normal shell... can't find su -l in the manpage, but guess it tries to start
a login-shell.

The following part of the install procedure is important, please
check those files:


The following files will be created (by the ebuild) if they do not exist yet:
/root/.bashrc & /root/.bash_profile & /root/.Xdefaults
(these already contain a fix to properly set up the root environment)

If they already exist, manually add the following to /root/.bashrc :
Code:
## Quick fix to set up environment when su'ed to root:
[ -f /etc/profile ] && source /etc/profile

and add the following to root/.Xdefaults :
Code:
XTerm*loginShell: true


If you put this line in ~/.Xdefaults, you tell bash to "login" which should make
it use /etc/profile and ~/.bash_profile

(Read this thread for more info.)

Also, running "xhost +localhost" should always be done by the user who started
the X server (preferably a normal user), after that open a konsole and su to root.
_________________
When all else fails, read the manual...
Registered Linux User #340626
Back to top
View user's profile Send private message
mtwnet
n00b
n00b


Joined: 31 Jul 2004
Posts: 18

PostPosted: Sat Jul 31, 2004 5:49 pm    Post subject: Reply with quote

Trying to get the ebuild to work, and this is what I get after

Code:
ebuild /usr/local/portage/app-portage/cfg-update/cfg-update-1.6.ebuild digest


Code:
: command not found: line 4:
: command not found: line 18:
/usr/sbin/ebuild.sh: /usr/local/portage/app-portage/cfg-update/cfg-update-1.6.eb'ild: line 19: syntax error near unexpected token `{
/usr/sbin/ebuild.sh: /usr/local/portage/app-portage/cfg-update/cfg-update-1.6.eb'ild: line 19: `src_unpack() {

!!! ERROR: app-portage/cfg-update-1.6 failed.
!!! Function , Line 1294, Exitcode 1
!!! error sourcing ebuild


aux_get(): (0) Error in app-portage/cfg-update-1.6 ebuild. (1)
               Check for syntax error or corruption in the ebuild. (--debug)

doebuild(): aux_get() error; aborting.


Any ideas as to what's going on?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 5 of 8

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum