| 2 Jun 2023 |
Pol | Someone has a clue for this thing? | 08:19:07 |
Pol | installPhase = ''
runHook preInstall
wrapProgram "$out/bin/phpdoc" \
--suffix APP_CACHE_DIR : /tmp \
--suffix APP_LOG_DIR : /tmp/log
runHook postInstall
'';
In this installPhase, I'm trying to let user customize APP_CACHE_DIR and APP_LOG_DIR. When I run the program as such: APP_CACHE_DIR=./abc APP_LOG_DIR=./abc ./result/bin/phpdoc, a directory: abc: (hence the semicolon) is created. I tried to tweak the wrapProgram call but I can't find a valid and working solution. What am I doing wrong here?
| 08:19:09 |
Pol | got the solution! | 08:25:43 |
Pol | We have to use --set-default | 08:25:49 |
Pol | tgerbet: Fixed upstream: https://github.com/phpDocumentor/phpDocumentor/pull/3518 | 12:17:09 |
tgerbet | Noice | 12:17:40 |
| 6 Jun 2023 |
Pol | Hey all, I would like to push further this PR: https://github.com/NixOS/nixpkgs/pull/225401 There is one part where some help would be very welcome. Basically the core of this builder is baed on a Composer Plugin. It is used at the same time while building the local Composer repository and while doing the composer install. I would like to reduce the coupling between those two processes. Basically, "Composer With Local Composer Plugin" is built in the outer process and then it is passed as argument to the inner process (the one building the composer repository). Having that plugin enabled is mandatory to get this whole thing working. So, I'm looking for a way to have some kind of generic derivation for composer when I could 2 things to it: a COMPOSER_HOME variable and a composer derivation.
Apparently, adding a composerHome parameter to the current composer derivation is not the best pattern. So, I'm looking for some help on how to achieve this in a better way.
Do you have ideas?
| 06:59:32 |
| 8 Jun 2023 |
Pol | ramsey: I'm trying to introduce PHP 8.3 in Nix, but it seems that some tests are failing. To whom should I report the issue ? | 18:58:59 |
Pol | ramsey: You can see the compilation logs here: https://logs.ofborg.org/?key=nixos/nixpkgs.236481&attempt_id=3fa301d1-edba-47aa-87a6-07ac1fee3178 | 18:59:21 |
| 9 Jun 2023 |
@etu:failar.nu | ramsey: We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort :) | 10:49:35 |
@etu:failar.nu | * Pol: : We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort :) | 10:49:44 |
@etu:failar.nu | * Pol: We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort :) | 10:49:49 |
@etu:failar.nu | We should also consider switching to 8.2 as default PHP asap 🙂 | 10:50:07 |
Pol | Ok that's an option. | 10:50:10 |
Pol | But I think here it's another issue. | 10:50:17 |
@etu:failar.nu | * Pol: We've chosen to ignore tests for specific extensions on specific versions in the past, that's always an option but also a bit of a last resort 🙂 | 10:50:20 |
Pol | See: https://github.com/php/php-src/issues/11408 | 10:50:38 |
Pol | Especially the log | 10:50:42 |
Pol |
php-fileinfo> Warning: PHP Startup: Invalid library (maybe not a PHP library) 'fileinfo.so' in Unknown on line 0
| 10:51:00 |
Pol | And given the amount of failures, I doubt that the issues comes from a bad tests... I guess it comes from somewhere else. | 11:06:45 |
Jan Tojnar | In reply to @drupol:matrix.org See: https://github.com/php/php-src/issues/11408 that sounds pretty NixOS specific, probably too early to report it upstream. | 15:21:15 |
Jan Tojnar | Try building with --keep-failed and look at what the file actually is | 15:21:33 |
Pol | I'm back. | 19:34:53 |
Pol | Jan Tojnar: I've checked the fileinfo.so file and added the info in the issue. | 19:35:40 |
Pol | TBH, I don't know what I'm looking for yet. | 19:35:51 |
Jan Tojnar | In reply to @drupol:matrix.org TBH, I don't know what I'm looking for yet. looks okay to me, I guess time to bisect | 19:43:30 |
Pol | bisect... ? PHP ? | 19:43:43 |
Pol | Curious to see how you do that | 19:44:10 |
Jan Tojnar | you can set src of the Nix package to the path to your local php-src checkout | 19:44:59 |
Jan Tojnar | and then run git bisect run nix-build ~/Projects/nixpkgs -A php | 19:45:25 |