diff options
author | Richard Purdie <richard@ted.(none)> | 2009-02-27 14:45:56 +0000 |
---|---|---|
committer | Richard Purdie <richard@ted.(none)> | 2009-02-27 14:45:56 +0000 |
commit | 49ca46f588425c88e37a85df00b1fd4591a01ab6 (patch) | |
tree | fa6e32df459c5a556da9f810f2cbf2dfa46919a2 /meta/packages | |
parent | 09bf864d4fd148c29ece54df018255acaa8037bc (diff) | |
parent | 00dccf496e975e814d44ded7f43d29e7ea1b6126 (diff) | |
download | poky-49ca46f588425c88e37a85df00b1fd4591a01ab6.tar.gz |
Merge ssh://gitserver@git.pokylinux.org/poky
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/opkg/files/opkg-fix-gcc-warnings.patch | 53 | ||||
-rw-r--r-- | meta/packages/opkg/opkg.inc | 8 |
2 files changed, 60 insertions, 1 deletions
diff --git a/meta/packages/opkg/files/opkg-fix-gcc-warnings.patch b/meta/packages/opkg/files/opkg-fix-gcc-warnings.patch new file mode 100644 index 0000000000..149542ed6a --- /dev/null +++ b/meta/packages/opkg/files/opkg-fix-gcc-warnings.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | diff -urN opkg.orig/libopkg/libopkg.c opkg/libopkg/libopkg.c | ||
2 | --- opkg.orig/libopkg/libopkg.c 2009-02-09 10:49:40.000000000 +0000 | ||
3 | +++ opkg/libopkg/libopkg.c 2009-02-09 10:50:23.000000000 +0000 | ||
4 | @@ -38,7 +38,7 @@ | ||
5 | if ( level == OPKG_ERROR ){ | ||
6 | push_error_list(&error_list, msg); | ||
7 | } else | ||
8 | - printf(msg); | ||
9 | + printf("%s", msg); | ||
10 | } | ||
11 | return 0; | ||
12 | } | ||
13 | @@ -71,7 +71,7 @@ | ||
14 | char* default_opkg_response_callback(char *question) | ||
15 | { | ||
16 | char *response = NULL; | ||
17 | - printf(question); | ||
18 | + printf("%s", question); | ||
19 | fflush(stdout); | ||
20 | do { | ||
21 | response = (char *)file_read_line_alloc(stdin); | ||
22 | diff -urN opkg.orig/libopkg/opkg_cmd.c opkg/libopkg/opkg_cmd.c | ||
23 | --- opkg.orig/libopkg/opkg_cmd.c 2009-02-09 10:49:40.000000000 +0000 | ||
24 | +++ opkg/libopkg/opkg_cmd.c 2009-02-09 10:50:23.000000000 +0000 | ||
25 | @@ -369,7 +369,7 @@ | ||
26 | perror (ctx->statedir); | ||
27 | |||
28 | sprintf_alloc (&cmd, "rm -rf %s", ctx->statedir); | ||
29 | - system (cmd); | ||
30 | + err = system (cmd); | ||
31 | free (cmd); | ||
32 | |||
33 | free (ctx->statedir); | ||
34 | diff -urN opkg.orig/libopkg/pkg.c opkg/libopkg/pkg.c | ||
35 | --- opkg.orig/libopkg/pkg.c 2009-02-09 10:49:40.000000000 +0000 | ||
36 | +++ opkg/libopkg/pkg.c 2009-02-09 10:52:49.000000000 +0000 | ||
37 | @@ -1052,6 +1052,7 @@ | ||
38 | |||
39 | void pkg_print_info(pkg_t *pkg, FILE *file) | ||
40 | { | ||
41 | + int t = 0; | ||
42 | char * buff; | ||
43 | if (pkg == NULL) { | ||
44 | return; | ||
45 | @@ -1061,7 +1062,7 @@ | ||
46 | if ( buff == NULL ) | ||
47 | return; | ||
48 | if (strlen(buff)>2){ | ||
49 | - fwrite(buff, 1, strlen(buff), file); | ||
50 | + t = fwrite(buff, 1, strlen(buff), file); /* TODO: check t */ | ||
51 | } | ||
52 | free(buff); | ||
53 | } | ||
diff --git a/meta/packages/opkg/opkg.inc b/meta/packages/opkg/opkg.inc index d131753ddb..c2e840908c 100644 --- a/meta/packages/opkg/opkg.inc +++ b/meta/packages/opkg/opkg.inc | |||
@@ -6,8 +6,14 @@ LICENSE = "GPL" | |||
6 | DEPENDS = "curl gpgme" | 6 | DEPENDS = "curl gpgme" |
7 | PV = "0.0+svnr${SRCREV}" | 7 | PV = "0.0+svnr${SRCREV}" |
8 | 8 | ||
9 | # opkg-fix-gcc-warnings.patch: the patch is already upstreamed and could be | ||
10 | # taken out once okpg is updated to new repo | ||
11 | # http://opkg.googlecode.com/svn/trunk | ||
12 | # with rev >= 150 | ||
13 | |||
9 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http \ | 14 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http \ |
10 | file://fix_prototype.patch;patch=1" | 15 | file://fix_prototype.patch;patch=1 \ |
16 | file://opkg-fix-gcc-warnings.patch;patch=1" | ||
11 | 17 | ||
12 | S = "${WORKDIR}/opkg" | 18 | S = "${WORKDIR}/opkg" |
13 | 19 | ||