• MIDI::ALSA 1.20 fails to install on Ubuntu 15.10 via CPAN

    From Andy@21:1/5 to All on Sat Oct 22 09:08:35 2016
    I just tried to install MIDI::ALSA on a freshly installed Ubuntu 15.10
    PC (yes I know Ubuntu support for 15.10 stopped recently but that's not relevant for this issue), but it fails during the testing phase on Test 35:

    ok 29 - skipping note_on event output
    ok 30 - skipping note_off event output
    ok 31 - skipping disconnectfrom()
    ok 32 - skipping SND_SEQ_EVENT_PORT_UNSUBSCRIBED event
    ok 33 - skipping disconnectto()
    ok 34 - connectto(2,'testpl pid=4697:1') connected to myself by name
    not ok 35 - received an event from myself
    # Failed test 'received an event from myself'
    # at test.pl line 301.
    # alsaevent=$VAR1 = [11,1,0,1,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    # correct =$VAR1 = [11,1,0,0,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    ok 36 - latency was 9 microsec
    ok 37 - disconnectfrom(1,128,2)
    ok 38 - status() reports running
    ok 39 - status() reports time = 2.805671 not 2.80858683586121
    ok 40 - status() reports time = 3.808081 not 3.81115889549255
    ok 41 - stop() returns success
    [...]
    # Looks like you failed 1 test of 57.
    Makefile:1010: recipe for target 'test_dynamic' failed
    make: *** [test_dynamic] Error 1
    PJB/MIDI-ALSA-1.20.tar.gz
    /usr/bin/make test -- NOT OK

    What could be the cause of this error?

    Many thanks in advance for any help.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy@21:1/5 to Andy on Sun Oct 23 10:54:15 2016
    Andy wrote:
    I just tried to install MIDI::ALSA on a freshly installed Ubuntu 15.10
    PC (yes I know Ubuntu support for 15.10 stopped recently but that's not relevant for this issue), but it fails during the testing phase on Test 35:

    ok 29 - skipping note_on event output
    ok 30 - skipping note_off event output
    ok 31 - skipping disconnectfrom()
    ok 32 - skipping SND_SEQ_EVENT_PORT_UNSUBSCRIBED event
    ok 33 - skipping disconnectto()
    ok 34 - connectto(2,'testpl pid=4697:1') connected to myself by name
    not ok 35 - received an event from myself
    # Failed test 'received an event from myself'
    # at test.pl line 301.
    # alsaevent=$VAR1 = [11,1,0,1,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    # correct =$VAR1 = [11,1,0,0,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    ok 36 - latency was 9 microsec
    ok 37 - disconnectfrom(1,128,2)
    ok 38 - status() reports running
    ok 39 - status() reports time = 2.805671 not 2.80858683586121
    ok 40 - status() reports time = 3.808081 not 3.81115889549255
    ok 41 - stop() returns success
    [...]
    # Looks like you failed 1 test of 57.
    Makefile:1010: recipe for target 'test_dynamic' failed
    make: *** [test_dynamic] Error 1
    PJB/MIDI-ALSA-1.20.tar.gz
    /usr/bin/make test -- NOT OK

    What could be the cause of this error?

    Many thanks in advance for any help.

    I just noticed the same test 35 fails on my old Mandriva box too, so it
    seems a general problem, not related to a specific distro.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Billam@21:1/5 to Andy on Tue Oct 25 21:14:04 2016
    On 2016-10-23, Andy <invalid@nowhere.nowhere> wrote:
    Andy wrote:
    I just tried to install MIDI::ALSA on a freshly installed Ubuntu
    15.10 ... but it fails during the testing phase on Test 35:

    ok 34 - connectto(2,'testpl pid=4697:1') connected to myself by name
    not ok 35 - received an event from myself
    # Failed test 'received an event from myself'
    # at test.pl line 301.
    # alsaevent=$VAR1 = [11,1,0,1,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    # correct =$VAR1 = [11,1,0,0,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    ok 36 - latency was 9 microsec
    [...]
    # Looks like you failed 1 test of 57.
    What could be the cause of this error?

    I just noticed the same test 35 fails on my old Mandriva box too,
    so it seems a general problem, not related to a specific distro.

    OK, that's my module... I just got back from hospital,
    and am running on half-power at the moment :-( Anyway:

    I can assure you that the reported error ( 11,1,0,1 <==> 11,1,0,0 )
    is meaningless. It's a bug in test.pl.
    Which MIDI-ALSA version were you using ?
    AFAICS in MIDI-ALSA-1.20 the bug is fixed, and that should test OK...

    Regards, Peter

    --

    Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy@21:1/5 to Peter Billam on Sat Oct 29 13:14:01 2016
    Peter Billam wrote:
    On 2016-10-23, Andy <invalid@nowhere.nowhere> wrote:
    Andy wrote:
    I just tried to install MIDI::ALSA on a freshly installed Ubuntu
    15.10 ... but it fails during the testing phase on Test 35:

    ok 34 - connectto(2,'testpl pid=4697:1') connected to myself by name
    not ok 35 - received an event from myself
    # Failed test 'received an event from myself'
    # at test.pl line 301.
    # alsaevent=$VAR1 = [11,1,0,1,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    # correct =$VAR1 = [11,1,0,0,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    ok 36 - latency was 9 microsec
    [...]
    # Looks like you failed 1 test of 57.
    What could be the cause of this error?

    I just noticed the same test 35 fails on my old Mandriva box too,
    so it seems a general problem, not related to a specific distro.

    OK, that's my module... I just got back from hospital,
    and am running on half-power at the moment :-( Anyway:

    I'm sorry to hear that, I sincerely hope that you recover completely
    soon (not just because of MIDI-ALSA ;) ).

    I can assure you that the reported error ( 11,1,0,1 <==> 11,1,0,0 )
    is meaningless. It's a bug in test.pl.

    Yep, that's what I thought, but it looks bad when trying to get other
    people to install MIDI-ALSA.

    Which MIDI-ALSA version were you using ?
    AFAICS in MIDI-ALSA-1.20 the bug is fixed, and that should test OK...

    It's in 1.20 downloaded from CPAN, maybe you fixed it in your code at
    home, but never got round to update it on CPAN?

    By the way, I got MIDI-ALSA into Debian, although they are deciding how
    to handle the kernel module requirements of 'make test' (virtmidi), so
    it hasn't become a package yet. See here: https://anonscm.debian.org/git/pkg-perl/packages/libmidi-alsa-perl.git

    If you would like to suggest a way forward for them then please tell
    them on the debian-perl mailing list: debian-perl@lists.debian.org
    See the thread here:
    https://lists.debian.org/debian-perl/2016/10/msg00033.html

    Best regards,
    Andy

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Billam@21:1/5 to Andy on Sat Nov 5 00:02:25 2016
    On 2016-10-29, Andy <invalid@nowhere.nowhere> wrote:
    Peter Billam wrote:
    I can assure you that the reported error ( 11,1,0,1 <==> 11,1,0,0 )
    is meaningless. It's a bug in test.pl.
    Yep, that's what I thought, but it looks bad when trying to get
    other people to install MIDI-ALSA.

    The problem is that sometimes alsa assigns queue ids starting
    from 0 and sometimes from 1 ; I don't know the background. On my
    debian jessie, test.pl runs fine, which makes it hard to test.

    Which MIDI-ALSA version were you using ?
    AFAICS in MIDI-ALSA-1.20 the bug is fixed, and that should test OK...
    It's in 1.20 downloaded from CPAN, maybe you fixed it in your code
    at home, but never got round to update it on CPAN?

    Try MIDI-ALSA-1.21 then ...

    By the way, I got MIDI-ALSA into Debian, although they are deciding
    how to handle the kernel module requirements of 'make test'
    (virtmidi), so it hasn't become a package yet. See here: https://anonscm.debian.org/git/pkg-perl/packages/libmidi-alsa-perl.git

    Thanks for your work !

    Regards, Peter

    --

    Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy@21:1/5 to Peter Billam on Sat Nov 5 20:35:46 2016
    Peter Billam wrote:

    The problem is that sometimes alsa assigns queue ids starting
    from 0 and sometimes from 1 ; I don't know the background. On my
    debian jessie, test.pl runs fine, which makes it hard to test.

    Wouldn't it be possible to ignore the queue id in the test and only
    compare all other parameters?

    Which MIDI-ALSA version were you using ?
    AFAICS in MIDI-ALSA-1.20 the bug is fixed, and that should test OK...
    It's in 1.20 downloaded from CPAN, maybe you fixed it in your code
    at home, but never got round to update it on CPAN?

    Try MIDI-ALSA-1.21 then ...

    Tried it, but still get the error as before:

    not ok 35 - received an event from myself
    # Failed test 'received an event from myself'
    # at test.pl line 301.
    # alsaevent=$VAR1 = [11,1,0,1,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];
    # correct =$VAR1 = [11,1,0,0,'2.8',[128,2],[128,1],[0,0,0,0,0,99]];


    By the way, I got MIDI-ALSA into Debian, although they are deciding
    how to handle the kernel module requirements of 'make test'
    (virtmidi), so it hasn't become a package yet. See here:
    https://anonscm.debian.org/git/pkg-perl/packages/libmidi-alsa-perl.git

    Thanks for your work !

    You're welcome, but I'm also doing it to make my life easier as it's
    much easier to install MIDI::ALSA from a repo than having to build it
    every time.

    The above error in 'make test' also slightly further complicates things
    as it makes a 'cpan -fi MIDI::ALSA' necessary rather than just a straightforward 'cpan MIDI::ALSA'.

    By the way, thanks for >>your<< work. Without MIDI::ALSA I wouldn't have
    been able to write any of the MIDI programs that I wrote in the past 4
    years.

    Best regards,
    Andy

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Billam@21:1/5 to Andy on Sun Nov 6 05:07:38 2016
    On 2016-11-05, Andy <invalid@nowhere.nowhere> wrote:
    Wouldn't it be possible to ignore the queue id in the test and
    only compare all other parameters?

    Indeed it was, but I forgot to re-make the tarball :-(
    This would not happen if I was well and running on full energy.
    Apologies.

    So try MIDI-ALSA-1.22 then (when it hits the mirrors) ...

    Regards, Peter

    --

    Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)