Coder Social home page Coder Social logo

cpan-sys-info-driver-linux's People

Contributors

burak avatar

Stargazers

 avatar

Watchers

 avatar  avatar

cpan-sys-info-driver-linux's Issues

Can't open /etc/ARRAY(0x....)

On some linux systems the test suite fails:

...
UNAME: Linux debian9 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

Can't open /etc/ARRAY(0x56029d395ca8): No such file or directory at /home/cpansand/.cpan/build/2018123108/Sys-Info-Driver-Linux-0.7905-bDKD6x/blib/lib/Sys/Info/Driver/Linux/OS.pm line 204.
# Looks like your test exited with 2 just after 23.
t/03-basic.t ............. 
Dubious, test returned 2 (wstat 512, 0x200)
All 23 subtests passed 
Can't open /etc/ARRAY(0x561edda84fd0): No such file or directory at t/04-distribution.t line 10.
t/04-distribution.t ...... skipped: (no reason given)
...

hash reordering release names causing flipflop between redhat and centos

Hello

I'm having troubles with the detection of distro - the code is swapping between detecting centos and redhat, and when it decides on centos it can't get the right version info (as machine is redhat).

It appears the issue is in the code fragment that loads the hashes for the original and derived releases - because it's keying to the release value in the Conf.pm, and ignores the second redhat it finds.
(Distribution.pm)

XXX:

my $RELX = sub {
my $master = shift;
my $t = sub {
my($k, $v) = @;
return map { $
=> $v} ref $k ? @{$k} : ($k);
};
map { $t->($CONF{$}->{$master}, $ ) }
grep { $CONF{$_}->{$master} }
keys %CONF
};

my %ORIGINAL_RELEASE = $RELX->('release');
my %DERIVED_RELEASE = $RELX->('release_derived');
#

I'm a bit lost in all the shift references, trying to work out how to use an array instead of the hash for _probe_release. Any chance you'd be in a position to resolve this properly?

Kind Regards,
Damon

Tests fail on CentOS 6 and 7

On my CentOS6 and 7 smokers:

...
UNAME: Linux centos6 2.6.32-696.3.1.el6.x86_64 #1 SMP Tue May 30 19:52:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

No version because no distribution at /home/cpansand/.cpan/build/2018122700/Sys-Info-Driver-Linux-0.7904-0/blib/lib/Sys/Info/Driver/Linux/OS.pm line 204.
# Looks like your test exited with 255 just after 23.
t/03-basic.t ............. 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 23 subtests passed 
No version because no distribution at t/04-distribution.t line 10.
t/04-distribution.t ...... skipped: (no reason given)
...

Test suite passes on my other Linux smokers (Debian, Ubuntu, Fedora).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.