aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/pkg/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-07-27 23:30:11 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-07-27 23:30:11 +0000
commit89baf776805fc2603d29f1e6e7fed48325b902cd (patch)
tree58ec8c218335ec10a87945e9da4c170597bb433f /ports-mgmt/pkg/files
parent01639194381da8d6e26f591bd5596bc173192dee (diff)
downloadports-89baf776805fc2603d29f1e6e7fed48325b902cd.tar.gz
ports-89baf776805fc2603d29f1e6e7fed48325b902cd.zip
Notes
Diffstat (limited to 'ports-mgmt/pkg/files')
-rw-r--r--ports-mgmt/pkg/files/patch-3f5668968
-rw-r--r--ports-mgmt/pkg/files/patch-powerpc-no-atomic-builtins29
2 files changed, 0 insertions, 97 deletions
diff --git a/ports-mgmt/pkg/files/patch-3f56689 b/ports-mgmt/pkg/files/patch-3f56689
deleted file mode 100644
index 626ebaaa7816..000000000000
--- a/ports-mgmt/pkg/files/patch-3f56689
+++ /dev/null
@@ -1,68 +0,0 @@
-From 3f56689bff57e3db52ec8fd5c5f730a2aec64d3d Mon Sep 17 00:00:00 2001
-From: Baptiste Daroussin <bapt@FreeBSD.org>
-Date: Sun, 27 Jul 2014 16:12:07 +0200
-Subject: [PATCH] Fix reading pkg.conf
-
----
- libpkg/pkg_config.c | 38 +++++++++++++++++++++++++++++++++++++-
- 1 file changed, 37 insertions(+), 1 deletion(-)
-
-diff --git a/libpkg/pkg_config.c b/libpkg/pkg_config.c
-index 3ba3d0e..692c4dc 100644
---- libpkg/pkg_config.c
-+++ libpkg/pkg_config.c
-@@ -673,6 +673,42 @@ pkg_compiled_for_same_os_major(void)
- #endif
- }
-
-+static ucl_object_t *
-+ucl_dup(const ucl_object_t *from)
-+{
-+ ucl_object_t *ret;
-+ const ucl_object_t *cur;
-+ ucl_object_iter_t it;
-+ const char *key;
-+
-+ switch (from->type) {
-+ case UCL_BOOLEAN:
-+ ret = ucl_object_frombool(ucl_object_toboolean(from));
-+ break;
-+ case UCL_INT:
-+ ret = ucl_object_fromint(ucl_object_toint(from));
-+ break;
-+ case UCL_STRING:
-+ ret = ucl_object_fromstring(ucl_object_tostring(from));
-+ break;
-+ case UCL_ARRAY:
-+ ret = ucl_object_typed_new(from->type);
-+ it = NULL;
-+ while ((cur = ucl_iterate_object(from, &it, true)))
-+ ucl_array_append(ret, ucl_object_ref(cur));
-+ break;
-+ case UCL_OBJECT:
-+ ret = ucl_object_typed_new(from->type);
-+ it = NULL;
-+ while ((cur = ucl_iterate_object(from, &it, true))) {
-+ key = ucl_object_key(cur);
-+ ucl_object_insert_key(ret, ucl_object_ref(cur), key, strlen(key), true);
-+ }
-+ break;
-+ }
-+
-+ return (ret);
-+}
-
- int
- pkg_init(const char *path, const char *reposdir)
-@@ -802,7 +838,7 @@ pkg_init(const char *path, const char *reposdir)
-
- if (ncfg == NULL)
- ncfg = ucl_object_typed_new(UCL_OBJECT);
-- ucl_object_insert_key(ncfg, ucl_object_copy(cur), sbuf_data(ukey), sbuf_len(ukey), true);
-+ ucl_object_insert_key(ncfg, ucl_dup(cur), sbuf_data(ukey), sbuf_len(ukey), true);
- }
-
- if (ncfg != NULL) {
---
-1.9.3
-
diff --git a/ports-mgmt/pkg/files/patch-powerpc-no-atomic-builtins b/ports-mgmt/pkg/files/patch-powerpc-no-atomic-builtins
deleted file mode 100644
index beb33dd46b78..000000000000
--- a/ports-mgmt/pkg/files/patch-powerpc-no-atomic-builtins
+++ /dev/null
@@ -1,29 +0,0 @@
---- external/libucl/src/ucl_util.c.orig 2014-06-12 01:37:02 +0800
-+++ external/libucl/src/ucl_util.c
-@@ -160,7 +160,7 @@ static void
- ucl_object_dtor_unref_single (ucl_object_t *obj)
- {
- if (obj != NULL) {
--#ifdef HAVE_ATOMIC_BUILTINS
-+#if defined(HAVE_ATOMIC_BUILTINS) && !defined(__powerpc__)
- unsigned int rc = __sync_sub_and_fetch (&obj->ref, 1);
- if (rc == 0) {
- #else
-@@ -1850,7 +1850,7 @@ ucl_object_ref (const ucl_object_t *obj)
-
- if (obj != NULL) {
- res = __DECONST (ucl_object_t *, obj);
--#ifdef HAVE_ATOMIC_BUILTINS
-+#if defined(HAVE_ATOMIC_BUILTINS) && !defined(__powerpc__)
- (void)__sync_add_and_fetch (&res->ref, 1);
- #else
- res->ref ++;
-@@ -1863,7 +1863,7 @@ void
- ucl_object_unref (ucl_object_t *obj)
- {
- if (obj != NULL) {
--#ifdef HAVE_ATOMIC_BUILTINS
-+#if defined(HAVE_ATOMIC_BUILTINS) && !defined(__powerpc__)
- unsigned int rc = __sync_sub_and_fetch (&obj->ref, 1);
- if (rc == 0) {
- #else