2007-02-21 Tollef Fog Heen <tfheen@err.no>
+ * parse.c (parse_package_file and others): Move the reversal of
+ the _libs lists to the end to avoid double-reversing either.
+ Thanks to J. Scott Berg for both the bug and the fix. Freedesktop
+ #9132
+
* configure.in: remove AC_CONFIG_AUX_DIR as it makes newer
automakes unhappy. Freedesktop #10028.
}
g_slist_free (parsed);
-
- pkg->requires = g_slist_reverse (pkg->requires);
}
static void
}
g_slist_free (parsed);
-
- pkg->requires_private = g_slist_reverse (pkg->requires_private);
}
static void
++i;
}
- pkg->l_libs = g_slist_reverse (pkg->l_libs);
- pkg->L_libs = g_slist_reverse (pkg->L_libs);
- pkg->other_libs = g_slist_reverse (pkg->other_libs);
-
}
g_free (argv);
g_free (trimmed);
-
- pkg->I_cflags = g_slist_reverse (pkg->I_cflags);
- pkg->other_cflags = g_slist_reverse (pkg->other_cflags);
}
static void
fclose(f);
/* make ->requires_private include a copy of the public requires too */
- pkg->requires_private = g_slist_concat(pkg->requires_private,
- g_slist_copy (pkg->requires));
+ pkg->requires_private = g_slist_concat(g_slist_copy (pkg->requires),
+ pkg->requires_private);
+
+ pkg->requires = g_slist_reverse (pkg->requires);
+
+ pkg->requires_private = g_slist_reverse (pkg->requires_private);
+ pkg->I_cflags = g_slist_reverse (pkg->I_cflags);
+ pkg->other_cflags = g_slist_reverse (pkg->other_cflags);
+
+ pkg->l_libs = g_slist_reverse (pkg->l_libs);
+ pkg->L_libs = g_slist_reverse (pkg->L_libs);
+ pkg->other_libs = g_slist_reverse (pkg->other_libs);
+
return pkg;
}