mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
base.bbclass: Sync with OE (remove broken mirrors, fix fetchall task)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@880 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -194,6 +194,13 @@ oe_libinstall() {
|
|||||||
__runcmd cd $dir
|
__runcmd cd $dir
|
||||||
|
|
||||||
lafile=$libname.la
|
lafile=$libname.la
|
||||||
|
|
||||||
|
# If such file doesn't exist, try to cut version suffix
|
||||||
|
if [ ! -f "$lafile" ]; then
|
||||||
|
libname=`echo "$libname" | sed 's/-[0-9.]*$//'`
|
||||||
|
lafile=$libname.la
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f "$lafile" ]; then
|
if [ -f "$lafile" ]; then
|
||||||
# libtool archive
|
# libtool archive
|
||||||
eval `cat $lafile|grep "^library_names="`
|
eval `cat $lafile|grep "^library_names="`
|
||||||
@@ -376,10 +383,10 @@ python base_do_fetch() {
|
|||||||
raise bb.build.FuncFailed("Fetch failed: %s" % value)
|
raise bb.build.FuncFailed("Fetch failed: %s" % value)
|
||||||
}
|
}
|
||||||
|
|
||||||
addtask fetchall
|
addtask fetchall after do_fetch
|
||||||
do_fetchall[recrdeptask] = "do_fetch"
|
do_fetchall[recrdeptask] = "do_fetch"
|
||||||
python base_do_fetchall() {
|
base_do_fetchall() {
|
||||||
bb.build.exec_task('do_fetch', d)
|
:
|
||||||
}
|
}
|
||||||
|
|
||||||
def oe_unpack_file(file, data, url = None):
|
def oe_unpack_file(file, data, url = None):
|
||||||
@@ -394,7 +401,7 @@ def oe_unpack_file(file, data, url = None):
|
|||||||
cmd = None
|
cmd = None
|
||||||
if file.endswith('.tar'):
|
if file.endswith('.tar'):
|
||||||
cmd = 'tar x --no-same-owner -f %s' % file
|
cmd = 'tar x --no-same-owner -f %s' % file
|
||||||
elif file.endswith('.tgz') or file.endswith('.tar.gz'):
|
elif file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'):
|
||||||
cmd = 'tar xz --no-same-owner -f %s' % file
|
cmd = 'tar xz --no-same-owner -f %s' % file
|
||||||
elif file.endswith('.tbz') or file.endswith('.tar.bz2'):
|
elif file.endswith('.tbz') or file.endswith('.tar.bz2'):
|
||||||
cmd = 'bzip2 -dc %s | tar x --no-same-owner -f -' % file
|
cmd = 'bzip2 -dc %s | tar x --no-same-owner -f -' % file
|
||||||
@@ -505,6 +512,9 @@ python base_eventhandler() {
|
|||||||
monotone_revision = "<unknown>"
|
monotone_revision = "<unknown>"
|
||||||
try:
|
try:
|
||||||
monotone_revision = file( "%s/_MTN/revision" % path_to_packages ).read().strip()
|
monotone_revision = file( "%s/_MTN/revision" % path_to_packages ).read().strip()
|
||||||
|
if monotone_revision.startswith( "format_version" ):
|
||||||
|
monotone_revision_words = monotone_revision.split()
|
||||||
|
monotone_revision = monotone_revision_words[ monotone_revision_words.index( "old_revision" )+1][1:-1]
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
bb.data.setVar( 'OE_REVISION', monotone_revision, e.data )
|
bb.data.setVar( 'OE_REVISION', monotone_revision, e.data )
|
||||||
@@ -553,7 +563,6 @@ base_do_compile() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
base_do_stage () {
|
base_do_stage () {
|
||||||
:
|
:
|
||||||
}
|
}
|
||||||
@@ -685,6 +694,7 @@ def base_after_parse_two(d):
|
|||||||
|
|
||||||
pn = bb.data.getVar('PN', d, 1)
|
pn = bb.data.getVar('PN', d, 1)
|
||||||
|
|
||||||
|
# OBSOLETE in bitbake 1.7.4
|
||||||
srcdate = bb.data.getVar('SRCDATE_%s' % pn, d, 1)
|
srcdate = bb.data.getVar('SRCDATE_%s' % pn, d, 1)
|
||||||
if srcdate != None:
|
if srcdate != None:
|
||||||
bb.data.setVar('SRCDATE', srcdate, d)
|
bb.data.setVar('SRCDATE', srcdate, d)
|
||||||
@@ -713,11 +723,13 @@ def base_after_parse(d):
|
|||||||
bb.data.setVar('PACKAGE_ARCH', mach_arch, d)
|
bb.data.setVar('PACKAGE_ARCH', mach_arch, d)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
python () {
|
python () {
|
||||||
base_after_parse_two(d)
|
base_after_parse_two(d)
|
||||||
base_after_parse(d)
|
base_after_parse(d)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Patch handling
|
# Patch handling
|
||||||
inherit patch
|
inherit patch
|
||||||
|
|
||||||
@@ -765,10 +777,7 @@ ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.gnupg.org/gcrypt/gnutls/
|
|||||||
ftp://ftp.gnutls.org/pub/gnutls http://www.mirrors.wiretapped.net/security/network-security/gnutls/
|
ftp://ftp.gnutls.org/pub/gnutls http://www.mirrors.wiretapped.net/security/network-security/gnutls/
|
||||||
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/
|
ftp://ftp.gnutls.org/pub/gnutls ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/
|
||||||
ftp://ftp.gnutls.org/pub/gnutls http://josefsson.org/gnutls/releases/
|
ftp://ftp.gnutls.org/pub/gnutls http://josefsson.org/gnutls/releases/
|
||||||
|
http://ftp.info-zip.org/pub/infozip/src/ http://mirror.switch.ch/ftp/mirror/infozip/src/
|
||||||
|
http://ftp.info-zip.org/pub/infozip/src/ ftp://sunsite.icm.edu.pl/pub/unix/archiving/info-zip/src/
|
||||||
|
|
||||||
ftp://.*/.*/ http://www.oesources.org/source/current/
|
|
||||||
http://.*/.*/ http://www.oesources.org/source/current/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user