Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits:
-
98164462
by Maytham Alsudany at 2025-03-28T17:13:08+00:00
1 changed file:
Changes:
| ... | ... | @@ -74,22 +74,20 @@ sub installable { |
| 74 | 74 | |
| 75 | 75 | my $depends = $self->processable->relation('strong');
|
| 76 | 76 | |
| 77 | - # Check for dependency on python3-numpy-abiN dependency (or strict
|
|
| 78 | - # versioned dependency on python3-numpy)
|
|
| 77 | + # Check for dependency on python3-numpy-abiN dependency
|
|
| 79 | 78 | # We do not allow alternatives as it would mostly likely
|
| 80 | 79 | # defeat the purpose of this relation. Also, we do not allow
|
| 81 | 80 | # versions for -abi as it is a virtual package.
|
| 82 | 81 | $self->hint('missing-dependency-on-numpy-abi')
|
| 83 | 82 | if $self->uses_numpy_c_abi
|
| 84 | - && !$depends->matches(qr/^python3?-numpy-abi\d+$/,
|
|
| 85 | - Lintian::Relation::VISIT_OR_CLAUSE_FULL)
|
|
| 86 | 83 | && (
|
| 87 | - !$depends->matches(
|
|
| 88 | - qr/^python3-numpy \(>[>=][^\|]+$/,
|
|
| 89 | - Lintian::Relation::VISIT_OR_CLAUSE_FULL
|
|
| 90 | - )
|
|
| 91 | - || !$depends->matches(
|
|
| 92 | - qr/^python3-numpy \(<[<=][^\|]+$/,
|
|
| 84 | + !$depends->matches(qr/^python3-numpy2?-abi\d+$/,
|
|
| 85 | + Lintian::Relation::VISIT_OR_CLAUSE_FULL)
|
|
| 86 | + # First ABI release of NumPy 2 is backwards-compatible with the last
|
|
| 87 | + # ABI release on NumPy 1, therefore the following is permittied; see
|
|
| 88 | + # Bug#1094364
|
|
| 89 | + && !$depends->matches(
|
|
| 90 | + qr/^python3-numpy2-abi0 | python3-numpy-abi9$/,
|
|
| 93 | 91 | Lintian::Relation::VISIT_OR_CLAUSE_FULL
|
| 94 | 92 | )
|
| 95 | 93 | )
|