diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-07-21 10:58:28 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-21 16:00:58 +0100 |
commit | 36bc4592f4f0e4b4afaba6a0eba21ee9d4ffcfb1 (patch) | |
tree | 5f8934d0c7fde07abcdfdcb81c9144646675694c | |
parent | 21fae7e2ec4891e00a611413f1be14ab71947236 (diff) | |
download | poky-36bc4592f4f0e4b4afaba6a0eba21ee9d4ffcfb1.tar.gz |
opkg: Upgraded to version 0.1.8
Use stable release as default recipe.
Remove logfix.patch since the logic is already in latest version package
Also fix the metadata
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
-rw-r--r-- | meta/conf/distro/include/poky-default-revisions.inc | 3 | ||||
-rw-r--r-- | meta/packages/opkg/opkg-0.1.8/add_vercmp.patch | 34 | ||||
-rw-r--r-- | meta/packages/opkg/opkg-0.1.8/headerfix.patch | 17 | ||||
-rw-r--r-- | meta/packages/opkg/opkg-0.1.8/opkg_unarchive.patch | 17 | ||||
-rw-r--r-- | meta/packages/opkg/opkg-nogpg_0.1.8.bb | 8 | ||||
-rw-r--r-- | meta/packages/opkg/opkg.inc | 18 | ||||
-rw-r--r-- | meta/packages/opkg/opkg_0.1.8.bb | 53 | ||||
-rw-r--r-- | meta/packages/opkg/opkg_svn.bb | 11 |
8 files changed, 146 insertions, 15 deletions
diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc index cc73ba3a0b..4e5c4614ad 100644 --- a/meta/conf/distro/include/poky-default-revisions.inc +++ b/meta/conf/distro/include/poky-default-revisions.inc | |||
@@ -98,9 +98,6 @@ SRCREV_pn-networkmanager ??= "2984" | |||
98 | SRCREV_pn-ofono ??= "14544d5996836f628613c2ce544380ee6fc8f514" | 98 | SRCREV_pn-ofono ??= "14544d5996836f628613c2ce544380ee6fc8f514" |
99 | SRCREV_pn-oh-puzzles ??= "23" | 99 | SRCREV_pn-oh-puzzles ??= "23" |
100 | SRCREV_pn-ohm ??= "edfe25d49d67884bf004de7ae0724c162bb5e65e" | 100 | SRCREV_pn-ohm ??= "edfe25d49d67884bf004de7ae0724c162bb5e65e" |
101 | SRCREV_pn-opkg-native ??= "518" | ||
102 | SRCREV_pn-opkg-nativesdk ??= "518" | ||
103 | SRCREV_pn-opkg ??= "518" | ||
104 | SRCREV_pn-opkg-utils-native ??= "4534" | 101 | SRCREV_pn-opkg-utils-native ??= "4534" |
105 | SRCREV_pn-opkg-utils ??= "4534" | 102 | SRCREV_pn-opkg-utils ??= "4534" |
106 | SRCREV_pn-oprofileui ??= "197" | 103 | SRCREV_pn-oprofileui ??= "197" |
diff --git a/meta/packages/opkg/opkg-0.1.8/add_vercmp.patch b/meta/packages/opkg/opkg-0.1.8/add_vercmp.patch new file mode 100644 index 0000000000..540be83950 --- /dev/null +++ b/meta/packages/opkg/opkg-0.1.8/add_vercmp.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Index: trunk/libopkg/opkg.c | ||
2 | =================================================================== | ||
3 | --- trunk.orig/libopkg/opkg.c 2010-01-26 20:32:19.000000000 +0000 | ||
4 | +++ trunk/libopkg/opkg.c 2010-01-26 20:40:34.000000000 +0000 | ||
5 | @@ -876,3 +876,18 @@ | ||
6 | |||
7 | return ret; | ||
8 | } | ||
9 | + | ||
10 | +int | ||
11 | +opkg_compare_versions (const char *ver1, const char *ver2) | ||
12 | +{ | ||
13 | + pkg_t *pkg1, *pkg2; | ||
14 | + | ||
15 | + pkg1 = pkg_new(); | ||
16 | + pkg2 = pkg_new(); | ||
17 | + | ||
18 | + parse_version(pkg1, ver1); | ||
19 | + parse_version(pkg2, ver2); | ||
20 | + | ||
21 | + return pkg_compare_versions(pkg1, pkg2); | ||
22 | +} | ||
23 | + | ||
24 | Index: trunk/libopkg/opkg.h | ||
25 | =================================================================== | ||
26 | --- trunk.orig/libopkg/opkg.h 2010-01-26 20:32:19.000000000 +0000 | ||
27 | +++ trunk/libopkg/opkg.h 2010-01-26 20:35:19.000000000 +0000 | ||
28 | @@ -58,4 +58,6 @@ | ||
29 | |||
30 | int opkg_repository_accessibility_check(void); | ||
31 | |||
32 | +int opkg_compare_versions (const char *ver1, const char *ver2); | ||
33 | + | ||
34 | #endif /* OPKG_H */ | ||
diff --git a/meta/packages/opkg/opkg-0.1.8/headerfix.patch b/meta/packages/opkg/opkg-0.1.8/headerfix.patch new file mode 100644 index 0000000000..d0711ecd0e --- /dev/null +++ b/meta/packages/opkg/opkg-0.1.8/headerfix.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Without this, the FILE reference in this header can cause compile issues. | ||
2 | |||
3 | RP - 29/1/10 | ||
4 | |||
5 | Index: trunk/libopkg/pkg_dest.h | ||
6 | =================================================================== | ||
7 | --- trunk.orig/libopkg/pkg_dest.h 2010-01-29 09:37:22.000000000 +0000 | ||
8 | +++ trunk/libopkg/pkg_dest.h 2010-01-29 09:37:33.000000000 +0000 | ||
9 | @@ -18,6 +18,8 @@ | ||
10 | #ifndef PKG_DEST_H | ||
11 | #define PKG_DEST_H | ||
12 | |||
13 | +#include <stdio.h> | ||
14 | + | ||
15 | typedef struct pkg_dest pkg_dest_t; | ||
16 | struct pkg_dest | ||
17 | { | ||
diff --git a/meta/packages/opkg/opkg-0.1.8/opkg_unarchive.patch b/meta/packages/opkg/opkg-0.1.8/opkg_unarchive.patch new file mode 100644 index 0000000000..4b12448155 --- /dev/null +++ b/meta/packages/opkg/opkg-0.1.8/opkg_unarchive.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Rebase for the latest version | ||
2 | Dongxiao Xu <dongxiao.xu@intel.com> | ||
3 | |||
4 | diff -ruN opkg-0.1.8-orig/libbb/unarchive.c opkg-0.1.8/libbb/unarchive.c | ||
5 | --- opkg-0.1.8-orig/libbb/unarchive.c 2010-07-20 09:39:02.266424893 +0800 | ||
6 | +++ opkg-0.1.8/libbb/unarchive.c 2010-07-20 09:39:50.474435569 +0800 | ||
7 | @@ -523,6 +523,10 @@ | ||
8 | } | ||
9 | } | ||
10 | |||
11 | + if (strlen(tar_entry->name) > 100) { | ||
12 | + tar_entry->name[100] = 0; | ||
13 | + } | ||
14 | + | ||
15 | // tar_entry->name = xstrdup(tar.formated.name); | ||
16 | |||
17 | /* | ||
diff --git a/meta/packages/opkg/opkg-nogpg_0.1.8.bb b/meta/packages/opkg/opkg-nogpg_0.1.8.bb new file mode 100644 index 0000000000..259a60ebc9 --- /dev/null +++ b/meta/packages/opkg/opkg-nogpg_0.1.8.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | require opkg_${PV}.bb | ||
2 | |||
3 | DEPENDS = "curl" | ||
4 | PROVIDES += "opkg" | ||
5 | |||
6 | EXTRA_OECONF += "--disable-gpg" | ||
7 | |||
8 | DEFAULT_PREFERENCE = "-1" | ||
diff --git a/meta/packages/opkg/opkg.inc b/meta/packages/opkg/opkg.inc index 84ce74c936..a602a6ff8f 100644 --- a/meta/packages/opkg/opkg.inc +++ b/meta/packages/opkg/opkg.inc | |||
@@ -2,26 +2,22 @@ DESCRIPTION = "Open Package Manager" | |||
2 | DESCRIPTION_libopkg = "Open Package Manager Library" | 2 | DESCRIPTION_libopkg = "Open Package Manager Library" |
3 | DESCRIPTION_update-alternatives-cworth = "Update alternatives" | 3 | DESCRIPTION_update-alternatives-cworth = "Update alternatives" |
4 | SECTION = "base" | 4 | SECTION = "base" |
5 | LICENSE = "GPL" | 5 | HOMEPAGE = "http://code.google.com/p/opkg/" |
6 | BUGTRACKER = "http://code.google.com/p/opkg/issues/list" | ||
7 | LICENSE = "GPLv2+" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
9 | file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba" | ||
6 | DEPENDS = "curl gpgme openssl" | 10 | DEPENDS = "curl gpgme openssl" |
7 | DEPENDS_virtclass-native = "curl-native" | 11 | DEPENDS_virtclass-native = "curl-native" |
8 | DEPENDS_virtclass-nativesdk = "curl-nativesdk" | 12 | DEPENDS_virtclass-nativesdk = "curl-nativesdk" |
9 | PV = "0.0+svnr${SRCREV}" | ||
10 | PE = "1" | ||
11 | |||
12 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \ | ||
13 | file://opkg_unarchive.patch;patch=1;maxrev=201 \ | ||
14 | file://add_vercmp.patch;patch=1 \ | ||
15 | file://headerfix.patch;patch=1 \ | ||
16 | file://logfix.patch;patch=1 " | ||
17 | 13 | ||
18 | S = "${WORKDIR}/trunk" | 14 | PE = "1" |
19 | 15 | ||
20 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/opkg" | 16 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/opkg" |
21 | 17 | ||
22 | # Werror gives all kinds bounds issuses with gcc 4.3.3 | 18 | # Werror gives all kinds bounds issuses with gcc 4.3.3 |
23 | do_configure_prepend() { | 19 | do_configure_prepend() { |
24 | sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am | 20 | sed -i -e s:-Werror::g ${S}/libopkg/Makefile.am |
25 | } | 21 | } |
26 | 22 | ||
27 | inherit autotools pkgconfig | 23 | inherit autotools pkgconfig |
diff --git a/meta/packages/opkg/opkg_0.1.8.bb b/meta/packages/opkg/opkg_0.1.8.bb new file mode 100644 index 0000000000..dcd6fb62ea --- /dev/null +++ b/meta/packages/opkg/opkg_0.1.8.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | require opkg.inc | ||
2 | |||
3 | PROVIDES += "virtual/update-alternatives" | ||
4 | RPROVIDES_update-alternatives-cworth += "update-alternatives" | ||
5 | RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg" | ||
6 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base" | ||
7 | RDEPENDS_${PN}_virtclass-native = "" | ||
8 | RDEPENDS_${PN}_virtclass-nativesdk = "" | ||
9 | PACKAGE_ARCH_update-alternatives-cworth = "all" | ||
10 | |||
11 | SRC_URI = "http://opkg.googlecode.com/files/opkg-${PV}.tar.gz \ | ||
12 | file://opkg_unarchive.patch \ | ||
13 | file://add_vercmp.patch \ | ||
14 | file://headerfix.patch" | ||
15 | |||
16 | PR = "r0" | ||
17 | |||
18 | PACKAGES =+ "libopkg-dev libopkg update-alternatives-cworth" | ||
19 | |||
20 | FILES_update-alternatives-cworth = "${bindir}/update-alternatives" | ||
21 | FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so" | ||
22 | FILES_libopkg = "${libdir}/*.so.* ${libdir}/opkg/" | ||
23 | |||
24 | # We need to create the lock directory | ||
25 | do_install_append() { | ||
26 | install -d ${D}${libdir}/opkg | ||
27 | } | ||
28 | |||
29 | # Define a variable to allow distros to run configure earlier. | ||
30 | # (for example, to enable loading of ethernet kernel modules before networking starts) | ||
31 | OPKG_INIT_POSITION = "98" | ||
32 | OPKG_INIT_POSITION_slugos = "41" | ||
33 | |||
34 | pkg_postinst_${PN} () { | ||
35 | #!/bin/sh | ||
36 | if [ "x$D" != "x" ]; then | ||
37 | install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d | ||
38 | # this happens at S98 where our good 'ole packages script used to run | ||
39 | echo "#!/bin/sh | ||
40 | opkg-cl configure | ||
41 | rm -f /${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure | ||
42 | " > $D${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure | ||
43 | chmod 0755 $D${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure | ||
44 | fi | ||
45 | |||
46 | update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100 | ||
47 | } | ||
48 | |||
49 | pkg_postrm_${PN} () { | ||
50 | #!/bin/sh | ||
51 | update-alternatives --remove opkg ${bindir}/opkg-cl | ||
52 | } | ||
53 | |||
diff --git a/meta/packages/opkg/opkg_svn.bb b/meta/packages/opkg/opkg_svn.bb index c3192bea50..73bde7766b 100644 --- a/meta/packages/opkg/opkg_svn.bb +++ b/meta/packages/opkg/opkg_svn.bb | |||
@@ -8,6 +8,15 @@ RDEPENDS_${PN}_virtclass-native = "" | |||
8 | RDEPENDS_${PN}_virtclass-nativesdk = "" | 8 | RDEPENDS_${PN}_virtclass-nativesdk = "" |
9 | PACKAGE_ARCH_update-alternatives-cworth = "all" | 9 | PACKAGE_ARCH_update-alternatives-cworth = "all" |
10 | 10 | ||
11 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \ | ||
12 | file://opkg_unarchive.patch \ | ||
13 | file://add_vercmp.patch \ | ||
14 | file://headerfix.patch \ | ||
15 | file://logfix.patch" | ||
16 | |||
17 | S = "${WORKDIR}/trunk" | ||
18 | |||
19 | PV = "0.0+svnr${SRCREV}" | ||
11 | PR = "r13" | 20 | PR = "r13" |
12 | 21 | ||
13 | PACKAGES =+ "libopkg-dev libopkg update-alternatives-cworth" | 22 | PACKAGES =+ "libopkg-dev libopkg update-alternatives-cworth" |
@@ -18,7 +27,7 @@ FILES_libopkg = "${libdir}/*.so.* ${libdir}/opkg/" | |||
18 | 27 | ||
19 | # We need to create the lock directory | 28 | # We need to create the lock directory |
20 | do_install_append() { | 29 | do_install_append() { |
21 | install -d ${D}${libdir}/opkg | 30 | install -d ${D}${libdir}/opkg |
22 | } | 31 | } |
23 | 32 | ||
24 | # Define a variable to allow distros to run configure earlier. | 33 | # Define a variable to allow distros to run configure earlier. |