Seems to have a confusion between: PR_INC and INC_PR.<br><br><div class="gmail_quote">On Sat, Jan 21, 2012 at 03:18, Saul Wold <span dir="ltr"><<a href="mailto:sgw@linux.intel.com">sgw@linux.intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Saul Wold <<a href="mailto:sgw@linux.intel.com">sgw@linux.intel.com</a>><br>
---<br>
meta/recipes-devtools/opkg/opkg.inc | 43 +++++++++++++++++++++++++++-<br>
meta/recipes-devtools/opkg/<a href="http://opkg_0.1.8.bb" target="_blank">opkg_0.1.8.bb</a> | 44 +----------------------------<br>
meta/recipes-devtools/opkg/<a href="http://opkg_svn.bb" target="_blank">opkg_svn.bb</a> | 42 +---------------------------<br>
3 files changed, 44 insertions(+), 85 deletions(-)<br>
<br>
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc<br>
index 3e350e8..b03eaf7 100644<br>
--- a/meta/recipes-devtools/opkg/opkg.inc<br>
+++ b/meta/recipes-devtools/opkg/opkg.inc<br>
@@ -11,6 +11,7 @@ DEPENDS_virtclass-native = "curl-native"<br>
DEPENDS_virtclass-nativesdk = "curl-nativesdk"<br>
<br>
PE = "1"<br>
+PR_INC = "r6"<br>
<br>
FILESDIR = "${@os.path.dirname(d.getVar('FILE',1))}/opkg"<br>
<br>
@@ -31,8 +32,46 @@ EXTRA_OECONF += "--with-opkglibdir=${localstatedir}/lib"<br>
EXTRA_OECONF_virtclass-native = "--with-opkglibdir=${target_localstatedir}/lib --disable-gpg --disable-curl --disable-openssl"<br>
EXTRA_OECONF_virtclass-nativesdk = "--with-opkglibdir=${target_localstatedir}/lib --disable-gpg --disable-curl --disable-openssl"<br>
<br>
-#PROVIDES_append_virtclass-native = "virtual/update-alternatives-native"<br>
-#RPROVIDES_${PN} += "update-alternatives-native"<br>
+PROVIDES += "virtual/update-alternatives"<br>
+RPROVIDES_update-alternatives-cworth += "update-alternatives"<br>
+RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg"<br>
+RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base"<br>
+RDEPENDS_${PN}_virtclass-native = ""<br>
+RDEPENDS_${PN}_virtclass-nativesdk = ""<br>
+PACKAGE_ARCH_update-alternatives-cworth = "all"<br>
+RREPLACES_${PN} = "opkg-nogpg"<br>
+<br>
+PACKAGES =+ "libopkg${PKGSUFFIX}-dev libopkg${PKGSUFFIX} update-alternatives-cworth${PKGSUFFIX}"<br>
+<br>
+FILES_update-alternatives-cworth${PKGSUFFIX} = "${bindir}/update-alternatives"<br>
+FILES_libopkg${PKGSUFFIX}-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"<br>
+FILES_libopkg${PKGSUFFIX} = "${libdir}/*.so.* ${localstatedir}/lib/opkg/"<br>
+<br>
+# We need to create the lock directory<br>
+do_install_append() {<br>
+ install -d ${D}${localstatedir}/lib/opkg<br>
+}<br>
+<br>
+pkg_postinst_${PN} () {<br>
+#!/bin/sh<br>
+if [ "x$D" != "x" ]; then<br>
+ install -d $D${sysconfdir}/rcS.d<br>
+ # this happens at S98 where our good 'ole packages script used to run<br>
+ echo "#!/bin/sh<br>
+opkg-cl configure<br>
+rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
+" > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
+ chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
+fi<br>
+<br>
+update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100<br>
+}<br>
+<br>
+pkg_postrm_${PN} () {<br>
+#!/bin/sh<br>
+update-alternatives --remove opkg ${bindir}/opkg-cl<br>
+}<br>
+<br>
<br>
BBCLASSEXTEND = "native nativesdk"<br>
<br>
diff --git a/meta/recipes-devtools/opkg/<a href="http://opkg_0.1.8.bb" target="_blank">opkg_0.1.8.bb</a> b/meta/recipes-devtools/opkg/<a href="http://opkg_0.1.8.bb" target="_blank">opkg_0.1.8.bb</a><br>
index 18cf042..c206b37 100644<br>
--- a/meta/recipes-devtools/opkg/<a href="http://opkg_0.1.8.bb" target="_blank">opkg_0.1.8.bb</a><br>
+++ b/meta/recipes-devtools/opkg/<a href="http://opkg_0.1.8.bb" target="_blank">opkg_0.1.8.bb</a><br>
@@ -1,48 +1,8 @@<br>
require opkg.inc<br>
<br>
-PROVIDES += "virtual/update-alternatives"<br>
-RPROVIDES_update-alternatives-cworth += "update-alternatives"<br>
-RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg"<br>
-RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base"<br>
-RDEPENDS_${PN}_virtclass-native = ""<br>
-RDEPENDS_${PN}_virtclass-nativesdk = ""<br>
-PACKAGE_ARCH_update-alternatives-cworth = "all"<br>
-<br>
SRC_URI = "<a href="http://opkg.googlecode.com/files/opkg-${PV}.tar.gz" target="_blank">http://opkg.googlecode.com/files/opkg-${PV}.tar.gz</a> \<br>
file://add_vercmp.patch \<br>
file://headerfix.patch \<br>
-"<br>
-<br>
-PR = "r4"<br>
-<br>
-PACKAGES =+ "libopkg${PKGSUFFIX}-dev libopkg${PKGSUFFIX} update-alternatives-cworth${PKGSUFFIX}"<br>
-<br>
-FILES_update-alternatives-cworth${PKGSUFFIX} = "${bindir}/update-alternatives"<br>
-FILES_libopkg${PKGSUFFIX}-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"<br>
-FILES_libopkg${PKGSUFFIX} = "${libdir}/*.so.* ${localstatedir}/lib/opkg/"<br>
-<br>
-# We need to create the lock directory<br>
-do_install_append() {<br>
- install -d ${D}${localstatedir}/lib/opkg<br>
-}<br>
-<br>
-pkg_postinst_${PN} () {<br>
-#!/bin/sh<br>
-if [ "x$D" != "x" ]; then<br>
- install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d<br>
- # this happens at S98 where our good 'ole packages script used to run<br>
- echo "#!/bin/sh<br>
-opkg-cl configure<br>
-rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
-" > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
- chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
-fi<br>
-<br>
-update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100<br>
-}<br>
-<br>
-pkg_postrm_${PN} () {<br>
-#!/bin/sh<br>
-update-alternatives --remove opkg ${bindir}/opkg-cl<br>
-}<br>
+ "<br>
<br>
+PR = "${INC_PR}.0"<br>
diff --git a/meta/recipes-devtools/opkg/<a href="http://opkg_svn.bb" target="_blank">opkg_svn.bb</a> b/meta/recipes-devtools/opkg/<a href="http://opkg_svn.bb" target="_blank">opkg_svn.bb</a><br>
index f5f540d..c07d393 100644<br>
--- a/meta/recipes-devtools/opkg/<a href="http://opkg_svn.bb" target="_blank">opkg_svn.bb</a><br>
+++ b/meta/recipes-devtools/opkg/<a href="http://opkg_svn.bb" target="_blank">opkg_svn.bb</a><br>
@@ -1,14 +1,5 @@<br>
require opkg.inc<br>
<br>
-PROVIDES += "virtual/update-alternatives"<br>
-RPROVIDES_update-alternatives-cworth += "update-alternatives"<br>
-RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg"<br>
-RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base"<br>
-RDEPENDS_${PN}_virtclass-native = ""<br>
-RDEPENDS_${PN}_virtclass-nativesdk = ""<br>
-PACKAGE_ARCH_update-alternatives-cworth = "all"<br>
-RREPLACES_${PN} = "opkg-nogpg"<br>
-<br>
SRC_URI = "svn://<a href="http://opkg.googlecode.com/svn;module=trunk;proto=http" target="_blank">opkg.googlecode.com/svn;module=trunk;proto=http</a> \<br>
file://add_vercmp.patch \<br>
file://add_uname_support.patch \<br>
@@ -21,36 +12,5 @@ S = "${WORKDIR}/trunk"<br>
<br>
SRCREV = "633"<br>
PV = "0.1.8+svnr${SRCPV}"<br>
-PR = "r5"<br>
-<br>
-PACKAGES =+ "libopkg${PKGSUFFIX}-dev libopkg${PKGSUFFIX} update-alternatives-cworth${PKGSUFFIX}"<br>
-<br>
-FILES_update-alternatives-cworth${PKGSUFFIX} = "${bindir}/update-alternatives"<br>
-FILES_libopkg${PKGSUFFIX}-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"<br>
-FILES_libopkg${PKGSUFFIX} = "${libdir}/*.so.* ${localstatedir}/lib/opkg/"<br>
-<br>
-# We need to create the lock directory<br>
-do_install_append() {<br>
- install -d ${D}${localstatedir}/lib/opkg<br>
-}<br>
-<br>
-pkg_postinst_${PN} () {<br>
-#!/bin/sh<br>
-if [ "x$D" != "x" ]; then<br>
- install -d $D${sysconfdir}/rcS.d<br>
- # this happens at S98 where our good 'ole packages script used to run<br>
- echo "#!/bin/sh<br>
-opkg-cl configure<br>
-rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
-" > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
- chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure<br>
-fi<br>
-<br>
-update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100<br>
-}<br>
-<br>
-pkg_postrm_${PN} () {<br>
-#!/bin/sh<br>
-update-alternatives --remove opkg ${bindir}/opkg-cl<br>
-}<br>
<br>
+PR = "${INC_PR}.0"<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.6.5<br>
<br>
<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Otavio Salvador O.S. Systems<br>E-mail: <a href="mailto:otavio@ossystems.com.br" target="_blank">otavio@ossystems.com.br</a> <a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a><br>
Mobile: +55 53 9981-7854 <a href="http://projetos.ossystems.com.br" target="_blank">http://projetos.ossystems.com.br</a><br><br>