[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#955351: mesa: FTBFS on hurd-i386



Source: mesa
Version: 20.0.2-1
Severity: important
Tags: ftbfs, patch
User: debian-hurd@lists.debian.org
Usertags: hurd

Hello,

Currently mesa FTBFS on GNU/Hurd due to a new PATH_MAX issue. Version 
18.3.6-2 built successfully earlier. The attached patch path_max.diff
fixes that problem. Also, the symbols file for libglx-mesa0 is
mismatched, and an architecture-specific file for Hurd, libglx-
mesa0.symbols.hurd, is attached.

Thanks!
libGLX_mesa.so.0 libglx-mesa0
 __glx_Main@Base 17.0.0~
 glAreTexturesResidentEXT@Base 0
 glDeleteTexturesEXT@Base 0
 glGenTexturesEXT@Base 0
 glIsTextureEXT@Base 0
--- a/src/compiler/glsl/tests/cache_test.c	2020-03-18 22:24:18.000000000 +0100
+++ b/src/compiler/glsl/tests/cache_test.c	2020-03-30 12:09:05.000000000 +0200
@@ -132,8 +132,8 @@
 {
    bool sub_dirs_created = false;
 
-   char buf[PATH_MAX];
-   if (getcwd(buf, PATH_MAX)) {
+   char *buf = getcwd(NULL, 0);
+   if (buf) {
       char *full_path = NULL;
       if (asprintf(&full_path, "%s%s", buf, ++cache_dir) != -1 ) {
          struct stat sb;
@@ -142,6 +142,7 @@
 
          free(full_path);
       }
+      free(buf);
    }
 
    expect_true(sub_dirs_created, "create sub dirs");

Reply to: