aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-01-14 02:25:20 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-01-14 02:25:20 +0800
commitc54009154967d9720b0b1dbef44a70a10a1bddb9 (patch)
treeff1f58b7c9e69f02a4e036d6abea1fc4bbb208f9 /ports-mgmt
parentab10d33d7f6e7db61ad5daa67d2a97a80a39155f (diff)
downloadfreebsd-ports-gnome-c54009154967d9720b0b1dbef44a70a10a1bddb9.tar.gz
freebsd-ports-gnome-c54009154967d9720b0b1dbef44a70a10a1bddb9.tar.zst
freebsd-ports-gnome-c54009154967d9720b0b1dbef44a70a10a1bddb9.zip
- Fix build due to uninitialized variables, which
were previously hidden due to DEBUG_FLAGS Obtained from: Upstream git repo Approved by: bapt
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/pkg/files/patch-libpkg__backup.c10
-rw-r--r--ports-mgmt/pkg/files/patch-libpkg__pkg_elf.c13
-rw-r--r--ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c11
-rw-r--r--ports-mgmt/pkg/files/patch-pkg__create.c11
-rw-r--r--ports-mgmt/pkg/files/patch-pkg__update.c11
5 files changed, 56 insertions, 0 deletions
diff --git a/ports-mgmt/pkg/files/patch-libpkg__backup.c b/ports-mgmt/pkg/files/patch-libpkg__backup.c
new file mode 100644
index 000000000000..96369b46f5ff
--- /dev/null
+++ b/ports-mgmt/pkg/files/patch-libpkg__backup.c
@@ -0,0 +1,10 @@
+--- ./libpkg/backup.c.orig 2012-12-21 05:57:15.000000000 -0600
++++ ./libpkg/backup.c 2013-01-13 12:16:18.119457225 -0600
+@@ -88,6 +88,7 @@
+ b = sqlite3_backup_init(dst, "main", src, "main");
+
+ elapsed = -1;
++ done = total = 0;
+ start = time(NULL);
+
+ do {
diff --git a/ports-mgmt/pkg/files/patch-libpkg__pkg_elf.c b/ports-mgmt/pkg/files/patch-libpkg__pkg_elf.c
new file mode 100644
index 000000000000..ade0e588df12
--- /dev/null
+++ b/ports-mgmt/pkg/files/patch-libpkg__pkg_elf.c
@@ -0,0 +1,13 @@
+--- ./libpkg/pkg_elf.c.orig 2012-12-21 05:57:15.000000000 -0600
++++ ./libpkg/pkg_elf.c 2013-01-13 12:16:18.123459813 -0600
+@@ -195,8 +195,8 @@
+ struct stat sb;
+ int ret = EPKG_OK;
+
+- size_t numdyn;
+- size_t sh_link;
++ size_t numdyn = 0;
++ size_t sh_link = 0;
+ size_t dynidx;
+ const char *osname;
+
diff --git a/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c b/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c
new file mode 100644
index 000000000000..62260e11357b
--- /dev/null
+++ b/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c
@@ -0,0 +1,11 @@
+--- ./libpkg/pkg_repo.c.orig 2012-12-21 05:57:15.000000000 -0600
++++ ./libpkg/pkg_repo.c 2013-01-13 12:16:18.126457634 -0600
+@@ -520,7 +520,7 @@
+ maybe_delete_conflicting(const char *origin, const char *version,
+ const char *pkg_path)
+ {
+- int ret;
++ int ret = EPKG_FATAL;
+ const char *oversion;
+
+ if (run_prepared_statement(VERSION, origin) != SQLITE_ROW)
diff --git a/ports-mgmt/pkg/files/patch-pkg__create.c b/ports-mgmt/pkg/files/patch-pkg__create.c
new file mode 100644
index 000000000000..243c6652d235
--- /dev/null
+++ b/ports-mgmt/pkg/files/patch-pkg__create.c
@@ -0,0 +1,11 @@
+--- ./pkg/create.c.orig 2012-12-21 05:57:15.000000000 -0600
++++ ./pkg/create.c 2013-01-13 12:16:18.129456852 -0600
+@@ -73,7 +73,7 @@
+ PKG_LOAD_CATEGORIES | PKG_LOAD_DIRS | PKG_LOAD_SCRIPTS |
+ PKG_LOAD_OPTIONS | PKG_LOAD_MTREE | PKG_LOAD_LICENSES |
+ PKG_LOAD_USERS | PKG_LOAD_GROUPS | PKG_LOAD_SHLIBS;
+- const char *format;
++ const char *format = NULL;
+ bool foundone;
+
+ if (pkgdb_open(&db, PKGDB_DEFAULT) != EPKG_OK) {
diff --git a/ports-mgmt/pkg/files/patch-pkg__update.c b/ports-mgmt/pkg/files/patch-pkg__update.c
new file mode 100644
index 000000000000..4e7644289b50
--- /dev/null
+++ b/ports-mgmt/pkg/files/patch-pkg__update.c
@@ -0,0 +1,11 @@
+--- ./pkg/update.c.orig 2012-12-21 05:57:15.000000000 -0600
++++ ./pkg/update.c 2013-01-13 12:16:18.132456977 -0600
+@@ -49,7 +49,7 @@
+ const char *repo_name;
+ bool multi_repos = false;
+ struct pkg_config_kv *repokv = NULL;
+- int retcode;
++ int retcode = EPKG_FATAL;
+
+ if (!quiet)
+ printf("Updating repository catalogue\n");