Re: [Cooker] Drakconf / MCC start fault

2002-12-04 Thread Thierry Vignaud
MdkActe <[EMAIL PROTECTED]> writes:

> After your patch:
> 
> Undefined subroutine &main::mandrake_release called at /usr/sbin/drakconf.real line 
>460.
> Undefined subroutine &main::mandrake_release called at /usr/sbin/drakconf.real line 
>460.
> END failed--call queue aborted.
> 
> something still missing :(

mandrake_release() was added to cvs through this patch:

Index: common.pm
===
RCS file: /cooker/gi/perl-install/common.pm,v
retrieving revision 1.161
retrieving revision 1.163
diff -u -w -p -r1.161 -r1.163
--- common.pm	12 Nov 2002 12:05:40 -	1.161
+++ common.pm	25 Nov 2002 12:12:15 -	1.163
@@ -9,7 +9,7 @@ use vars qw(@ISA @EXPORT $SECTORSIZE);
 
 @ISA = qw(Exporter);
 # no need to export ``_''
-@EXPORT = qw($SECTORSIZE N N_ translate untranslate formatXiB removeXiBSuffix formatTime setVirtual makedev unmakedev salt set_permissions files_exist set_alternative);
+@EXPORT = qw($SECTORSIZE N N_ translate untranslate formatXiB removeXiBSuffix formatTime setVirtual makedev unmakedev salt set_permissions files_exist set_alternative mandrake_release);
 
 # perl_checker: RE-EXPORT-ALL
 push @EXPORT, @MDK::Common::EXPORT;
@@ -240,6 +240,10 @@ sub set_permissions {
 }
 run_program::rooted($::prefix, "/bin/chmod", $perms, $file)
 	or die "Could not start chmod!";
+}
+
+sub mandrake_release {
+chomp_(cat_("/etc/mandrake-release"))
 }
 
 1;


hum, i think i'll have to do a drakxtools packages with cvs from a few
days ago before we finish the switch to gtk+.

2002-11-27 17:00 seems to be the right date to use.
comparing with current developments, you'll missed:

2002-12-04 13:32  tvignaud

* pkgs.pm: perl_checker

2002-12-04 13:21  uid553

* install_steps_gtk.pm: use option tty7 to force X server to be on
tty7 (instead of opening tty5 and tty6 so that the next available
tty is tty7)

2002-12-04 12:38  tvignaud

* harddrake/data.pm, harddrake/ui.pm, standalone/harddrake2: kill
"used by only one" harddrake::ui module, move its content to
standalone/harddrake2

2002-12-04 11:39  tvignaud

* harddrake/ui.pm: cleanups

2002-12-04 11:38  tvignaud

* ugtk2.pm: reverse

2002-12-04 11:21  tvignaud

* harddrake/ui.pm: hide config buttons when switching from a
configurable device to a non configurable one

2002-12-04 11:14  tvignaud

* harddrake/ui.pm: fix gtktext_insert() usage

2002-12-04 09:30  tvignaud

* security/main.pm: share common options

2002-12-04 09:30  tvignaud

* security/msec.pm: - fix obvious pixel typo (s/if/if_/)
- no need to maintain dummy documentation about something which is
  called only in one place - simplify

2002-12-04 09:25  tvignaud

* standalone/drakxservices: strict mode

2002-12-04 08:49  tvignaud

* ugtk2.pm: clean up

2002-12-04 08:45  tvignaud

* harddrake/ui.pm: gtk+2 port, yeah baby :-)

2002-12-03 23:02  uid551

* share/po/: pt_BR.po, zh_CN.po: updated Brazilian and Chinese
files

2002-12-03 22:08  uid551

* share/fonts.tar.bz2: First try of fonts for Xft2

2002-12-03 21:04  uid535

* ugtk2.pm: titisux, revert the pango pixels stuff

2002-12-03 21:02  uid535

* common.pm, c/stuff.xs.pl: workaround perl sprintf bug when some
parameters are utf8 and some not

2002-12-03 15:14  pablo

* share/po/: et.po, ja.po, vi.po: updated Estonian and Vietnamese
files; fixed typo in Japanese file

2002-12-03 15:12  prigaux

* install_any.pm, partition_table.pm, scanner.pm, timezone.pm: do
not use "local *F", use "my $F" or output() instead

2002-12-03 15:11  prigaux

* security/msec.pm: fix typo

2002-12-03 15:08  prigaux

* raid.pm: use output()

2002-12-03 14:32  prigaux

* network/nfs.pm: (find_exports): use run_program::raw + stdout

2002-12-03 14:19  prigaux

* fs.pm: one need run_program::raw() to use options

2002-12-03 14:13  gc

* ugtk2.pm: misc fixes

2002-12-03 14:12  gc

* install_gtk.pm, install_steps_gtk.pm, mouse.pm, services.pm,
diskdrake/hd_gtk.pm, diskdrake/smbnfs_gtk.pm, interactive/gtk.pm:
gtk2

2002-12-03 14:12  prigaux

* commands.pm, common.pm, detect_devices.pm, devices.pm,
install_steps.pm, Xconfig/test.pm: do not use "local my $F, ...",
use "local(my $F, ...) instead

2002-12-03 14:12  tvignaud

* ugtk2.pm, standalone/logdrake: add gtktext_append() and uses it

2002-12-03 14:09  prigaux

* network/tools.pm: cleanup use of filehandles

2002-12-03 13:53  prigaux

* network/network.pm: (read_resolv_conf): simplify

2002-12-03 13:46  prigaux

* Xconfig/test.pm: do not use "local *F"

2002-12-03 13:42  prigaux

* devices.pm: do not use "local *F"

2002-12-03 13:39  prigaux

* common.pm: (formatXiB): simplify

2002-12-03 13:33  prigaux

 

Re: [Cooker] Drakconf / MCC start fault

2002-12-04 Thread MdkActe
On Tue, 03 Dec 2002 16:37:11 +0100
Thierry Vignaud <[EMAIL PROTECTED]> wrote:

> Thierry Vignaud <[EMAIL PROTECTED]> writes:
> 
> > > [simon@localhost simon]$ Can't call method "get_widget" on
> > > an undefined value at /usr/sbin/drakconf.real line 825. 
> > > [1]+  Donedrakconf
> > 
> > i know, i know but i'm currently busy in porting our tools to gtk+-2
> > since gc has nearly done most widget support in perl-Gtk2.
> > once that done, i'll look at it.
> > it should work smoothly with :
> > 
> >LC_ALL=C LC_MESSAGES=C LANG=C LANGUAGE=C mcc
> > 
> > it is known to work smoothly too with french locales :-)
> 
> oops :-(
> drakxtools-newt lacks latest ugtk.pm
> 
> this hopefully fix it :
> 
> --- /usr/lib/libDrakX/ugtk.pm 2002-11-18 16:25:38.0 +0100
> +++ /home/tv/cvs/mdk/gi/perl-install/ugtk.pm  2002-12-02 09:14:11.0 +0100
> @@ -319,7 +318,9 @@
>  my $widget = new Gtk::ItemFactory($type, $name, my $accel_group = new 
>Gtk::AccelGroup);
>  $widget->create_items(@menu_items);
>  $window->add_accel_group($accel_group); #$accel_group->attach($main_win);
> -$widget->get_widget($name); # return menu bar
> +my $menu = $widget->get_widget($name);
> +$menu->{factory} = $widget;
> +$menu; # return menu bar
>  }
>  
>  sub create_factory_menu { create_factory_menu_('Gtk::MenuBar', '', @_) }
> 
After your patch:

Undefined subroutine &main::mandrake_release called at /usr/sbin/drakconf.real line 
460.
Undefined subroutine &main::mandrake_release called at /usr/sbin/drakconf.real line 
460.
END failed--call queue aborted.

something still missing :(

===
 Juhani Kurki, Acte Oy
 Network Administrator
 Tel. +358 (0)9 7527 6634
 Fax  +358 (0)9 7527 6659
 Mobile   +358 (0)40 522 1945
 Emailmailto:[EMAIL PROTECTED]
 Internet http://www.acte.fi
===




Re: [Cooker] Drakconf / MCC start fault

2002-12-03 Thread Thierry Vignaud
Thierry Vignaud <[EMAIL PROTECTED]> writes:

> > [simon@localhost simon]$ Can't call method "get_widget" on
> > an undefined value at /usr/sbin/drakconf.real line 825. 
> > [1]+  Donedrakconf
> 
> i know, i know but i'm currently busy in porting our tools to gtk+-2
> since gc has nearly done most widget support in perl-Gtk2.
> once that done, i'll look at it.
> it should work smoothly with :
> 
>LC_ALL=C LC_MESSAGES=C LANG=C LANGUAGE=C mcc
> 
> it is known to work smoothly too with french locales :-)

oops :-(
drakxtools-newt lacks latest ugtk.pm

this hopefully fix it :

--- /usr/lib/libDrakX/ugtk.pm   2002-11-18 16:25:38.0 +0100
+++ /home/tv/cvs/mdk/gi/perl-install/ugtk.pm2002-12-02 09:14:11.0 +0100
@@ -319,7 +318,9 @@
 my $widget = new Gtk::ItemFactory($type, $name, my $accel_group = new 
Gtk::AccelGroup);
 $widget->create_items(@menu_items);
 $window->add_accel_group($accel_group); #$accel_group->attach($main_win);
-$widget->get_widget($name); # return menu bar
+my $menu = $widget->get_widget($name);
+$menu->{factory} = $widget;
+$menu; # return menu bar
 }
 
 sub create_factory_menu { create_factory_menu_('Gtk::MenuBar', '', @_) }





Re: [Cooker] Drakconf / MCC start fault

2002-12-02 Thread Thierry Vignaud
Simon Ree <[EMAIL PROTECTED]> writes:

> [simon@localhost simon]$ Can't call method "get_widget" on
> an undefined value at /usr/sbin/drakconf.real line 825. 
> [1]+  Donedrakconf

i know, i know but i'm currently busy in porting our tools to gtk+-2
since gc has nearly done most widget support in perl-Gtk2.
once that done, i'll look at it.
it should work smoothly with :

   LC_ALL=C LC_MESSAGES=C LANG=C LANGUAGE=C mcc

it is known to work smoothly too with french locales :-)





[Cooker] Drakconf / MCC start fault

2002-11-27 Thread Simon Ree
Just updated cooker:

[simon@localhost simon]$ mcc &
[1] 6824
[simon@localhost simon]$ Can't call method "get_widget" on
an undefined value at /usr/sbin/drakconf.real line 825. 
[1]+  Donemcc

[simon@localhost simon]$ drakconf &
[1] 6856
[simon@localhost simon]$ Can't call method "get_widget" on
an undefined value at /usr/sbin/drakconf.real line 825. 
[1]+  Donedrakconf


--
Simon Ree
[EMAIL PROTECTED]



msg82537/pgp0.pgp
Description: PGP signature