GNU bug report logs - #72943
[PATCH] gnu: gd: Requires.private to propagated inputs

Previous Next

Package: guix-patches;

Reported by: Rutherther <rutherther <at> protonmail.com>

Date: Sun, 1 Sep 2024 21:48:05 UTC

Severity: normal

Tags: patch

Merged with 72940, 72962

Full log


View this message in rfc822 format

From: Rutherther <rutherther <at> protonmail.com>
To: 72943 <at> debbugs.gnu.org
Cc: Rutherther <rutherther <at> protonmail.com>
Subject: [bug#72943] [PATCH] gnu: gd: Requires.private to propagated inputs
Date: Sun, 01 Sep 2024 19:11:44 +0000
The package gd provides a pkg-config file with all
its inputs in Requires.private. I think that this means that packages that depend
on gd also need these as inputs to build. This is causing trouble for example in php,
failing in configure phase with
```
checking for gdlib >= 2.1.0... no
configure: error: Package requirements (gdlib >= 2.1.0) were not met:

Package 'freetype2', required by 'gdlib', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
```

After this, php is able to configure, though it still fails in the check
phase, where 3 tests fail. These tests are related to gd, so there seems
to be other problem as well, but I see also other tests for gd disabled,
so maybe it will be fine also disabling these three to fix this, I am not sure.
---
 gnu/packages/gd.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/gd.scm b/gnu/packages/gd.scm
index 98d34cfa71..7ced0774bd 100644
--- a/gnu/packages/gd.scm
+++ b/gnu/packages/gd.scm
@@ -85,7 +85,7 @@ (define-public gd
                                          "\\.la$")))))))
     (native-inputs
      (list pkg-config))
-    (inputs
+    (propagated-inputs
      (list fontconfig
            freetype
            libjpeg-turbo
-- 
2.45.2






This bug report was last modified 285 days ago.

Previous Next


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