Bug 40663 - Package GD::Barcode::QRcode@2.01
Summary: Package GD::Barcode::QRcode@2.01
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Tomás Cohen Arazi (tcohen)
QA Contact: Mason James
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-18 13:31 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2025-08-18 13:37 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40663: Update GD::Barcode::QRcode to v2.01 (1.44 KB, patch)
2025-08-18 13:37 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2025-08-18 13:31:20 UTC
On Ubuntu 24.04, the shipped version of the library is v2.00. Debian 12 has v0.01. The feature it self works fine on either, but v2.00 introduced a warning that is making our test suite to fail [1].

On version v2.01 the author fixed the warning [2] 

To reproduce:

1. Start an Ubuntu 24.04 KTD:
   $ KOHA_IMAGE=main-noble ktd --name noble up -d
2. Run:
   $ ktd --name noble --shell
  k$ pmvers GD::Barcode::QRcode
=> 2.00
3. Run:
  k$ prove t/db_dependent/Koha/Auth/TwoFactorAuth.t
=> FAIL: Tests fail!
4. Run:
  k$ sudo cpanm -i GD::Barcode::QRcode@2.01
5. Repeat 3
=> SUCCESS: Tests pass!
6. Exit the 24.04 KTD and stop it:
  k$ exit
   $ ktd --name noble down
7. Start a Debian 12 KTD:
   $ KOHA_IMAGE=main-bookworm ktd --name bookworm up -d
8. Run:
   $ ktd --name bookworm --shell
  k$ pmvers GD::Barcode::QRcode
=> 0.01
9. Run:
  k$ prove t/db_dependent/Koha/Auth/TwoFactorAuth.t
=> SUCCESS: Tests pass!
10. Run:
  k$ sudo cpanm -i GD::Barcode::QRcode@2.01
11. Repeat 9
=> SUCCESS: Tests still pass!



[1] https://jenkins.koha-community.org/job/Koha_Main_U24/lastCompletedBuild/consoleFull
[2] https://github.com/mbeijen/GD-Barcode/commit/85e7911e65bf1c4746d9ce2e743580bbf51da793
Comment 1 Tomás Cohen Arazi (tcohen) 2025-08-18 13:32:21 UTC
I would like to add that Debian Trixie also ships the 'faulty' v2.00.
Comment 2 Tomás Cohen Arazi (tcohen) 2025-08-18 13:37:03 UTC
Created attachment 185513 [details] [review]
Bug 40663: Update GD::Barcode::QRcode to v2.01

1. Start an Ubuntu 24.04 KTD:
   $ KOHA_IMAGE=main-noble ktd --name noble up -d
2. Run:
   $ ktd --name noble --shell
  k$ pmvers GD::Barcode::QRcode
=> 2.00
3. Run:
  k$ prove t/db_dependent/Koha/Auth/TwoFactorAuth.t
=> FAIL: Tests fail!
4. Run:
  k$ sudo cpanm -i GD::Barcode::QRcode@2.01
5. Repeat 3
=> SUCCESS: Tests pass!
6. Exit the 24.04 KTD and stop it:
  k$ exit
   $ ktd --name noble down
7. Start a Debian 12 KTD:
   $ KOHA_IMAGE=main-bookworm ktd --name bookworm up -d
8. Run:
   $ ktd --name bookworm --shell
  k$ pmvers GD::Barcode::QRcode
=> 0.01
9. Run:
  k$ prove t/db_dependent/Koha/Auth/TwoFactorAuth.t
=> SUCCESS: Tests pass!
10. Run:
  k$ sudo cpanm -i GD::Barcode::QRcode@2.01
11. Repeat 9
=> SUCCESS: Tests still pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>