Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44777 - gensync from app-portage/gentoolkit-dev-0.2.0_pre2 doesn't read its config file properly.
Summary: gensync from app-portage/gentoolkit-dev-0.2.0_pre2 doesn't read its config fi...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
: 64828 (view as bug list)
Depends on:
Reported: 2004-03-15 15:17 UTC by Ronny Schoebel
Modified: 2004-09-22 21:23 UTC (History)
5 users (show)

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

Patch for gensync (gensync.diff,1013 bytes, patch)
2004-03-15 15:25 UTC, Ronny Schoebel
Details | Diff
New patch for gensync (gensync.diff,746 bytes, patch)
2004-03-16 02:49 UTC, Ronny Schoebel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ronny Schoebel 2004-03-15 15:17:49 UTC
There is abug in gensync (patch attached) that prevents the program from properly reading its configuration files. 
(`/etc/gensync/gensync.conf' and `/etc/gensync/*.syncsource')
The problem is that the attribut / value pairs are not stripped properly, and gensync will this way ALWAYS use its default settings because it can't recognise the required items in the configs.
For `/etc/gensync/gensync.conf' no setting will work, in other files the last setting in the file might work. As said before, a somewhat crude patch is attached. My installed python is: dev-lang/python-2.3.3

Reproducible: Always
Steps to Reproduce:
1.emerge gentoolkit-dev
2.Set base_overlay in /etc/gensync/gensync.conf to something different from /usr/local/overlays
3.Run `gensync bmg-gnome-current'

Actual Results:  
This fails if /usr/local/overlays does not exist. If it does exist, the rsync
completes, but to the wrong directory.
If PORTDIR_OVERLAY is not set to this directory you will never be able to merge
these ebuilds.

Expected Results:  
The rsync should complete to the correct directory, and gensync should honour
all settings I told it about. :)

Output from emerge info:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
System uname: 2.6.3-mm4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
FEATURES="autoaddcvs ccache digest sandbox"
PORTDIR_OVERLAY="/usr/local/portage/bmg-gnome-current /usr/local/portage/own
USE="3dnow X acpi alsa antlr apache2 artswrappersuid avi bonobo cdr crypt cups
doc dvd dvdr encode esd foomaticdb gif gnome gnomedb gstreamer gtk gtk2 java
jpeg lcms libg++ libwww mad maildir mozilla moznocompose moznoirc moznomail mpeg
mysql ncurses nptl oggvorbis opengl pam pdflib pic png python quicktime radeon
readline samba sdl spell sse ssl tiff truetype unicode x86 xinerama xml2 xv zlib"
Comment 1 Ronny Schoebel 2004-03-15 15:25:47 UTC
Created attachment 27422 [details, diff]
Patch for gensync
Comment 2 Ronny Schoebel 2004-03-16 02:49:12 UTC
Created attachment 27458 [details, diff]
New patch for gensync

I'm sorry. Since I'm not very firm in Python I made a bit of an overkill patch
last time, and brought in some new rather very newbie-ish stupid mistakes.
Here's the new one (now working). Sorry again.
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-04-04 16:56:26 UTC
I second the patch. I did the same thing to gensync and was about to post it, but my experience told me to search bugzilla first before submitting ;) 
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-08-28 03:07:10 UTC
Will look at it.
Comment 5 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-09-10 02:40:04 UTC
Applied. Will be part of the next Gentoolkit release.
Comment 6 SpanKY gentoo-dev 2004-09-22 21:23:05 UTC
*** Bug 64828 has been marked as a duplicate of this bug. ***