| Summary: | swig with php8 support | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Nicolas Lécureuil <mageia> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, ouaurelien, sysadmin-bugs, tarazed25 |
| Version: | 8 | Keywords: | advisory, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | MGA8-64-OK | ||
| Source RPM: | swig-4.0.2-1.mga8.src.rpm | CVE: | |
| Status comment: | |||
|
Nicolas Lécureuil
2021-04-03 10:30:57 CEST
Assignee:
bugsquad =>
qa-bugs
David Walser
2021-04-03 16:51:34 CEST
QA Contact:
security =>
(none) Install OK with php8. Not sure how to use this. CC:
(none) =>
ouaurelien @Aurelien, comment 1: Have been looking at this, following up an example at http://www.swig.org/Doc4.0/Php.html of using swig to generate a php extension. I know very little about php and nothing about swig but I think we should be able to run the example. It involves some compilation which generated an error when I tried it it failed to finf zend.h. So it needs the php-ZendFramework. rpmfind indicates that we package it. The file name given is php-ZendFramework2-Version-2.4.13-3.mga8.noarch. Could not find it although '32-bit updates' was enabled. Not in release either. CC:
(none) =>
tarazed25 # urpmf /zend.h|sort -u php-devel:/usr/include/php/Zend/zend.h php-devel:/usr/include/php/Zend/zend_hash.h php-devel:/usr/include/php/Zend/zend_highlight.h CC:
(none) =>
davidwhodgins Thanks Dave - installed php-devel and there it was.
Running the compilation produced a large number of errors which might be related to missing support for php. Tried again after updating swig:
$ swig -php8 example.i
swig error : Unrecognized option -php8
Use 'swig -help' for available options.
$ swig php -help | less
...
-php7 - Generate PHP 7 wrappers
$ swig -php7 example.i
$ gcc $(php-config --includes) -fpic -c example_wrap.c example.c
$ ls
example.c example.o example_wrap.c php_example.h
example.i example.php example_wrap.o
So, I wonder, where does php8 come into this?
$ rpm -qa | grep php
php-sysvsem-8.0.3-1.1.mga8
php-openssl-8.0.3-1.1.mga8
php-devel-8.0.3-1.1.mga8
php-zlib-8.0.3-1.1.mga8
php-cgi-8.0.3-1.1.mga8
php-sysvshm-8.0.3-1.1.mga8
php-session-8.0.3-1.1.mga8
php-cli-8.0.3-1.1.mga8
php-ini-8.0.3-1.1.mga8
Perhaps the -php7 is interpreted as >= php7?
In which case php8 support has been demonstrated.
Or perhaps not. The php extension still needs to be tried out. $ gcc -shared example_wrap.o example.o -o example.so $ ls example.c example.o example.so* example_wrap.o todo example.i example.php example_wrap.c php_example.h The shared object file has been created but at this point I have absolutely no idea how to proceed. Copied example.so to ~/dev/php. /etc/php.ini probably needs to be modified in some way. With no possibility of getting any further with this in a finite time it will have to go out as it is. The support for php8 has been confirmed but without any measure of its effectiveness. Do we need a package list for this? (In reply to Len Lawrence from comment #7) > With no possibility of getting any further with this in a finite time it > will have to go out as it is. The support for php8 has been confirmed but > without any measure of its effectiveness. Do we need a package list for > this? *** Arch: i586 *** RPMs from 'core/updates_testing' ======================== swig-4.0.2-1.1.mga8.i586.rpm swig-doc-4.0.2-1.1.mga8.noarch.rpm SRPM: swig-4.0.2-1.1.mga8.src.rpm *** Arch: x86_64 *** RPMs from 'core/updates_testing' ======================== swig-4.0.2-1.1.mga8.x86_64.rpm swig-doc-4.0.2-1.1.mga8.noarch.rpm SRPM: swig-4.0.2-1.1.mga8.src.rpm Thanks Aurelien. Installed the doc package. OK for x64. Whiteboard:
(none) =>
MGA8-64-OK Validating. Advisory: ======================== Updated swig packages restore php support In Mageia 8, swig have been provided with php support disabled because it didn't support php 8.0 This update adds back php support. references: https://bugs.mageia.org/show_bug.cgi?id=28710 ======================== Updated packages from core/updates_testing ======================== swig-4.0.2-1.1.mga8.{i586,x86_64}.rpm swig-doc-4.0.2-1.1.mga8.noarch.rpm from SRPM: swig-4.0.2-1.1.mga8.src.rpm Keywords:
(none) =>
advisory, validated_update An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2021-0094.html Resolution:
(none) =>
FIXED |
Upstream added php8 support for swig. src: - swig-4.0.2-1.1.mga8 Advosory: In mageia 8, swig have been provided with php support disabled because it didn't support. This update add back php support.