]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: More pkgdata fixes, (install task needs to rerun on existing builds)
authorRichard Purdie <richard@openedhand.com>
Tue, 21 Aug 2007 11:51:25 +0000 (11:51 +0000)
committerRichard Purdie <richard@openedhand.com>
Tue, 21 Aug 2007 11:51:25 +0000 (11:51 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2530 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/multimachine.bbclass
meta/classes/package.bbclass
meta/classes/package_ipk.bbclass

index 7a2f24c9637776794bb770dc94a82dea7142d69c..945d22bfe019c762df9a51ede7f053ff02be4981 100644 (file)
@@ -1,7 +1,7 @@
 STAMP = "${TMPDIR}/stamps/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/${PF}"
 WORKDIR = "${TMPDIR}/work/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/${PF}"
 STAGING_KERNEL_DIR = "${STAGING_DIR}/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/kernel"
-PKGDATA_DIR = "${STAGING_DIR}/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}/pkgdata"
+PKGDATA_DIR = "${STAGING_DIR}/pkgdata/${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
 
 # Find any machine specific sub packages and if present, mark the 
 # whole package as machine specific for multimachine purposes.
index e1a7d91a9e019e203f25515315e07ad5cbcd8923..ef7a0844554b16b2a7e02fc58800a1f1f92be872 100644 (file)
@@ -497,13 +497,13 @@ python emit_pkgdata() {
        if not packages:
                return
 
-       data_file = bb.data.expand("${STAGING_DIR}/pkgdata/${PN}", d)
+       data_file = bb.data.expand("${PKGDATA_DIR}/${PN}", d)
        f = open(data_file, 'w')
        f.write("PACKAGES: %s\n" % packages)
        f.close()
 
        for pkg in packages.split():
-               subdata_file = bb.data.expand("${STAGING_DIR}/pkgdata/runtime/%s" % pkg, d)
+               subdata_file = bb.data.expand("${PKGDATA_DIR}/runtime/%s" % pkg, d)
                sf = open(subdata_file, 'w')
                write_if_exists(sf, pkg, 'DESCRIPTION')
                write_if_exists(sf, pkg, 'RDEPENDS')
@@ -522,7 +522,7 @@ python emit_pkgdata() {
                write_if_exists(sf, pkg, 'pkg_prerm')
                sf.close()
 }
-emit_pkgdata[dirs] = "${STAGING_DIR}/pkgdata/runtime"
+emit_pkgdata[dirs] = "${PKGDATA_DIR}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
@@ -820,7 +820,7 @@ python package_depchains() {
 
        def pkg_addrrecs(pkg, base, suffix, getname, rdepends, d):
                def packaged(pkg, d):
-                       return os.access(bb.data.expand('${STAGING_DIR}/pkgdata/runtime/%s.packaged' % pkg, d), os.R_OK)
+                       return os.access(bb.data.expand('${PKGDATA_DIR}/runtime/%s.packaged' % pkg, d), os.R_OK)
 
                 #bb.note('rdepends for %s is %s' % (base, rdepends))
 
index 2c75cd18389bb12cf45b83ca6b1ba1d78ceb5918..17918bbde33332275f0f62e6037c9e3618b993e2 100644 (file)
@@ -225,8 +225,6 @@ python do_package_ipk () {
                if ret != 0:
                        raise bb.build.FuncFailed("ipkg-build execution failed")
 
-               file(bb.data.expand('${STAGING_DIR}/pkgdata/runtime/%s.packaged' % pkg, d), 'w').close()
-
                for script in ["preinst", "postinst", "prerm", "postrm", "control" ]:
                        scriptfile = os.path.join(controldir, script)
                        try: