[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][lintian/lintian][master] 3 commits: Fix regex replacement for transition suffix g



Title: GitLab

Axel Beckert pushed to branch master at lintian / lintian

Commits:

  • b2561ac7
    by Mattias Ellert at 2024-05-06T00:04:04+00:00
    Fix regex replacement for transition suffix g
    
    The replacement should remove a final g after a digit, but leave the
    digit in place, e.g. libpam0g → libpam0 and libgjs0g → libgjs0.
    
  • a4c658ff
    by Mattias Ellert at 2024-05-06T00:04:04+00:00
    Only remove transition suffices when preceded by a digit
    
  • 07167eeb
    by Mattias Ellert at 2024-05-06T00:04:04+00:00
    Add transition suffix t64 for 64 bit time_t transition
    

1 changed file:

Changes:

  • lib/Lintian/Check/Libraries/Shared/Soname.pm
    ... ... @@ -83,11 +83,12 @@ sub installable {
    83 83
     
    
    84 84
         # try to strip transition strings
    
    85 85
         my $shortened_name = $self->processable->name;
    
    86
    -    $shortened_name =~ s/c102\b//;
    
    87
    -    $shortened_name =~ s/c2a?\b//;
    
    88
    -    $shortened_name =~ s/\dg$//;
    
    89
    -    $shortened_name =~ s/gf$//;
    
    90
    -    $shortened_name =~ s/v[5-6]$//; # GCC-5 / libstdc++6 C11 ABI breakage
    
    86
    +    $shortened_name =~ s/(\d)c102$/$1/;
    
    87
    +    $shortened_name =~ s/(\d)c2a?$/$1/;
    
    88
    +    $shortened_name =~ s/(\d)g$/$1/;
    
    89
    +    $shortened_name =~ s/(\d)gf$/$1/;
    
    90
    +    $shortened_name =~ s/(\d)v[56]$/$1/; # GCC-5 / libstdc++6 C11 ABI breakage
    
    91
    +    $shortened_name =~ s/(\d)t64$/$1/;   # 64 bit time_t
    
    91 92
         $shortened_name =~ s/-udeb$//;
    
    92 93
         $shortened_name =~ s/^lib64/lib/;
    
    93 94
     
    


  • Reply to: