Package: feature-check
Version: 0.2.2-6
Severity: serious
Tags: patch upstream

There are two problems in the Perl 5 implementation of feature-check as
found in the Debian archive; both are fixed upstream in a later version.

With the following setup, the first couple of queries return the correct
results:

    [roam@straylight ~/tmp/v/roam/fctest]$ cat fctest.sh
    #!/bin/sh
    
    echo 'Features: fctest=3.0.beta2'
    [roam@straylight ~/tmp/v/roam/fctest]$ feature-check -l ./fctest.sh
    fctest  3.0.beta2
    [roam@straylight ~/tmp/v/roam/fctest]$ feature-check ./fctest.sh 'fctest > 
1' && echo yes
    yes
    [roam@straylight ~/tmp/v/roam/fctest]$ feature-check ./fctest.sh 'fctest < 
3.1' && echo yes
    yes
    [roam@straylight ~/tmp/v/roam/fctest]$ feature-check ./fctest.sh 'fctest < 
3' && echo yes
    [roam@straylight ~/tmp/v/roam/fctest]$ 

...but these return incorrect results and generate spurious stderr output:


    [roam@straylight ~/tmp/v/roam/fctest]$ feature-check ./fctest.sh 'fctest < 
10' && echo yes
    [roam@straylight ~/tmp/v/roam/fctest]$ feature-check ./fctest.sh 'fctest < 
3.0.beta3' && echo yes
    Argument "beta3" isn't numeric in numeric comparison (<=>) at 
/usr/bin/feature-check line 285.
    Argument "beta2" isn't numeric in numeric comparison (<=>) at 
/usr/bin/feature-check line 285.
    [roam@straylight ~/tmp/v/roam/fctest]$ 

These bugs are fixed in two upstream commits:

  
https://gitlab.com/ppentchev/feature-check/-/commit/ed0da5159562fa37cf32386a1baf2a1114562822

  
https://gitlab.com/ppentchev/feature-check/-/commit/59e618baff6836f281697561f5a9cfa22ccd28df

The changes in these commits may be applied directly as patches to the
Debian source package.

G'luck,
Peter

-- System Information:
Debian Release: 11.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages feature-check depends on:
ii  libjson-xs-perl  4.030-1+b1
ii  perl             5.32.1-4

feature-check recommends no packages.

feature-check suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to