Ticket #1007: packfile.patch

File packfile.patch, 0.8 KB (added by fperrad, 5 years ago)

Just a workaround

  • packfile.c

     
    48034803    /* Add the include and dynext paths to the global search */ 
    48044804    parrot_split_path_ext(interp, path, &found_path, &found_ext); 
    48054805    name_length = Parrot_str_length(interp, lang_name); 
    4806     found_path = Parrot_str_substr(interp, found_path, -name_length, name_length, NULL, 0); 
     4806    found_path = Parrot_str_substr(interp, found_path, 0, Parrot_str_length(interp, found_path)-name_length, NULL, 0); 
    48074807    Parrot_lib_add_path(interp, Parrot_str_append(interp, found_path, CONST_STRING(interp, "include/")), 
    48084808            PARROT_LIB_PATH_INCLUDE); 
    48094809    Parrot_lib_add_path(interp, Parrot_str_append(interp, found_path, CONST_STRING(interp, "dynext/")),