summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/allarch.bbclass4
-rw-r--r--meta/classes/buildhistory.bbclass2
-rw-r--r--meta/classes/cross-canadian.bbclass5
-rw-r--r--meta/classes/image.bbclass2
-rw-r--r--meta/classes/license.bbclass3
-rw-r--r--meta/classes/multilib.bbclass1
-rw-r--r--meta/classes/package.bbclass14
-rw-r--r--meta/classes/package_rpm.bbclass2
-rw-r--r--meta/classes/packageinfo.bbclass35
9 files changed, 25 insertions, 43 deletions
diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass
index 8669470e60..5e13a5b8a8 100644
--- a/meta/classes/allarch.bbclass
+++ b/meta/classes/allarch.bbclass
@@ -2,6 +2,10 @@
2# This class is used for architecture independent recipes/data files (usally scripts) 2# This class is used for architecture independent recipes/data files (usally scripts)
3# 3#
4 4
5# Expand STAGING_DIR_HOST since for cross-canadian/native/nativesdk, this will
6# point elsewhere after these changes.
7STAGING_DIR_HOST := "${STAGING_DIR_HOST}"
8
5PACKAGE_ARCH = "all" 9PACKAGE_ARCH = "all"
6 10
7python () { 11python () {
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 080f2c79b3..3da03c8485 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -340,7 +340,7 @@ buildhistory_get_installed() {
340 cat $pkgcache | while read pkg pkgfile pkgarch 340 cat $pkgcache | while read pkg pkgfile pkgarch
341 do 341 do
342 for vendor in ${TARGET_VENDOR} ${MULTILIB_VENDORS} ; do 342 for vendor in ${TARGET_VENDOR} ${MULTILIB_VENDORS} ; do
343 size=`oe-pkgdata-util read-value ${TMPDIR}/pkgdata $vendor-${TARGET_OS} "PKGSIZE" ${pkg}_${pkgarch}` 343 size=`oe-pkgdata-util read-value ${PKGDATA_DIR} "PKGSIZE" ${pkg}_${pkgarch}`
344 if [ "$size" != "" ] ; then 344 if [ "$size" != "" ] ; then
345 echo "$size $pkg" >> $1/installed-package-sizes.tmp 345 echo "$size $pkg" >> $1/installed-package-sizes.tmp
346 fi 346 fi
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index 87dd9948e7..c22be1a030 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -31,7 +31,6 @@ STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${
31TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR}/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}" 31TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR}/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}"
32 32
33PATH_append = ":${TMPDIR}/sysroots/${HOST_ARCH}/${bindir_cross}" 33PATH_append = ":${TMPDIR}/sysroots/${HOST_ARCH}/${bindir_cross}"
34PKGDATA_DIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}"
35PKGHIST_DIR = "${TMPDIR}/pkghistory/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/" 34PKGHIST_DIR = "${TMPDIR}/pkghistory/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/"
36 35
37HOST_ARCH = "${SDK_ARCH}" 36HOST_ARCH = "${SDK_ARCH}"
@@ -89,10 +88,6 @@ FILES_${PN}-dbg += "${prefix}/.debug \
89export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" 88export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig"
90export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" 89export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
91 90
92# Cross-canadian packages need to pull in nativesdk dynamic libs
93SHLIBSDIRS = "${TMPDIR}/pkgdata/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/shlibs/ ${TMPDIR}/pkgdata/all-${HOST_VENDOR}-${HOST_OS}/shlibs/"
94SHLIBSDIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/shlibs/"
95
96do_populate_sysroot[stamp-extra-info] = "" 91do_populate_sysroot[stamp-extra-info] = ""
97 92
98USE_NLS = "${SDKUSE_NLS}" 93USE_NLS = "${SDKUSE_NLS}"
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index f1e62f1454..889547a441 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -484,7 +484,7 @@ rootfs_install_complementary() {
484 # Use the magic script to do all the work for us :) 484 # Use the magic script to do all the work for us :)
485 : > ${WORKDIR}/complementary_pkgs.txt 485 : > ${WORKDIR}/complementary_pkgs.txt
486 for vendor in '${TARGET_VENDOR}' ${MULTILIB_VENDORS} ; do 486 for vendor in '${TARGET_VENDOR}' ${MULTILIB_VENDORS} ; do
487 oe-pkgdata-util glob ${TMPDIR}/pkgdata $vendor-${TARGET_OS} ${WORKDIR}/installed_pkgs.txt "$GLOBS" >> ${WORKDIR}/complementary_pkgs.txt 487 oe-pkgdata-util glob ${PKGDATA_DIR} ${WORKDIR}/installed_pkgs.txt "$GLOBS" >> ${WORKDIR}/complementary_pkgs.txt
488 done 488 done
489 489
490 # Install the packages, if any 490 # Install the packages, if any
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 621c1b2f55..0160313e2e 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -28,8 +28,7 @@ license_create_manifest() {
28 fi 28 fi
29 touch ${LICENSE_MANIFEST} 29 touch ${LICENSE_MANIFEST}
30 for pkg in ${INSTALLED_PKGS}; do 30 for pkg in ${INSTALLED_PKGS}; do
31 # not the best way to do this but licenses are not arch dependant iirc 31 filename=`ls ${PKGDATA_DIR}/runtime-reverse/${pkg}| head -1`
32 filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/${pkg}| head -1`
33 pkged_pn="$(sed -n 's/^PN: //p' ${filename})" 32 pkged_pn="$(sed -n 's/^PN: //p' ${filename})"
34 33
35 # check to see if the package name exists in the manifest. if so, bail. 34 # check to see if the package name exists in the manifest. if so, bail.
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index dac160e17e..9503096245 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -47,7 +47,6 @@ python multilib_virtclass_handler () {
47 47
48 e.data.setVar("MLPREFIX", variant + "-") 48 e.data.setVar("MLPREFIX", variant + "-")
49 e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False)) 49 e.data.setVar("PN", variant + "-" + e.data.getVar("PN", False))
50 e.data.setVar("SHLIBSDIR_virtclass-multilib-" + variant ,e.data.getVar("SHLIBSDIR", False) + "/" + variant)
51 e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override) 50 e.data.setVar("OVERRIDES", e.data.getVar("OVERRIDES", False) + override)
52 51
53 # Expand the WHITELISTs with multilib prefix 52 # Expand the WHITELISTs with multilib prefix
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 599df246f0..fbb68391b9 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1304,17 +1304,8 @@ python package_do_filedeps() {
1304 d.setVar("FILERPROVIDESFLIST_" + pkg, " ".join(provides_files[pkg])) 1304 d.setVar("FILERPROVIDESFLIST_" + pkg, " ".join(provides_files[pkg]))
1305} 1305}
1306 1306
1307def getshlibsdirs(d): 1307SHLIBSDIRS = "${PKGDATA_DIR}/${MLPREFIX}shlibs"
1308 dirs = [] 1308SHLIBSWORKDIR = "${PKGDESTWORK}/${MLPREFIX}shlibs"
1309 triplets = (d.getVar("PKGTRIPLETS") or "").split()
1310 for t in triplets:
1311 dirs.append("${TMPDIR}/pkgdata/" + t + "/shlibs/")
1312 return " ".join(dirs)
1313getshlibsdirs[vardepsexclude] = "PKGTRIPLETS"
1314
1315SHLIBSDIRS = "${@getshlibsdirs(d)}"
1316SHLIBSDIR = "${TMPDIR}/pkgdata/${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}/shlibs"
1317SHLIBSWORKDIR = "${PKGDESTWORK}/shlibs"
1318 1309
1319python package_do_shlibs() { 1310python package_do_shlibs() {
1320 import re, pipes 1311 import re, pipes
@@ -1953,6 +1944,7 @@ do_packagedata[sstate-name] = "packagedata"
1953do_packagedata[sstate-inputdirs] = "${PKGDESTWORK}" 1944do_packagedata[sstate-inputdirs] = "${PKGDESTWORK}"
1954do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}" 1945do_packagedata[sstate-outputdirs] = "${PKGDATA_DIR}"
1955do_packagedata[sstate-lockfile-shared] = "${PACKAGELOCK}" 1946do_packagedata[sstate-lockfile-shared] = "${PACKAGELOCK}"
1947do_packagedata[stamp-extra-info] = "${MACHINE}"
1956 1948
1957python do_packagedata_setscene () { 1949python do_packagedata_setscene () {
1958 sstate_setscene(d) 1950 sstate_setscene(d)
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 2a7e1642f8..fd861e980d 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -109,7 +109,7 @@ translate_smart_to_oe() {
109 fi 109 fi
110 # Workaround for bug 3565 110 # Workaround for bug 3565
111 # Simply look to see if we know of a package with that name, if not try again! 111 # Simply look to see if we know of a package with that name, if not try again!
112 filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/$new_pkg 2>/dev/null | head -n 1` 112 filename=`ls ${PKGDATA_DIR}/runtime-reverse/$new_pkg 2>/dev/null | head -n 1`
113 if [ -n "$filename" ] ; then 113 if [ -n "$filename" ] ; then
114 found=1 114 found=1
115 break 115 break
diff --git a/meta/classes/packageinfo.bbclass b/meta/classes/packageinfo.bbclass
index 42fcd04150..7d60ace1dc 100644
--- a/meta/classes/packageinfo.bbclass
+++ b/meta/classes/packageinfo.bbclass
@@ -1,27 +1,20 @@
1python packageinfo_handler () { 1python packageinfo_handler () {
2 import oe.packagedata 2 import oe.packagedata
3 pkginfolist = [] 3 pkginfolist = []
4 tmpdir = e.data.getVar('TMPDIR', True) 4
5 target_vendor = e.data.getVar('TARGET_VENDOR', True) 5 pkgdata_dir = e.data.getVar("PKGDATA_DIR", True) + '/runtime/'
6 target_os = e.data.getVar('TARGET_OS', True) 6 if os.path.exists(pkgdata_dir):
7 package_archs = e.data.getVar('PACKAGE_ARCHS', True) 7 for root, dirs, files in os.walk(pkgdata_dir):
8 packaging = e.data.getVar('PACKAGE_CLASSES', True).split()[0].split('_')[1] 8 for pkgname in files:
9 deploy_dir = e.data.getVar('DEPLOY_DIR', True) + '/' + packaging 9 if pkgname.endswith('.packaged'):
10 10 pkgname = pkgname[:-9]
11 for arch in package_archs.split(): 11 pkgdatafile = root + pkgname
12 pkgdata_dir = tmpdir + '/pkgdata/' + arch + target_vendor + '-' + target_os + '/runtime/' 12 try:
13 if os.path.exists(pkgdata_dir): 13 sdata = oe.packagedata.read_pkgdatafile(pkgdatafile)
14 for root, dirs, files in os.walk(pkgdata_dir): 14 sdata['PKG'] = pkgname
15 for pkgname in files: 15 pkginfolist.append(sdata)
16 if pkgname.endswith('.packaged'): 16 except Exception as e:
17 pkgname = pkgname[:-9] 17 bb.warn("Failed to read pkgdata file %s: %s: %s" % (pkgdatafile, e.__class__, str(e)))
18 pkgdatafile = root + pkgname
19 try:
20 sdata = oe.packagedata.read_pkgdatafile(pkgdatafile)
21 sdata['PKG'] = pkgname
22 pkginfolist.append(sdata)
23 except Exception as e:
24 bb.warn("Failed to read pkgdata file %s: %s: %s" % (pkgdatafile, e.__class__, str(e)))
25 bb.event.fire(bb.event.PackageInfo(pkginfolist), e.data) 18 bb.event.fire(bb.event.PackageInfo(pkginfolist), e.data)
26} 19}
27 20