FTR

----- Forwarded Message -----
From: "Andreas Ulm" <andreas....@unister.de>
To: "Ignace Mouzannar" <ignace.mouzan...@enovance.com>
Sent: Thursday, January 26, 2012 4:34:25 AM
Subject: Re: Fwd: [mytop] can't use Config:IniFiles for my.cnf

Hi,

On 26.01.2012 02:20 02:20, Ignace Mouzannar wrote:
> On Thu, 2011-05-19 at 13:48 +0200, Andreas Ulm wrote:
>>
>> (snip)
>>
>>
>> Hi,
>>
>> because of the usage of Config::IniFiles you can't use all
>> parameters
>> which can be set in my.cnf.
>>
>> If you e.g. use "skip-external-locking" the CPAN Config::IniFiles
>> can't open the file because it is a mal-formed ini-file because
>> ini-files use the format "parameter = value".
>>
>> You can reproduce it by setting this parameter which is default in
>> "/etc/mysql/my.cnf".
>> Then call mytop.
>
> Hello Andreas,
>
> I am unable to reproduce this bug. It seems that
> libconfig-inifiles-perl
> is able to read the my.cnf file even if some variables are not set in
> a
> "parameter = value" fashion:
> ----

  (snip)

>
> Do you still have the exact error or scenario for me to reproduce it?

you can reproduce it if you cp /etc/mysql/my.cnf to ~/.my.cnf.
Then run mytop and you'll get:

"my" variable $up_width masks earlier declaration in same scope at
/usr/bin/mytop line 864.
Can't call method "Parameters" on an undefined value at /usr/bin/mytop
line 136.

After checking the sources of mytop I found that /etc/mysql/my.cnf
isn't loaded.

> The package has been flagged to be removed from testing because of
> this
> pending RC bug [1]; it would be nice if we could prevent this from
> happening. ;)

Right, wouldn't be nice if it is dropped. :D

>
> Thanks in advance.
>
> Cheers,
>  Ignace M
>
  (snip)


--
Andreas Ulm
Systemadministration

Unister GmbH

Barfußgässchen 11 | 04109 Leipzig

Telefon: +49 (0)341 65050 24535

andreas....@unister.de

www.unister.de [1]

Unister im Netz:

  [2]
  [3]
  [4]

Vertretungsberechtigter Geschäftsführer: Thomas Wagner

Amtsgericht Leipzig, HRB: 19056

Links:
------
[1] http://www.unister.de
[2] http://www.facebook.com/unistergruppe
[3] http://twitter.com/unister
[4] https://www.xing.com/companies/unistergmbh/about



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to