[MacPorts] #62063: mesa @19.0.8_0+osmesa+python27 patch failure on 10.6

MacPorts noreply at macports.org
Sat Jan 23 18:34:57 UTC 2021


#62063: mesa @19.0.8_0+osmesa+python27 patch failure on 10.6
-----------------------+-------------------------------
  Reporter:  rmottola  |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  patch snowleopard
      Port:  mesa      |
-----------------------+-------------------------------

Comment (by ballapete):

 The file `src/mesa/drivers/dri/common/xmlconfig.c` has gone, so static-
 strndup.patch could become smaller – but there are a few files that use
 `strndup()`:

 {{{
 mesa-19.0.8/src/amd/common/ac_binary.c:
 binary->disasm_string = strndup(section_data->d_buf,
 mesa-19.0.8/src/compiler/spirv/spirv_to_nir.c:   char *dup =
 ralloc_strndup(b, (char *)words, word_count * sizeof(*words));
 mesa-19.0.8/src/egl/drivers/dri2/platform_x11.c:
 strndup(driver_name,
 mesa-19.0.8/src/egl/drivers/dri2/platform_x11.c:      strndup(device_name,
 mesa-19.0.8/src/gallium/drivers/r600/evergreen_compute.c:
 binary->disasm_string = strndup(section_data->d_buf,
 mesa-19.0.8/src/gallium/drivers/radeonsi/si_debug.c:            p = copy =
 strndup(p, semicolon - p);
 mesa-19.0.8/src/loader/loader.c:   driver = strndup(version->name,
 version->name_len);
 mesa-19.0.8/src/util/ralloc.c:ralloc_strndup(const void *ctx, const char
 *str, size_t max)
 mesa-19.0.8/src/util/ralloc.h: * Like \c strndup, at most \p n characters
 are copied.  If \p str is longer
 mesa-19.0.8/src/util/ralloc.h:char *ralloc_strndup(const void *ctx, const
 char *str, size_t n) MALLOCLIKE;
 mesa-19.0.8/src/util/strndup.h:strndup(const char *str, size_t max)
 mesa-19.0.8/src/util/xmlconfig.c:        v->_string = strndup(string,
 STRING_CONF_MAXLEN);
 }}}

 The last one could be the new version of
 `src/mesa/drivers/dri/common/xmlconfig.c`… (Anyway, I am going to wait for
 a solution.)

-- 
Ticket URL: <https://trac.macports.org/ticket/62063#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list