Bug 28969 - PECL php-qrcode update to latest version 4.1.4
Summary: PECL php-qrcode update to latest version 4.1.4
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-05-26 17:44 CEST by Marc Krämer
Modified: 2021-06-08 20:43 CEST (History)
4 users (show)

See Also:
Source RPM: php-qrcode-3.4.4-4.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Marc Krämer 2021-05-26 17:44:37 CEST
This update fixes some php 8 issues
Comment 1 Marc Krämer 2021-05-26 17:47:38 CEST
Updated php-qrcode to fix php 8 issues.

- Less dependencies and made validator optional
- Cleaner separation between QR code, logo and label objects
- Cleaned up writers
- Use intermediate result object for greater flexibility
- Builder registry for multiple configuration support
- PHP 8 Support

========================

Updated packages in core/updates_testing:
========================
php-qrcode-4.1.4-1.mga8.noarch.rpm

SRPM:
php-qrcode-4.1.4-1.mga8.src.rpm

Assignee: mageia => qa-bugs

Comment 2 Len Lawrence 2021-05-28 19:45:50 CEST
mga8, x64
Disclaimer: starting this from a a position of almost total ignorance about using php.

Before updating I tried a snippet from the README.md file but could not get it to work because there is either something missing from the php environment or the snippet needs to be embedded in a support framework.

$ cat basic.php
<?php
use Endroid\QrCode\QrCode;

$qrCode = new QrCode('Life is too short to be generating QR codes');

header('Content-Type: '.$qrCode->getContentType());
echo $qrCode->writeString();
?>

$ php basic.php
PHP Fatal error:  Uncaught Error: Class "Endroid\QrCode\QrCode" not found in /home/lcl/qa/php-qrcode/basic.php:4
Stack trace:
#0 {main}
  thrown in /home/lcl/qa/php-qrcode/basic.php on line 4

Looked at the php-qrcode website but could not follow the installation instructions.  Is it safe to assume that Mageia has taken care of all that?

Keywords: (none) => NEEDINFO
CC: (none) => tarazed25

Comment 3 Len Lawrence 2021-05-29 01:02:54 CEST
It looks like this needs the modules endroid and bacon at least.  Noting the PECL connection, a web search turned up the command pecl but no sign of that in /usr/bin or /usr/sbin.  So how do we get hold of all this extra stuff?  github does not have any pecl repositories yet.
Comment 4 Len Lawrence 2021-05-29 01:21:57 CEST
Tried the search engine on the PECL website.  No hits for qrcode, bacon or endroid.
Comment 5 Len Lawrence 2021-05-29 17:10:34 CEST
The update does not seem to have hit the mirrors yet even after switching to a specific mirror, second tier.
Comment 7 Marc Krämer 2021-05-31 18:04:08 CEST
strange.... is was almost certain I've uploaded 4.1.4 - I've done a reupload. Sorry for the confusion.
Build done - upload in progress.
David Walser 2021-06-01 04:13:35 CEST

Summary: PECL php-qrcode update to latest version => PECL php-qrcode update to latest version 4.1.4

Comment 8 Len Lawrence 2021-06-08 18:37:38 CEST
It may be time to push this on.
It updates OK and the dependencies required by the basic.php script do exist.  There is just the problem of accessing them.
Comment 9 Dave Hodgins 2021-06-08 19:51:52 CEST
Agreed. Nothing requires php-qrcode, so stand alone testing is required.

Most of the dependencies can be found by creating a symlink,
"Endroid -> /usr/share/php/Endroid/" in the same directory as the
source code, but it's still failing when it tries to use them.

I think it's to do with the use of namespaces, but I don't know enough
about php to know how to use it properly in a stand alone application.

php-qrcode-4.1.4-1.mga8 from php-qrcode-4.1.4-1.mga8.src.rpm ok on Mageia 8
based on clean update install.

Validating the update.

Whiteboard: (none) => MGA8-64-OK
Keywords: NEEDINFO => validated_update
CC: (none) => sysadmin-bugs

Aurelien Oudelet 2021-06-08 20:43:27 CEST

Keywords: (none) => advisory
CC: (none) => ouaurelien


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