* bug#72962: php-8.3.10 build failure
@ 2024-09-02 11:04 Marek Paśnikowski via Bug reports for GNU Guix
2024-09-02 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Marek Paśnikowski via Bug reports for GNU Guix @ 2024-09-02 11:04 UTC (permalink / raw)
To: 72962
Good morning or afternoon.
I am not able to update my system due to the following build failure:
standard output context
~
The following derivations will be built:
/gnu/store/m7jd9csjwb8yvznassm2mgkx8nyx9m0q-easyeffects-7.1.7.drv
/gnu/store/1gr6a27wls2xlykjqkgy51pxv8c5hfmi-lsp-plugins-1.2.15.drv
/gnu/store/gxjs8dzg8gmif2gj1ybkxxzv623qpq4q-php-8.3.10.drv
~
build log context
~
configure: error: Package requirements (gdlib >= 2.1.0) were not met:
Package 'freetype2', required by 'gdlib', not found
~
I checked with the source code of (gnu packages php) — freetype does not
exist in the file.
I apologize for not posting a patch, but I am still wrapping my head
around concepts more fundamental than patch submission. For example, I
think it is a good idea to Cc the PHP team here, but failed to find
documentation on how to identify the team’s email address.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#72962: php-8.3.10 build failure
2024-09-02 11:04 bug#72962: php-8.3.10 build failure Marek Paśnikowski via Bug reports for GNU Guix
@ 2024-09-02 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2024-09-02 17:27 ` [bug#72962] " Rutherther via Guix-patches via
2024-09-11 3:29 ` Nathan Dehnel
2 siblings, 0 replies; 8+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2024-09-02 11:48 UTC (permalink / raw)
To: Marek Paśnikowski; +Cc: control, 72962
merge 72943 72962
thanks
^ bot commands
Hi Marek,
> I apologize for not posting a patch, but I am still wrapping my head
> around concepts more fundamental than patch submission.
Good news! I've merged this issue with the likely cause and a possible
fix.
> For example, I
> think it is a good idea to Cc the PHP team here, but failed to find
> documentation on how to identify the team’s email address.
Teams don't have addresses/aliases, so you could have kept looking.
The teams are defined[0] in the Guix git repository, to facilitate
automation[1] integrated with ‘git send-email’, and to keep one
consistent source of truth.
If those examples look too complicated, ignore them, and just manually
look up your favourite team members :-)
Kind regards,
T G-R
Sent from a Web browser. Excuse or enjoy my brevity.
[0]: https://git.savannah.gnu.org/cgit/guix.git/tree/etc/teams.scm
[1]: https://guix.gnu.org/manual/devel/en/html_node/Teams.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72962] php-8.3.10 build failure
2024-09-02 11:04 bug#72962: php-8.3.10 build failure Marek Paśnikowski via Bug reports for GNU Guix
2024-09-02 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2024-09-02 17:27 ` Rutherther via Guix-patches via
2024-09-11 3:29 ` Nathan Dehnel
2 siblings, 0 replies; 8+ messages in thread
From: Rutherther via Guix-patches via @ 2024-09-02 17:27 UTC (permalink / raw)
To: 72962; +Cc: Tobias Geerinckx-Rice
Hello everyone,
note that the linked issue solves this only partially.
It fixes gd itself, but then there are still three
failing tests in php.
I suggest this as current workaround locally:
---
(use-modules
(guix packages)
(gnu packages gd)
(gnu packages php))
(define gd-fixed
(package/inherit gd
(name "gd-fixed")
(propagated-inputs
(package-inputs gd))))
(define php
(package/inherit php
(inputs (modify-inputs (package-inputs php)
(replace "gd" gd-fixed)))))
php
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72962] php-8.3.10 build failure
2024-09-02 11:04 bug#72962: php-8.3.10 build failure Marek Paśnikowski via Bug reports for GNU Guix
2024-09-02 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2024-09-02 17:27 ` [bug#72962] " Rutherther via Guix-patches via
@ 2024-09-11 3:29 ` Nathan Dehnel
2 siblings, 0 replies; 8+ messages in thread
From: Nathan Dehnel @ 2024-09-11 3:29 UTC (permalink / raw)
To: 72962
ping
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72943] [PATCH] gnu: gd: Requires.private to propagated inputs
@ 2024-09-03 0:19 Carlo Zancanaro
2024-09-03 1:54 ` [bug#72943] [PATCH 2/2] gnu: php: Disable tests relating to BICUBIC interpolation Carlo Zancanaro
0 siblings, 1 reply; 8+ messages in thread
From: Carlo Zancanaro @ 2024-09-03 0:19 UTC (permalink / raw)
To: Rutherther; +Cc: Tobias Geerinckx-Rice, 72943
On Mon, Sep 02 2024, Rutherther via Guix-patches via wrote:
> It seems much better to me to not use propagated-inputs whenever possible,
> so I prefer your solution to this one. However, I do wonder about this: other packages that
> have Requires.private do provide the libraries in these as propagated-inputs. Also
> the cookbook shows to do this with such libraries. What is the correct approach here
> then? Maybe every package that has Requires.private could be patched like this, possibly
> somehow automatically instead of manual patches?
Ah, I didn't look into it, so I didn't know that other packages in the
same situation just propagate their inputs. If that's more consistent
with the rest of Guix's packages then it would probably be better to do
that than restoring the patch.
> I am quite new here, this is my first patch. So I am not really sure how to go about this.
> Will you open a new issue with your patch, and maintainers will decide patch from which
> issue to use? Or is it enough it's in this issue?
I wasn't planning to open a new issue. Ideally I think we would agree on
which change is more appropriate, then someone with commit access would
apply it.
If this problem is solved elsewhere in Guix with propagated-inputs, then
I think your change is a better idea than mine.
This still leaves the issue of the failing tests, though. I investigated
a bit and looking at [1] and [2], I believe the issue is that our
version of libgd doesn't support the BICUBIC interpolation method.
I'm rebuilding PHP now with those tests removed. I'll send through some
patches soon.
Carlo
[1]: https://github.com/php/php-src/issues/11252
[2]: https://github.com/libgd/libgd/issues/847
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72943] [PATCH 2/2] gnu: php: Disable tests relating to BICUBIC interpolation.
2024-09-03 0:19 [bug#72943] [PATCH] gnu: gd: Requires.private to propagated inputs Carlo Zancanaro
@ 2024-09-03 1:54 ` Carlo Zancanaro
2024-09-04 6:50 ` [bug#72962] php-8.3.10 build failure guix-patches--- via
0 siblings, 1 reply; 8+ messages in thread
From: Carlo Zancanaro @ 2024-09-03 1:54 UTC (permalink / raw)
To: 72943; +Cc: Rutherther
* gnu/packages/php.scm (php)[arguments]: Delete three tests that are known to
fail.
Change-Id: Ib684328654c75f37111d252fb0f9fb3356daff9a
---
gnu/packages/php.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/php.scm b/gnu/packages/php.scm
index 8f879dbdca..ce7458d0e5 100644
--- a/gnu/packages/php.scm
+++ b/gnu/packages/php.scm
@@ -253,6 +253,13 @@ (define-public php
;; AVIF support disabled
"ext/gd/tests/imagecreatefromstring_avif.phpt"
+ ;; These tests fail due to issues in upstream gd
+ ;; 2.3.3 around BICUBIC interpolation. See
+ ;; https://github.com/libgd/libgd/issues/847
+ "ext/gd/tests/bug79676.phpt"
+ "ext/gd/tests/imageinterpolation_basic.phpt"
+ "ext/gd/tests/imagescale_preserve_ratio.phpt"
+
;; XXX: These test failures appear legitimate, needs investigation.
;; open_basedir() restriction failure.
"ext/curl/tests/curl_setopt_ssl.phpt"
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#72962] php-8.3.10 build failure
2024-09-03 1:54 ` [bug#72943] [PATCH 2/2] gnu: php: Disable tests relating to BICUBIC interpolation Carlo Zancanaro
@ 2024-09-04 6:50 ` guix-patches--- via
2024-09-04 7:27 ` [bug#72943] bug#72962: " Carlo Zancanaro
0 siblings, 1 reply; 8+ messages in thread
From: guix-patches--- via @ 2024-09-04 6:50 UTC (permalink / raw)
To: Carlo Zancanaro; +Cc: Rutherther, 72962, 72943
Carlo Zancanaro <carlo@zancanaro.id.au> writes:
> * gnu/packages/php.scm (php)[arguments]: Delete three tests that are known to
> fail.
>
This is my first time composing a patch review — I am not sure if I am
doing it correctly.
I attempted to build php with the following command:
=
guix build php --with-patch=gd=patch-1.txt --with-patch=php=patch-2.txt
=
The text files are files saved by using the “download” option of the web
interface of Guix Issues. My understanding is that the patch to gd
applies cleanly, but the patch to php does not:
=
source is at 'php-8.3.10'
applying '/gnu/store/f2zxspb49cbcmcla3mbjrikl48kmbf52-patch-2.txt'...
can't find file to patch at input line 13
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|* gnu/packages/php.scm (php)[arguments]: Delete three tests that are known to
|fail.
|
|Change-Id: Ib684328654c75f37111d252fb0f9fb3356daff9a
|---
| gnu/packages/php.scm | 7 +++++++
| 1 file changed, 7 insertions(+)
|
|diff --git a/gnu/packages/php.scm b/gnu/packages/php.scm
|index 8f879dbdca..ce7458d0e5 100644
|--- a/gnu/packages/php.scm
|+++ b/gnu/packages/php.scm
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
patch unexpectedly ends in middle of line
=
Is this helpful?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72943] bug#72962: php-8.3.10 build failure
2024-09-04 6:50 ` [bug#72962] php-8.3.10 build failure guix-patches--- via
@ 2024-09-04 7:27 ` Carlo Zancanaro
2024-09-04 7:43 ` [bug#72962] " guix-patches--- via
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Carlo Zancanaro @ 2024-09-04 7:27 UTC (permalink / raw)
To: Marek Paśnikowski; +Cc: Rutherther, 72943
Hi Marek!
On Wed, Sep 04 2024, Marek Paśnikowski wrote:
> This is my first time composing a patch review — I am not sure if I am
> doing it correctly.
Thanks for taking a look at my patch!
> I attempted to build php with the following command:
> =
> guix build php --with-patch=gd=patch-1.txt --with-patch=php=patch-2.txt
> =
I don't expect this command to work. The --with-patch argument expects
to apply the patch to the source of the package, whereas the patches I
have prepared should be applied on a checkout of the Guix git repository
(which you can clone from https://git.savannah.gnu.org/git/guix.git).
You should be able to apply them in a fresh clone of the repository with
"git am $patch-name". To build, you can follow the instructions in the
manual "(guix) Building from Git". After that, you can build PHP with
these patches with "./pre-inst-env guix build php".
This can take a bit of time, but things are easier once you're set up
with a working Guix clone.
Carlo
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72962] php-8.3.10 build failure
2024-09-04 7:27 ` [bug#72943] bug#72962: " Carlo Zancanaro
@ 2024-09-04 7:43 ` guix-patches--- via
2024-09-04 7:59 ` guix-patches--- via
2024-09-04 10:32 ` guix-patches--- via
2 siblings, 0 replies; 8+ messages in thread
From: guix-patches--- via @ 2024-09-04 7:43 UTC (permalink / raw)
To: Carlo Zancanaro; +Cc: Rutherther, 72962, 72943
Carlo Zancanaro <carlo@zancanaro.id.au> writes:
>> I attempted to build php with the following command:
>> =
>> guix build php --with-patch=gd=patch-1.txt --with-patch=php=patch-2.txt
>> =
>
> You should be able to apply them in a fresh clone of the repository with
> "git am $patch-name". To build, you can follow the instructions in the
> manual "(guix) Building from Git". After that, you can build PHP with
> these patches with "./pre-inst-env guix build php".
>
I had a guix clone from previous attempts to patch things, so I
proceeded to apply the patches. Patch 1 returned a message along the
lines (translation) of "apply: * gnu/packages/gd.scm (gd): Change inputs
to propagated-inputs". However,
=
LC_ALL=C git am ../Downloads/patch-2.txt
Patch format detection failed.
=
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72962] php-8.3.10 build failure
2024-09-04 7:27 ` [bug#72943] bug#72962: " Carlo Zancanaro
2024-09-04 7:43 ` [bug#72962] " guix-patches--- via
@ 2024-09-04 7:59 ` guix-patches--- via
2024-09-04 10:32 ` guix-patches--- via
2 siblings, 0 replies; 8+ messages in thread
From: guix-patches--- via @ 2024-09-04 7:59 UTC (permalink / raw)
To: Carlo Zancanaro; +Cc: Rutherther, 72962, 72943
Upon further inspection, I noticed the second patch is missing the
From: <email> header. I copied it from the first patch and it applied.
The build is now in progress on my slow laptop, so I am sending this
report immediately.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72962] php-8.3.10 build failure
2024-09-04 7:27 ` [bug#72943] bug#72962: " Carlo Zancanaro
2024-09-04 7:43 ` [bug#72962] " guix-patches--- via
2024-09-04 7:59 ` guix-patches--- via
@ 2024-09-04 10:32 ` guix-patches--- via
2 siblings, 0 replies; 8+ messages in thread
From: guix-patches--- via @ 2024-09-04 10:32 UTC (permalink / raw)
To: Carlo Zancanaro; +Cc: Rutherther, 72962, 72943
The build completed and passed all the tests.
Is this the right moment to say reviewed-looks-good? Would I do it by
writing the usertag followed by thanks in the beginning of the message?
Or am I confusing concepts?
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-09-11 3:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-02 11:04 bug#72962: php-8.3.10 build failure Marek Paśnikowski via Bug reports for GNU Guix
2024-09-02 11:48 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2024-09-02 17:27 ` [bug#72962] " Rutherther via Guix-patches via
2024-09-11 3:29 ` Nathan Dehnel
-- strict thread matches above, loose matches on Subject: below --
2024-09-03 0:19 [bug#72943] [PATCH] gnu: gd: Requires.private to propagated inputs Carlo Zancanaro
2024-09-03 1:54 ` [bug#72943] [PATCH 2/2] gnu: php: Disable tests relating to BICUBIC interpolation Carlo Zancanaro
2024-09-04 6:50 ` [bug#72962] php-8.3.10 build failure guix-patches--- via
2024-09-04 7:27 ` [bug#72943] bug#72962: " Carlo Zancanaro
2024-09-04 7:43 ` [bug#72962] " guix-patches--- via
2024-09-04 7:59 ` guix-patches--- via
2024-09-04 10:32 ` guix-patches--- via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.