Bug 2241707 - perl-Apache-DBI-Cache-0.08-46.fc40 FTBFS: DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at /builddir/build/BUILD/Apache-DBI-Cache-0.08/blib/lib/Apache/DBI/Cache.pm line 228
Summary: perl-Apache-DBI-Cache-0.08-46.fc40 FTBFS: DBI connect('f_dir=tmp1','',...) fa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Apache-DBI-Cache
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F40FTBFS
TreeView+ depends on / blocked
 
Reported: 2023-10-02 08:38 UTC by Petr Pisar
Modified: 2023-10-31 08:49 UTC (History)
4 users (show)

Fixed In Version: perl-Apache-DBI-Cache-0.08-47.fc40
Clone Of:
Environment:
Last Closed: 2023-10-31 08:49:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2023-10-02 08:38:27 UTC
perl-Apache-DBI-Cache-0.08-46.fc40 fails to build in Fedora 40 because some tests fail:

t/001cache.t ...... ok
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at /builddir/build/BUILD/Apache-DBI-Cache-0.08/blib/lib/Apache/DBI/Cache.pm line 228.
DBI connect('f_dir=tmp2','',...) failed: No such directory 'tmp2 at /builddir/build/BUILD/Apache-DBI-Cache-0.08/blib/lib/Apache/DBI/Cache.pm line 228.
#   Failed test 't/002noshm.t(18): connect_on_init1'
#   at t/002noshm.t line 18.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
#   Failed test 't/002noshm.t(21): connect_on_init2'
#   at t/002noshm.t line 21.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at t/002noshm.t line 29.
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at t/002noshm.t line 31.
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at t/002noshm.t line 35.
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at t/002noshm.t line 36.
#   Failed test 't/002noshm.t(38): statistics after usage1'
#   at t/002noshm.t line 38.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
#   Failed test 't/002noshm.t(43): got different handles'
#   at t/002noshm.t line 43.
#   Failed test 't/002noshm.t(45): statistics after usage2'
#   at t/002noshm.t line 45.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
# Looks like you failed 5 tests of 8.
t/002noshm.t ...... 
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/8 subtests 
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at /builddir/build/BUILD/Apache-DBI-Cache-0.08/blib/lib/Apache/DBI/Cache.pm line 228.
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at /builddir/build/BUILD/Apache-DBI-Cache-0.08/blib/lib/Apache/DBI/Cache.pm line 228.
#   Failed test 't/003plugin.t(34): connect_on_init1'
#   at t/003plugin.t line 34.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
#   Failed test 't/003plugin.t(37): plugin called'
#   at t/003plugin.t line 37.
# Compared $data->[1]
#    got : '0'
# expect : '4'
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at t/003plugin.t line 47.
#   Failed test 't/003plugin.t(50): but handle used'
#   at t/003plugin.t line 50.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at t/003plugin.t line 56.
#   Failed test 't/003plugin.t(59): statistics remain unchanged'
#   at t/003plugin.t line 59.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
DBI connect('f_dir=tmp1','',...) failed: No such directory 'tmp1 at t/003plugin.t line 65.
#   Failed test 't/003plugin.t(68): statistics remain unchanged again'
#   at t/003plugin.t line 68.
# Compared reftype($data)
#    got : undef
# expect : 'ARRAY'
# Looks like you failed 5 tests of 10.
t/003plugin.t ..... 
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/10 subtests 
t/004rootclass.t .. ok
t/005rootclass.t .. ok
t/100mysql.t ...... skipped: no database given, see README
t/200imadbi.t ..... ok
t/201imadbi.t ..... ok
t/202imadbi.t ..... ok
t/203classdbi.t ... ok
t/204classdbi.t ... ok
t/205classdbi.t ... ok
Test Summary Report
-------------------
t/002noshm.t    (Wstat: 1280 (exited 5) Tests: 8 Failed: 5)
  Failed tests:  2-3, 6-8
  Non-zero exit status: 5
t/003plugin.t   (Wstat: 1280 (exited 5) Tests: 10 Failed: 5)
  Failed tests:  1-2, 6, 8, 10
  Non-zero exit status: 5
Files=12, Tests=112,  1 wallclock secs ( 0.04 usr  0.01 sys +  1.09 cusr  0.19 csys =  1.33 CPU)
Result: FAIL

A difference between passing and failing build root is at <https://koschei.fedoraproject.org/build/16408212>.

Comment 1 Jitka Plesnikova 2023-10-26 14:36:00 UTC
It is related to fix for CVE-2014-10401 and CVE-2014-10402 in perl-DBI.

If "f_dir" (used for DBI->connection) is set to a non-existing location, 
the connection will fail. Because of this, folders to use cannot be created 
after the connection, but must exist before the connection is initiated.

Tests use directories tmp1 and tmp2 which don't exist.

Comment 2 Fedora Update System 2023-10-31 08:48:55 UTC
FEDORA-2023-edf79a6dca has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-edf79a6dca

Comment 3 Fedora Update System 2023-10-31 08:49:12 UTC
FEDORA-2023-edf79a6dca has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.