Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-php/pecl-parallel: New package: v1.1.4 #20348

Closed
wants to merge 1 commit into from

Conversation

jkroonza
Copy link
Contributor

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Jaco Kroon jaco@uls.co.za

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @jkroonza
Areas affected: ebuilds
Packages affected: dev-php/pecl-parallel

dev-php/pecl-parallel: @gentoo/proxy-maint (new package)

Linked bugs

No bugs to link found. If your pull request references any of the Gentoo bug reports, please add appropriate GLEP 66 tags to the commit message and request reassignment.

New packages

This Pull Request appears to be introducing new packages only. Due to limited manpower, adding new packages is considered low priority. This does not mean that your Pull Request will not receive any attention, however, it might take quite some time for it to be reviewed. In the meantime, your new ebuild might find a home in the GURU project repository: the ebuild repository maintained collaboratively by Gentoo users. GURU offers your ebuild a place to be reviewed and improved by other Gentoo users, while making it easy for Gentoo users to install it and enjoy the software it adds.


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added new package The PR is adding a new package. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else) assigned PR successfully assigned to the package maintainer(s). labels Apr 12, 2021
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-04-12 13:40 UTC
Newest commit scanned: 21f1905
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/815a3c27e4/output.html

@@ -0,0 +1 @@
DIST parallel-1.1.4.tgz 58783 BLAKE2B 942c767ff4838c13e70829d6ac6599cee3185afaf71e9dc430064835102d31a3e50b99694e1632be652c6a019934a13ba0f5139041bba39d486a20615478b910 SHA512 6693f01b0d43de5153aa0953f90580717e519cfbe8ca5b0ba6abd9cc681e0efe9d7c6fcc601da98f74b570b5810dffdbf5100bedc8ab86c1f4bc61d48955ae77
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an easy way to rename this as ${PN}? I'd really prefer that. Rest looks good, as always...

Copy link
Contributor Author

@jkroonza jkroonza Apr 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see why ... doesn't look like there is a simple way no, this is as per the php-ext-pecl-r3 eclass.

So fortunately it doesn't look like there are any probable collisions in the tree (dev-ruby/parallel uses .tar.gz not .tgz and sys-process/parallel uses .tar.bz2). Confusing yes ...

Perhaps we should consider updating the eclass to rename on download?

51 if [[ -z "${PHP_EXT_PECL_FILENAME}" ]] ; then
52     SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz"
53 else
54     SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_FILENAME}"
55 fi

-> ${P}.tgz and -> ${P}.${PHP_EXT_PECL_FILENAME##*.} respectively? Although, the latter would need more care for double extensions such as .tar.${comp}

Alternatively a PHP_EXT_PECL_DOWNLOADED_FILENAME which if not set we default to ${P}.tgz if PHP_EXT_PECL_FILENAME is not set, or ${P}.${detected_ext} ... where detected_ext is tar.${PHP_EXT_PECL_FILENAME##*.} or simply ${PHP_EXT_PECL_FILENAME##*.} ... but this gets nasty no matter how you look at it.

dev-php/pecl-parallel/pecl-parallel-1.1.4.ebuild Outdated Show resolved Hide resolved
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-04-14 09:40 UTC
Newest commit scanned: 69474e3
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/f6d12a7d5e/output.html

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-04-14 10:40 UTC
Newest commit scanned: 7408894
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/18d3dd1f1c/output.html

Copy link
Member

@juippis juippis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't compile for me with +php_targets_php8-0, could you try?

[ERROR] >>> Not all runs were successful.
atom: =dev-php/pecl-parallel-1.1.4, USE flags: 'php_targets_php7-3 php_targets_php7-4 php_targets_php8-0'
atom: =dev-php/pecl-parallel-1.1.4, USE flags: '-php_targets_php7-3 php_targets_php7-4 php_targets_php8-0'
atom: =dev-php/pecl-parallel-1.1.4, USE flags: 'php_targets_php7-3 -php_targets_php7-4 php_targets_php8-0'
atom: =dev-php/pecl-parallel-1.1.4, USE flags: '-php_targets_php7-3 -php_targets_php7-4 php_targets_php8-0'
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/channel.c:386:34: error: 'zend_object_handlers' {aka 'struct _zend_object_handlers'} has no member named 'compare_objects'
  386 |     php_parallel_channel_handlers.compare_objects = php_parallel_channel_compare;
      |                                  ^
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/check.c:129:85: warning: implicit declaration of function 'ZEND_TYPE_IS_CLASS'; did you mean 'ZEND_TYPE_HAS_CLASS'? [-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
  129 |     if (ZEND_TYPE_IS_SET(it->type) && (ZEND_TYPE_CODE(it->type) == IS_OBJECT || ZEND_TYPE_IS_CLASS(it->type))) {
      |                                                                                 ^~~~~~~~~~~~~~~~~~
      |                                                                                 ZEND_TYPE_HAS_CLASS
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/check.c:139:15: error: 'zend_arg_info' {aka 'struct _zend_arg_info'} has no member named 'pass_by_reference'
  139 |         if (it->pass_by_reference) {
      |               ^~
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/check.c:165:15: error: 'zend_arg_info' {aka 'struct _zend_arg_info'} has no member named 'pass_by_reference'
  165 |         if (it->pass_by_reference) {
      |               ^~
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/cache.c:276:30: warning: implicit declaration of function 'ZEND_TYPE_ENCODE_CLASS'; did you mean 'ZEND_TYPE_INIT_CLASS'? [-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
  276 |                 info->type = ZEND_TYPE_ENCODE_CLASS(name, nulls);
      |                              ^~~~~~~~~~~~~~~~~~~~~~
      |                              ZEND_TYPE_INIT_CLASS
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/cache.c:276:30: error: incompatible types when assigning to type 'zend_type' from type 'int'
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/check.c: In function 'php_parallel_check_class_inline':
/var/tmp/portage/dev-php/pecl-parallel-1.1.4/work/php8.0/src/check.c:538:13: warning: implicit declaration of function 'ZEND_TYPE_IS_CE'; did you mean 'ZEND_TYPE_IS_SET'? [-Wimplicit-function-declaration[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration]]
  538 |         if (ZEND_TYPE_IS_CE(info->type)) {
      |             ^~~~~~~~~~~~~~~
      |             ZEND_TYPE_IS_SET
make: *** [Makefile:230: src/channel.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:228: src/cache.lo] Error 1
make: *** [Makefile:224: src/check.lo] Error 1
 * ERROR: dev-php/pecl-parallel-1.1.4::gentoo failed (compile phase):
 *   emake failed


inherit php-ext-pecl-r3

SRC_URI="${SRC_URI} -> ${P}.tgz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly what I had in mind, but hey, if it works it's fine.

(I'd just replicated the eclass line,
SRC_URI="https://pecl.php.net/get/${PHP_EXT_NAME}-${PV/_/}.tgz"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your call. Or perhaps at least a comment above:

# php-ext-pecl will set SRC_URI to the download URI, so just rename

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-04-14 12:20 UTC
Newest commit scanned: 5c08fd3
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/8ae087b76c/output.html


inherit php-ext-pecl-r3

SRC_URI="${SRC_URI} -> ${P}.tgz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's replicate the eclass URL here.

I doubt the eclass will ever drop or modify that URL, but just in case it does...

@juippis
Copy link
Member

juippis commented Apr 28, 2021

^ well my intention was to do ${PN}-${PV/_/}.tgz and not pecl-${PHP_EXT_NAME}-${PV/_/}.tgz, please update the cosmetic issue when you next touch this package (php-8, vbump, etc) :)

@jkroonza jkroonza deleted the pecl-parallel branch May 6, 2021 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). new package The PR is adding a new package. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else)
Projects
None yet
4 participants