Same issue as @gnaggnoyil, build() fails in a clean chroot. Please find a way to enable iconv during build.
Search Criteria
Package Details: phpunit 10.0.14-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/phpunit.git (read-only, click to copy) |
---|---|
Package Base: | phpunit |
Description: | PHPUnit is a programmer-oriented testing framework for PHP. |
Upstream URL: | https://phpunit.de |
Licenses: | BSD |
Conflicts: | phpunit-bin |
Submitter: | r1pp3rj4ck |
Maintainer: | aragon123 |
Last Packager: | aragon123 |
Votes: | 51 |
Popularity: | 0.015123 |
First Submitted: | 2014-02-20 19:28 (UTC) |
Last Updated: | 2023-03-03 16:27 (UTC) |
Dependencies (4)
- php (php7-meta, php-zts, php-legacy-symlinks, php7-symlinks)
- ant (ant-git) (make)
- composer (composer-git) (make)
- git (git-vfs, git-git, git-run-command-patch-git) (make)
Required by (1)
- nominatim (check)
Sources (2)
xiretza commented on 2023-03-12 17:05 (UTC)
gnaggnoyil commented on 2023-03-07 13:29 (UTC) (edited on 2023-03-07 13:29 (UTC) by gnaggnoyil)
@aragon123 I modified /etc/php/php.ini
so that I have iconv extension loaded and phar.readonly
set to off; I then ran makepkg
and it can be built now. However, the default php.ini
configuration file used in clean chroot build does not have the options mentioned above set as mentioned. Did you suggest that I should set php.ini
file explicitly in a clean chroot too?
aragon123 commented on 2023-03-03 15:24 (UTC)
@gnaggnoyil make sure that you have the iconv.so extension loaded in your /etc/php/php.ini
.
@yan12125 yes I can try, but as the maintainer also did not want to do Github releases, I am not sure if he is willing to add a composer.lock, as this package is mostly used as dependency (I know there is still a debate if in that case a composer.lock should be released as well). Feel free to create an issue in the upstream project :-) Otherwise, when I am willing to discuss, I might create the issue myself in the future, but atm. I have a lot other stuff going on.
gnaggnoyil commented on 2023-03-03 15:03 (UTC)
I met the following error when building this package in a clean chroot:
[php-scoper] 1441/1441 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[copy] Copying 1 file to /build/phpunit/src/phpunit/build/tmp/phar-scoped
[phpab] PHP Fatal error: Uncaught Error: Call to undefined function iconv_substr() in phar:///build/phpunit/src/phpunit/tools/phpab/vendor/zetacomponents/console-tools/src/input.php:605
[phpab] Stack trace:
[phpab] #0 phar:///build/phpunit/src/phpunit/tools/phpab/vendor/zetacomponents/console-tools/src/input.php(538): ezcConsoleInput->processOptions()
[phpab] #1 phar:///build/phpunit/src/phpunit/tools/phpab/phpab/CLI.php(83): ezcConsoleInput->process()
[phpab] #2 /build/phpunit/src/phpunit/tools/phpab(155): TheSeer\Autoload\CLI->run()
[phpab] #3 {main}
[phpab] thrown in phar:///build/phpunit/src/phpunit/tools/phpab/vendor/zetacomponents/console-tools/src/input.php on line 605
BUILD FAILED
/build/phpunit/src/phpunit/build.xml:97: The following error occurred while executing this line:
/build/phpunit/src/phpunit/build.xml:338: exec returned: 255
Total time: 11 seconds
==> ERROR: A failure occurred in build().
Aborting...
Does anyone know what was happening there?
yan12125 commented on 2023-03-01 04:25 (UTC)
Thanks, but maintaining composer.lock on AUR may not be a good idea. Asking upstream to add them is better.
aragon123 commented on 2023-02-25 20:50 (UTC)
This package is now build from the phpunit source. If you want to use the prebuilt phar file, which is released use the binary package: https://aur.archlinux.org/packages/phpunit-bin
aragon123 commented on 2023-02-25 18:22 (UTC)
@yan12125 that is correct, I created the binary version of this package, and will look into this package to be built from source in future (if it is too much work, I will submit a merge request).
yan12125 commented on 2023-02-25 17:09 (UTC)
Probably this package should be called phpunit-bin as well.
aragon123 commented on 2021-04-19 09:48 (UTC)
@jaudriga, you should probably specify a different directory of the result cache: https://phpunit.readthedocs.io/en/9.5/configuration.html#the-cacheresultfile-attribute
Maybe you can also work with some environment variables: https://github.com/sebastianbergmann/phpunit/blob/master/src/Runner/DefaultTestResultCache.php#L59-L67
If you need anything other I currently do not see any other way to set a default, if you know of something please let me know.
jaudriga commented on 2021-04-19 07:50 (UTC)
I am getting a "Permission denied" error when executing phpunit as my normal user. It looks like changing permissions of the /usr/share/webapps/bin
dir could solve the issue, but I am not sure if that is a good idea. Or maybe I am missing some configuration?
$ phpunit --bootstrap tests/bootstrap.php tests/Test.php
PHPUnit 9.5.2 by Sebastian Bergmann and contributors.
... 3 / 3 (100%)PHP Warning: file_put_contents(/usr/share/webapps/bin/.phpunit.result.cache): Failed to open stream: Permission denied in phar:///usr/share/webapps/bin/phpunit.phar/phpunit/Runner/DefaultTestResultCache.php on line 101
Time: 00:00, Memory: 18.00 MB
OK (3 tests, 3 assertions)
Pinned Comments
aragon123 commented on 2023-02-25 20:50 (UTC)
This package is now build from the phpunit source. If you want to use the prebuilt phar file, which is released use the binary package: https://aur.archlinux.org/packages/phpunit-bin