svn commit: r310327 - head/ports-mgmt/pkg/files
Bryan Drewery
bdrewery at FreeBSD.org
Sun Jan 13 18:25:22 UTC 2013
Author: bdrewery
Date: Sun Jan 13 18:25:20 2013
New Revision: 310327
URL: http://svnweb.freebsd.org/changeset/ports/310327
Log:
- Fix build due to uninitialized variables, which
were previously hidden due to DEBUG_FLAGS
Obtained from: Upstream git repo
Approved by: bapt
Added:
head/ports-mgmt/pkg/files/patch-libpkg__backup.c (contents, props changed)
head/ports-mgmt/pkg/files/patch-libpkg__pkg_elf.c (contents, props changed)
head/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c (contents, props changed)
head/ports-mgmt/pkg/files/patch-pkg__create.c (contents, props changed)
head/ports-mgmt/pkg/files/patch-pkg__update.c (contents, props changed)
Added: head/ports-mgmt/pkg/files/patch-libpkg__backup.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-libpkg__backup.c Sun Jan 13 18:25:20 2013 (r310327)
@@ -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 {
Added: head/ports-mgmt/pkg/files/patch-libpkg__pkg_elf.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-libpkg__pkg_elf.c Sun Jan 13 18:25:20 2013 (r310327)
@@ -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;
+
Added: head/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-libpkg__pkg_repo.c Sun Jan 13 18:25:20 2013 (r310327)
@@ -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)
Added: head/ports-mgmt/pkg/files/patch-pkg__create.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-pkg__create.c Sun Jan 13 18:25:20 2013 (r310327)
@@ -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) {
Added: head/ports-mgmt/pkg/files/patch-pkg__update.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-pkg__update.c Sun Jan 13 18:25:20 2013 (r310327)
@@ -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");
More information about the svn-ports-all
mailing list