1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

package.bbclass: Fix shlibs and pkgconfig magic to use HOST_SYS, not TARGET_SYS

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3511 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2008-01-17 21:51:05 +00:00
parent 85d94a1332
commit 822779e598
+10 -12
View File
@@ -548,15 +548,14 @@ python package_do_shlibs() {
bb.error("PV not defined")
return
target_sys = bb.data.getVar('TARGET_SYS', d, 1)
if not target_sys:
bb.error("TARGET_SYS not defined")
host_sys = bb.data.getVar('HOST_SYS', d, 1)
if not host_sys:
bb.error("HOST_SYS not defined")
return
pkgdest = bb.data.getVar('PKGDEST', d, 1)
shlibs_dir = os.path.join(staging, target_sys, "shlibs")
old_shlibs_dir = os.path.join(staging, "shlibs")
shlibs_dir = os.path.join(staging, host_sys, "shlibs")
bb.mkdirhier(shlibs_dir)
needed = {}
@@ -613,7 +612,7 @@ python package_do_shlibs() {
shlib_provider = {}
list_re = re.compile('^(.*)\.list$')
for dir in [old_shlibs_dir, shlibs_dir]:
for dir in [shlibs_dir]:
if not os.path.exists(dir):
continue
for file in os.listdir(dir):
@@ -678,15 +677,14 @@ python package_do_pkgconfig () {
bb.error("STAGING_DIR not defined")
return
target_sys = bb.data.getVar('TARGET_SYS', d, 1)
if not target_sys:
bb.error("TARGET_SYS not defined")
host_sys = bb.data.getVar('HOST_SYS', d, 1)
if not host_sys:
bb.error("HOST_SYS not defined")
return
pkgdest = bb.data.getVar('PKGDEST', d, 1)
shlibs_dir = os.path.join(staging, target_sys, "shlibs")
old_shlibs_dir = os.path.join(staging, "shlibs")
shlibs_dir = os.path.join(staging, host_sys, "shlibs")
bb.mkdirhier(shlibs_dir)
pc_re = re.compile('(.*)\.pc$')
@@ -736,7 +734,7 @@ python package_do_pkgconfig () {
f.write('%s\n' % p)
f.close()
for dir in [old_shlibs_dir, shlibs_dir]:
for dir in [shlibs_dir]:
if not os.path.exists(dir):
continue
for file in os.listdir(dir):