Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-07-10 Thread Ruslan Kabalin
Just for the record, the issue with our application has been resolved by adding
Mo/builder.pm and Mo/default.pm to %INC:

https://git.luns.net.uk/configutils.git/blobdiff/ee32e725c51d18cf8189322b1bb9ff9dbe4d4c55..9c509205b570e6392331bfffa38d6cfdb5d7e347:/configbuild/bin/configbuild.in

This fixed all test errors I had before (apart of a one very minor error 
related to output sentences order). So, as I expected, YAML lib caused all the 
issues.

Also, my collague pointed me at a similar bug in CPAN tracker:

https://rt.cpan.org/Public/Bug/Display.html?id=75390

It does not seem correct that libyaml-perl somehow depends on Mo.


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-23 Thread Ruslan Kabalin
On Wed, May 22, 2013 at 08:21:16PM +0200, gregor herrmann wrote:
 Thanks; installed after a detailed inspection :)
 
 Ok, now I can build and test configbuild.

Thanks for your effort Gregor.

 And I got tons of errors, also some including YAML, but still
 different ones than in your original report. - Ah, no debug output
 for some reason. Ok, now I have the error.

That is true, I am aware that there are some other errors, but they are out of
scope of this report, thus I did not mention them here. I was thinking about
solving this Mo-related one before looking into others, particulary for the
reason that if package is build on Squeeze, it does not report a single error,
but after installing that deb on Wheezy, I am getting only those Mo errors
when I call configbuild from command line (apparently it seems it does its job
correctly on Wheezy, even though reporting Mo errors).

Anyway, thanks for looking into that.

Ruslan


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-22 Thread gregor herrmann
On Tue, 21 May 2013 10:02:17 +0100, Ruslan Kabalin wrote:

  Now I have no idea where LUNS::Exception might come from :/
 Hello Gregor, thanks for looking into this, really apprecaite your help. The
 missing dependency is attached. 

Thanks; installed after a detailed inspection :)

Ok, now I can build and test configbuild.

And I got tons of errors, also some including YAML, but still
different ones than in your original report. - Ah, no debug output
for some reason. Ok, now I have the error.

Anyway, I still don't understand what's going on here.

I just have the hunch that it's not YAML's fault; the following works
as expected:

% perl -MYAML -e 
'$data=YAML::LoadFile(./t/repo.expected/defaults/params.yml); print 
YAML::Dump($data);' 
---
some_data:
  - datum1
  - datum2
  - datum3


And for me even the first test fails:

LC_ALL=en_US.utf8 PERL5LIB=`pwd`/modules/lib:`pwd`/modules/plugins prove -r 
t

#   Failed test 'Configbuild succeeds'
#   at t/ConfigBuildTestHelper.pm line 82.
#  got: '512'
# expected: '0'


Sorry, I'm out of ideas ...



Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT  SPI, fellow of the Free Software Foundation Europe
   `-   NP: Funny van Dannen: Schornsteinfeger


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-21 Thread Ruslan Kabalin
On Mon, May 20, 2013 at 04:42:35PM +0200, gregor herrmann wrote:
 On Mon, 13 May 2013 10:46:01 +0100, Ruslan Kabalin wrote:
 
 Unfortunately thing are not so easy:
 ... 
 Now I have no idea where LUNS::Exception might come from :/
 

Hello Gregor, thanks for looking into this, really apprecaite your help. The
missing dependency is attached. 

Ruslan



libluns-exception-perl_0.0.2_all.deb
Description: application/debian-package


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-20 Thread gregor herrmann
On Mon, 13 May 2013 10:46:01 +0100, Ruslan Kabalin wrote:

  Unoftunately I don't manage to clone it, neither via http(s) nor via
  some trial-and-error git:// URLs.
 Sorry, fixed now. Try cloning using git://git.luns.net.uk/configutils.git

Thanks for fixing it and sorry for the late reply.

Unfortunately thing are not so easy:

% git clone git://git.luns.net.uk/configutils.git
Cloning into 'configutils'...  
remote: Counting objects: 3034, done.
remote: Compressing objects: 100% (1088/1088), done.
remote: Total 3034 (delta 1546), reused 3034 (delta 1546)
Receiving objects: 100% (3034/3034), 818.15 KiB | 1.08 MiB/s, done.
Resolving deltas: 100% (1546/1546), done.

% cd configutils/configbuild

% ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for perl... /usr/bin/perl
checking for pod2man... /usr/bin/pod2man
checking for pod2man... (cached) /usr/bin/pod2man
checking for perl version greater than or equal to 5.8.0... ok
checking for perl module Attribute::Handlers... ok
checking for perl module Carp... ok
checking for perl module Cwd... ok
checking for perl module Data::Dumper... ok
checking for perl module DBI... ok
checking for perl module Digest::MD5... ok
checking for perl module English... ok
checking for perl module Error... ok
checking for perl module Exception::Class... ok
checking for perl module Fcntl... ok
checking for perl module File::Basename... ok
checking for perl module File::Find... ok
checking for perl module File::Glob... ok
checking for perl module File::Path... ok
checking for perl module File::Spec... ok
checking for perl module File::Temp... ok
checking for perl module IO::File... ok
checking for perl module IPC::Run... ok
checking for perl module List::Util... ok
checking for perl module Log::Log4perl... ok
checking for perl module LUNS::Exception... no
configure: error: LUNS::Exception Perl module is required


Now I have no idea where LUNS::Exception might come from :/

(And hacking around it doesn't lead very far, since
libconfigutils-{,manifest-}perl also need it.)


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT  SPI, fellow of the Free Software Foundation Europe
   `-   NP: Flying Pickets: I Feel For You


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-13 Thread Ruslan Kabalin
On Sat, May 11, 2013 at 01:49:29PM +0200, gregor herrmann wrote:
 Thanks.
 Unoftunately I don't manage to clone it, neither via http(s) nor via
 some trial-and-error git:// URLs.

Sorry, fixed now. Try cloning using git://git.luns.net.uk/configutils.git

Ruslan


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-11 Thread gregor herrmann
On Thu, 09 May 2013 16:46:46 +0100, Ruslan Kabalin wrote:

 On Wed, May 08, 2013 at 07:43:46PM +0200, gregor herrmann wrote:
  Is this ConfigUtils::ConfigBuild and /usr/bin/configbuild available
  somewhere? Alternatively can you produce some minimal testcase
  without it?
 
 I have made ConfigUtils public, it is available at
 https://git.luns.net.uk/configutils.git/ We really need to make this tool
 public for everyone at some point, it just lacks proper documentation...

Thanks.
Unoftunately I don't manage to clone it, neither via http(s) nor via
some trial-and-error git:// URLs.
 

Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT  SPI, fellow of the Free Software Foundation Europe
   `-   NP: Eagles


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-09 Thread Ruslan Kabalin
On Wed, May 08, 2013 at 07:43:46PM +0200, gregor herrmann wrote:
 Is this ConfigUtils::ConfigBuild and /usr/bin/configbuild available
 somewhere? Alternatively can you produce some minimal testcase
 without it?

Thanks Gregor for quick reply.

I have made ConfigUtils public, it is available at
https://git.luns.net.uk/configutils.git/ We really need to make this tool
public for everyone at some point, it just lacks proper documentation...

Anyway, you may clone the repo, cd into configbuild directory, run
'./configure', 'make', and 'make test', the latter it will show you Mo:: errors 
at
the second test. The package builds fine on Squeeze, but does produce the same
error if I install and use it on Wheeze.


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-08 Thread gregor herrmann
On Wed, 08 May 2013 12:00:47 +0100, Ruslan Kabalin wrote:

 After upgrading to Wheezy I have got a problem with so-called configbuild
 tool (which uses libyaml-perl) and reports the following errors:

Thanks for reporting this problem.
 
 DEBUG - Loading YAML data from defaults/params.yml
 FATAL - Can't locate Mo/builder.pm in @INC (@INC contains: /etc/perl
 /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
 /usr/local/lib/site_perl . /usr/share/configbuild/lib) at (eval 305) line 2,
 $IN line 1.
  at (eval 305) line 2
 YAML::Mo::BEGIN() called at (eval 305) line 2
 eval {...} called at (eval 305) line 2
 eval 'no Mo::builder
 ;' called at /usr/share/perl5/YAML/Mo.pm line 5
 YAML::Mo::__ANON__(undef, 'builder', 'default') called at
 /usr/share/perl5/YAML/Loader.pm line 2
 YAML::Loader::BEGIN() called at (eval 305) line 2
 eval {...} called at (eval 305) line 2
 require YAML/Loader.pm called at (eval 304) line 2
 eval 'require YAML::Loader
 ;' called at /usr/share/perl5/YAML.pm line 82
 YAML::init_action_object('YAML=HASH(0x1d5d1e0)', 'loader') called at
 /usr/share/perl5/YAML.pm line 21
 YAML::__ANON__('YAML=HASH(0x1d5d1e0)') called at
 /usr/share/perl5/YAML/Mo.pm line 5
 YAML::Mo::__ANON__('YAML=HASH(0x1d5d1e0)') called at
 /usr/share/perl5/YAML.pm line 34
 YAML::Load('---
 #...') called at
 /usr/share/perl5/YAML.pm line 75
 YAML::LoadFile('defaults/params.yml') called at /usr/bin/configbuild
 line 500
 eval {...} called at /usr/bin/configbuild line 500
 ConfigUtils::ConfigBuild::load_yaml('HASH(0x1d42860)',
 'defaults/params.yml') called at /usr/bin/configbuild line 716
 ConfigUtils::ConfigBuild::load_datasource('HASH(0x1d42860)',
 'params.yml', 'defaults/config.rb3') called at /usr/bin/configbuild line 816
 ConfigUtils::ConfigBuild::__ANON__() called at
 /usr/share/perl5/Error.pm line 416
 eval {...} called at /usr/share/perl5/Error.pm line 408
 Error::subs::try('CODE(0x1d5cdf0)', 'HASH(0x1d5d048)') called at
 /usr/bin/configbuild line 823

Interesting.

My reading is that /usr/bin/configbuild and
ConfigUtils::ConfigBuild::load_yaml load YAML and use YAML::Load,
which calls its own YAML::Mo::* stuff ... and then something (?)
looks for Mo::builder (instead if YAML::Mo::Builder) and fails ...

Is this ConfigUtils::ConfigBuild and /usr/bin/configbuild available
somewhere? Alternatively can you produce some minimal testcase
without it?


Cheers,
gregor
 

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT  SPI, fellow of the Free Software Foundation Europe
   `-   NP: Leonard Cohen: Boogie Street


signature.asc
Description: Digital signature


Bug#707229: libyaml-perl seems require Mo, which is not packaged for debian

2013-05-08 Thread Ruslan Kabalin
Package: libyaml-perl
Version: 0.81-1
Severity: important

Dear Maintainer,

After upgrading to Wheezy I have got a problem with so-called configbuild
tool (which uses libyaml-perl) and reports the following errors:

DEBUG - Loading YAML data from defaults/params.yml
FATAL - Can't locate Mo/builder.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl . /usr/share/configbuild/lib) at (eval 305) line 2,
$IN line 1.
 at (eval 305) line 2
YAML::Mo::BEGIN() called at (eval 305) line 2
eval {...} called at (eval 305) line 2
eval 'no Mo::builder
;' called at /usr/share/perl5/YAML/Mo.pm line 5
YAML::Mo::__ANON__(undef, 'builder', 'default') called at
/usr/share/perl5/YAML/Loader.pm line 2
YAML::Loader::BEGIN() called at (eval 305) line 2
eval {...} called at (eval 305) line 2
require YAML/Loader.pm called at (eval 304) line 2
eval 'require YAML::Loader
;' called at /usr/share/perl5/YAML.pm line 82
YAML::init_action_object('YAML=HASH(0x1d5d1e0)', 'loader') called at
/usr/share/perl5/YAML.pm line 21
YAML::__ANON__('YAML=HASH(0x1d5d1e0)') called at
/usr/share/perl5/YAML/Mo.pm line 5
YAML::Mo::__ANON__('YAML=HASH(0x1d5d1e0)') called at
/usr/share/perl5/YAML.pm line 34
YAML::Load('---
#...') called at
/usr/share/perl5/YAML.pm line 75
YAML::LoadFile('defaults/params.yml') called at /usr/bin/configbuild
line 500
eval {...} called at /usr/bin/configbuild line 500
ConfigUtils::ConfigBuild::load_yaml('HASH(0x1d42860)',
'defaults/params.yml') called at /usr/bin/configbuild line 716
ConfigUtils::ConfigBuild::load_datasource('HASH(0x1d42860)',
'params.yml', 'defaults/config.rb3') called at /usr/bin/configbuild line 816
ConfigUtils::ConfigBuild::__ANON__() called at
/usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try('CODE(0x1d5cdf0)', 'HASH(0x1d5d048)') called at
/usr/bin/configbuild line 823

FATAL - Can't locate Mo/default.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl . /usr/share/configbuild/lib) at (eval 306) line 2,
$IN line 1.
FATAL - Can't locate Mo/default.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
/usr/local/lib/site_perl . /usr/share/configbuild/lib) at (eval 306) line 2,
$IN line 1.
BEGIN failed--compilation aborted at (eval 306) line 2, $IN line 1.
 at (eval 306) line 2
eval 'no Mo::default
;' called at /usr/share/perl5/YAML/Mo.pm line 5
YAML::Mo::__ANON__(undef, 'builder', 'default') called at
/usr/share/perl5/YAML/Loader.pm line 2
YAML::Loader::BEGIN() called at (eval 306) line 2
eval {...} called at (eval 306) line 2
require YAML/Loader.pm called at (eval 304) line 2
eval 'require YAML::Loader
;' called at /usr/share/perl5/YAML.pm line 82
YAML::init_action_object('YAML=HASH(0x1d5d1e0)', 'loader') called at
/usr/share/perl5/YAML.pm line 21
YAML::__ANON__('YAML=HASH(0x1d5d1e0)') called at
/usr/share/perl5/YAML/Mo.pm line 5
YAML::Mo::__ANON__('YAML=HASH(0x1d5d1e0)') called at
/usr/share/perl5/YAML.pm line 34
YAML::Load('---
#...') called at
/usr/share/perl5/YAML.pm line 75
YAML::LoadFile('defaults/params.yml') called at /usr/bin/configbuild
line 500
eval {...} called at /usr/bin/configbuild line 500
ConfigUtils::ConfigBuild::load_yaml('HASH(0x1d42860)',
'defaults/params.yml') called at /usr/bin/configbuild line 716
ConfigUtils::ConfigBuild::load_datasource('HASH(0x1d42860)',
'params.yml', 'defaults/config.rb3') called at /usr/bin/configbuild line 816
ConfigUtils::ConfigBuild::__ANON__() called at
/usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408

Configbuild tool does not require Mo (Micro Objects) anywhere in the code for
functioning and works perfectly on squeeze. The problem only appears on Wheezy.
Closer investigation revealed that libyaml-perl in stable (Wheezy), which it
uses, mentions Mo in /usr/share/perl5/YAML/Mo.pm. I do not have a deep knowlege
in perl and libyaml-perl library functioning, but it seems to me that there is
a missing dependency (assuming Mo is indeed required for libyaml-perl
functionality). What makes it more complicated, that Mo
(http://search.cpan.org/~carlos/Mo-0.33/) does not exists in Debian repo.

Any insight from you guys would be quite appreciated. It might be that the bug
is caused by some incorrect use