File: fix_dbix_searchbuilder_for_perl_5.40.diff

package info (click to toggle)
request-tracker5 5.0.7%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 80,216 kB
  • sloc: javascript: 191,898; perl: 87,146; sh: 1,412; makefile: 487; python: 37; php: 15
file content (35 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 0693d46d0435d130c3d85359c55a51e07516d00f Mon Sep 17 00:00:00 2001
From: sunnavy <sunnavy@bestpractical.com>
Date: Tue, 18 Jun 2024 15:48:44 -0400
Subject: Drop unnecessary and outdated version requirement of
 DBIx::SearchBuilder

The updated version has already been specified in etc/cpanfile.

Besides, perl 5.40 doesn't like the weird version string "1.40"(numeric 1.40
is ok) and issues a warning:

    Attempt to call undefined import method with arguments ("1.40") via package "DBIx::SearchBuilder"

Patch-Name: fix_dbix_searchbuilder_for_perl_5.40.diff
Applied-Upstream: commit:5b9c371b192121c8c28136176fd4e78ee89d647c
Origin: vendor
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078046
---
 lib/RT/SearchBuilder.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RT/SearchBuilder.pm b/lib/RT/SearchBuilder.pm
index f7d4c769..c87eddd2 100644
--- a/lib/RT/SearchBuilder.pm
+++ b/lib/RT/SearchBuilder.pm
@@ -72,7 +72,7 @@ use base qw(DBIx::SearchBuilder RT::Base);
 $DBIx::SearchBuilder::PREFER_BIND = 1 unless defined $ENV{SB_PREFER_BIND};
 
 use RT::Base;
-use DBIx::SearchBuilder "1.40";
+use DBIx::SearchBuilder;
 
 use Scalar::Util qw/blessed/;