Hello Rennes, I am sorry for the long delay, I somehow missed the patch. Leo thank you for telling me.
On 06/18/16 22:02, ren...@openmailbox.org wrote: > Hello Guix team, > > i'm doing tests whith GNU Guix on GNU Hurd, compiling fontconfig and > there is an error during compilation: Once again thank you :-) > > a) fontconfig uses the constant PATH_MAX. > > Reviewing the documentation about the treatment of constant for Hurd; > i've attached a patch for review. > > References: > https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html > https://www.gnu.org/software/hurd/hurd/porting/guidelines.html > > and i've a couple of questions about: > > a) How Guix identify if it is a Linux or Hurd system at compile or > install the package?. > b) i searches in ML an example, but i not found. Currently we apply patches regardless of where it is running. But one way to check the system is like in (gnu packages base) (define* (glibc-for-target #:optional (target (or (%current-target-system) (%current-system)))) "Return the glibc for TARGET, GLIBC/LINUX for a Linux host or GLIBC/HURD for a Hurd host" (match target ((or "i586-pc-gnu" "i586-gnu") glibc/hurd) (_ glibc/linux))) If %current-target-system is not #f then we are cross-building for the value inside it. %current-system has the value of the system we are running on. Now regarding the patch, what is the status on upstream? Are those fontconfig patches present in fontconfig upstream? Other than that, it looks good to me. Thank you for helping on this, Manolis.