pkgconf replaces pkg-config in all systems and if you're building anything that uses it to track dependencies, it's a great system.
Builds with GCC no problem. Here's the patch
For performance and security it should make its way into RSE. Later versions may also compile. I just had this on hand.
Builds with GCC no problem. Here's the patch
C:
diff -Naur pkgconf-0.9.6/pkg.c pkgconf-0.9.6-irix/pkg.c
--- pkgconf-0.9.6/pkg.c 2014-06-07 16:32:08.000000000 +0000
+++ pkgconf-0.9.6-irix/pkg.c 2025-01-06 00:06:07.076793200 +0000
@@ -634,26 +634,30 @@
return 1;
}
-static pkg_t pkg_config_virtual = {
- .id = "pkg-config",
- .realname = "pkg-config",
- .description = "virtual package defining pkg-config API version supported",
- .url = PACKAGE_BUGREPORT,
- .version = PKG_PKGCONFIG_VERSION_EQUIV,
- .flags = PKG_PROPF_VIRTUAL,
- .vars = {
- .head = &(pkg_node_t){
- .prev = NULL,
- .next = NULL,
- .data = &(pkg_tuple_t){
- .key = "pc_path",
- .value = PKG_DEFAULT_PATH,
- },
- },
- .tail = NULL,
- },
+static pkg_tuple_t data = {
+ .key = "pc_path",
+};
+
+static pkg_node_t head = {
+ .prev = NULL,
+ .next = NULL,
+ .data = &data,
};
+static pkg_list_t vars = {
+ .head = &head,
+ .tail = NULL,
+};
+
+static pkg_t pkg_config_virtual = {
+ .id = "pkg-config",
+ .realname = "pkg-config",
+ .description = "virtual package defining pkg-config API version supported",
+ .url = PACKAGE_BUGREPORT,
+ .version = PKG_PKGCONFIG_VERSION_EQUIV,
+ .flags = PKG_PROPF_VIRTUAL,
+ .vars = &vars,
+};
typedef bool (*pkg_vercmp_res_func_t)(pkg_t *pkg, pkg_dependency_t *pkgdep);
typedef struct {
For performance and security it should make its way into RSE. Later versions may also compile. I just had this on hand.