GNU bug report logs - #72962
php-8.3.10 build failure

Previous Next

Package: guix-patches;

Reported by: Marek Paśnikowski <marek <at> marekpasnikowski.pl>

Date: Mon, 2 Sep 2024 11:39:03 UTC

Severity: normal

Tags: patch

Merged with 72940, 72943

To reply to this bug, email your comments to 72962 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#72962; Package guix. (Mon, 02 Sep 2024 11:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marek Paśnikowski <marek <at> marekpasnikowski.pl>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 02 Sep 2024 11:39:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marek Paśnikowski <marek <at> marekpasnikowski.pl>
To: bug-guix <at> gnu.org
Subject: php-8.3.10 build failure
Date: Mon, 02 Sep 2024 13:04:37 +0200
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.




Information forwarded to bug-guix <at> gnu.org:
bug#72962; Package guix. (Mon, 02 Sep 2024 11:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 72962 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Marek Paśnikowski <marek <at> marekpasnikowski.pl>
Cc: control <at> debbugs.gnu.org, 72962 <at> debbugs.gnu.org
Subject: Re: bug#72962: php-8.3.10 build failure
Date: Mon, 02 Sep 2024 13:48:03 +0200
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




bug reassigned from package 'guix' to 'guix-patches'. Request was from Tobias Geerinckx-Rice <me <at> tobias.gr> to control <at> debbugs.gnu.org. (Mon, 02 Sep 2024 11:55:02 GMT) Full text and rfc822 format available.

Merged 72940 72943 72962. Request was from Tobias Geerinckx-Rice <me <at> tobias.gr> to control <at> debbugs.gnu.org. (Mon, 02 Sep 2024 11:55:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#72962; Package guix-patches. (Mon, 02 Sep 2024 21:56:02 GMT) Full text and rfc822 format available.

Message #15 received at 72962 <at> debbugs.gnu.org (full text, mbox):

From: Rutherther <rutherther <at> protonmail.com>
To: 72962 <at> debbugs.gnu.org
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: php-8.3.10 build failure
Date: Mon, 02 Sep 2024 17:27:59 +0000
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






Information forwarded to guix-patches <at> gnu.org:
bug#72962; Package guix-patches. (Wed, 04 Sep 2024 07:25:03 GMT) Full text and rfc822 format available.

Message #18 received at 72962 <at> debbugs.gnu.org (full text, mbox):

From: Marek Paśnikowski <marek <at> marekpasnikowski.pl>
To: Carlo Zancanaro <carlo <at> zancanaro.id.au>
Cc: Rutherther <rutherther <at> protonmail.com>, 72962 <at> debbugs.gnu.org,
 72943 <at> debbugs.gnu.org
Subject: Re: bug#72962: php-8.3.10 build failure
Date: Wed, 04 Sep 2024 08:50:39 +0200
Carlo Zancanaro <carlo <at> 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?




Information forwarded to guix-patches <at> gnu.org:
bug#72962; Package guix-patches. (Wed, 04 Sep 2024 12:33:04 GMT) Full text and rfc822 format available.

Message #21 received at 72962 <at> debbugs.gnu.org (full text, mbox):

From: Marek Paśnikowski <marek <at> marekpasnikowski.pl>
To: Carlo Zancanaro <carlo <at> zancanaro.id.au>
Cc: Rutherther <rutherther <at> protonmail.com>, 72962 <at> debbugs.gnu.org,
 72943 <at> debbugs.gnu.org
Subject: Re: bug#72962: php-8.3.10 build failure
Date: Wed, 04 Sep 2024 09:43:45 +0200
Carlo Zancanaro <carlo <at> 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.
=




Information forwarded to guix-patches <at> gnu.org:
bug#72962; Package guix-patches. (Wed, 04 Sep 2024 12:33:04 GMT) Full text and rfc822 format available.

Message #24 received at 72962 <at> debbugs.gnu.org (full text, mbox):

From: Marek Paśnikowski <marek <at> marekpasnikowski.pl>
To: Carlo Zancanaro <carlo <at> zancanaro.id.au>
Cc: Rutherther <rutherther <at> protonmail.com>, 72962 <at> debbugs.gnu.org,
 72943 <at> debbugs.gnu.org
Subject: Re: bug#72962: php-8.3.10 build failure
Date: Wed, 04 Sep 2024 09:59:28 +0200
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.




Information forwarded to guix-patches <at> gnu.org:
bug#72962; Package guix-patches. (Wed, 04 Sep 2024 12:33:05 GMT) Full text and rfc822 format available.

Message #27 received at 72962 <at> debbugs.gnu.org (full text, mbox):

From: Marek Paśnikowski <marek <at> marekpasnikowski.pl>
To: Carlo Zancanaro <carlo <at> zancanaro.id.au>
Cc: Rutherther <rutherther <at> protonmail.com>, 72962 <at> debbugs.gnu.org,
 72943 <at> debbugs.gnu.org
Subject: Re: bug#72962: php-8.3.10 build failure
Date: Wed, 04 Sep 2024 12:32:28 +0200
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?




Information forwarded to guix-patches <at> gnu.org:
bug#72962; Package guix-patches. (Wed, 11 Sep 2024 03:32:01 GMT) Full text and rfc822 format available.

Message #30 received at 72962 <at> debbugs.gnu.org (full text, mbox):

From: Nathan Dehnel <ncdehnel <at> gmail.com>
To: 72962 <at> debbugs.gnu.org
Subject: php-8.3.10 build failure
Date: Tue, 10 Sep 2024 22:29:39 -0500
ping




This bug report was last modified 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.