mirror of
https://git.yoctoproject.org/poky
synced 2026-02-16 05:33:03 +01:00
Compare commits
121 Commits
dora-10.0.
...
yocto-1.5.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a6f0dbf94 | ||
|
|
3decaf2620 | ||
|
|
24935b0c09 | ||
|
|
6a92f7ede3 | ||
|
|
8a5af7ff33 | ||
|
|
b626e109e8 | ||
|
|
e34b38b723 | ||
|
|
e07904836a | ||
|
|
50e9ccb2af | ||
|
|
c65c136746 | ||
|
|
99f46fd25c | ||
|
|
e5cb267922 | ||
|
|
b96f0217e4 | ||
|
|
337de046c8 | ||
|
|
8d0f411fdb | ||
|
|
609ae39284 | ||
|
|
7f9dd3ff42 | ||
|
|
0cdc1147d3 | ||
|
|
2b09b26cb7 | ||
|
|
98bd952a5b | ||
|
|
75c9f43129 | ||
|
|
d04d0c0735 | ||
|
|
f1276b0662 | ||
|
|
0468067e23 | ||
|
|
e128cfdf9d | ||
|
|
9a6398c144 | ||
|
|
75dfa194d8 | ||
|
|
e44e75e576 | ||
|
|
023c35795f | ||
|
|
8d326e6728 | ||
|
|
6c9133d887 | ||
|
|
a43f60cdea | ||
|
|
ec578fa12d | ||
|
|
9e89b4eec4 | ||
|
|
d0e55dd0ef | ||
|
|
0ce26e16d1 | ||
|
|
9f4ebcf2f9 | ||
|
|
84c2763fa0 | ||
|
|
e8dfafda71 | ||
|
|
f0b1753b90 | ||
|
|
97c9163d97 | ||
|
|
1a4fd0dd66 | ||
|
|
aa7eb9544a | ||
|
|
a642700cd9 | ||
|
|
9047dee64c | ||
|
|
e46d9e9f41 | ||
|
|
64909c693a | ||
|
|
5b4c3955f0 | ||
|
|
0671c08f13 | ||
|
|
10aff7de08 | ||
|
|
48d88754d8 | ||
|
|
cf2c660c91 | ||
|
|
d3f96d104b | ||
|
|
301ae75773 | ||
|
|
abc38c0259 | ||
|
|
f4f84e410b | ||
|
|
c1891d482b | ||
|
|
1481046811 | ||
|
|
0903aab236 | ||
|
|
f59b445bde | ||
|
|
9797e78a9b | ||
|
|
73880876b0 | ||
|
|
7c7349efd0 | ||
|
|
b1bf4ebb9d | ||
|
|
0be9520921 | ||
|
|
81f4de35fc | ||
|
|
1762f4fc7a | ||
|
|
6d0a79526b | ||
|
|
d81dd16ce4 | ||
|
|
59cf6ae333 | ||
|
|
05e1e29c11 | ||
|
|
af9e19bfca | ||
|
|
ad9a84b058 | ||
|
|
6757c59442 | ||
|
|
d426450b0b | ||
|
|
a64da6a9b3 | ||
|
|
f2921bdf51 | ||
|
|
01a023a5d8 | ||
|
|
e58a1499ac | ||
|
|
a39125ce01 | ||
|
|
239330fa8c | ||
|
|
396a6f6b2d | ||
|
|
fb43320d67 | ||
|
|
8299a1ee71 | ||
|
|
32c7150b04 | ||
|
|
89a5d5ec5b | ||
|
|
ccbdac5d97 | ||
|
|
1ed91fcd03 | ||
|
|
2ab41dfb60 | ||
|
|
fdad6bae43 | ||
|
|
88d7fd1b09 | ||
|
|
6241dcf765 | ||
|
|
ef00c0c0b5 | ||
|
|
675d4b4c0e | ||
|
|
a79904aee4 | ||
|
|
9366a6fbb2 | ||
|
|
22247dcebc | ||
|
|
ceacf28277 | ||
|
|
a639dd8673 | ||
|
|
64dfb07861 | ||
|
|
966f24b2ae | ||
|
|
7a08c3d230 | ||
|
|
d12d209442 | ||
|
|
26e4693667 | ||
|
|
575612402a | ||
|
|
c3cccbea7a | ||
|
|
ed63827ed2 | ||
|
|
7f070ca4f1 | ||
|
|
97af6e46da | ||
|
|
3c9d11bf7f | ||
|
|
d211e8f47a | ||
|
|
74a0e16571 | ||
|
|
bee7e3756a | ||
|
|
8c102dba49 | ||
|
|
c89cfd5720 | ||
|
|
ed0353828e | ||
|
|
9cea2e49d0 | ||
|
|
564c687c2a | ||
|
|
54534a6100 | ||
|
|
faef2d9588 | ||
|
|
3cf2d23252 |
@@ -97,7 +97,8 @@ def fork_off_task(cfg, data, workerdata, fn, task, taskname, appends, quieterror
|
||||
except TypeError:
|
||||
umask = taskdep['umask'][taskname]
|
||||
|
||||
if 'fakeroot' in taskdep and taskname in taskdep['fakeroot']:
|
||||
# We can't use the fakeroot environment in a dry run as it possibly hasn't been built
|
||||
if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not cfg.dry_run:
|
||||
envvars = (workerdata["fakerootenv"][fn] or "").split()
|
||||
for key, value in (var.split('=') for var in envvars):
|
||||
envbackup[key] = os.environ.get(key)
|
||||
|
||||
@@ -214,7 +214,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
|
||||
o.write('unset %s\n' % varExpanded)
|
||||
return 0
|
||||
|
||||
if not val:
|
||||
if val is None:
|
||||
return 0
|
||||
|
||||
val = str(val)
|
||||
@@ -229,7 +229,7 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
|
||||
|
||||
# if we're going to output this within doublequotes,
|
||||
# to a shell, we need to escape the quotes in the var
|
||||
alter = re.sub('"', '\\"', val.strip())
|
||||
alter = re.sub('"', '\\"', val)
|
||||
alter = re.sub('\n', ' \\\n', alter)
|
||||
o.write('%s="%s"\n' % (varExpanded, alter))
|
||||
return 0
|
||||
|
||||
@@ -329,7 +329,7 @@ def decodeurl(url):
|
||||
user, password, parameters).
|
||||
"""
|
||||
|
||||
m = re.compile('(?P<type>[^:]*)://((?P<user>.+)@)?(?P<location>[^;]+)(;(?P<parm>.*))?').match(url)
|
||||
m = re.compile('(?P<type>[^:]*)://((?P<user>[^/]+)@)?(?P<location>[^;]+)(;(?P<parm>.*))?').match(url)
|
||||
if not m:
|
||||
raise MalformedUrl(url)
|
||||
|
||||
@@ -807,9 +807,9 @@ def try_mirror_url(newuri, origud, ud, ld, check = False):
|
||||
os.symlink(ud.localpath, dest)
|
||||
if not os.path.exists(origud.donestamp) or origud.method.need_update(origud.url, origud, ld):
|
||||
origud.method.download(origud.url, origud, ld)
|
||||
if hasattr(ud.method,"build_mirror_data"):
|
||||
if hasattr(origud.method,"build_mirror_data"):
|
||||
origud.method.build_mirror_data(origud.url, origud, ld)
|
||||
return None
|
||||
return ud.localpath
|
||||
# Otherwise the result is a local file:// and we symlink to it
|
||||
if not os.path.exists(origud.localpath):
|
||||
if os.path.islink(origud.localpath):
|
||||
|
||||
@@ -305,8 +305,8 @@ class Git(FetchMethod):
|
||||
username = ""
|
||||
|
||||
basecmd = data.getVar("FETCHCMD_git", d, True) or "git"
|
||||
cmd = "%s ls-remote %s://%s%s%s %s" % \
|
||||
(basecmd, ud.proto, username, ud.host, ud.path, ud.branches[name])
|
||||
cmd = "%s ls-remote %s://%s%s%s refs/heads/%s refs/tags/%s" % \
|
||||
(basecmd, ud.proto, username, ud.host, ud.path, ud.branches[name], ud.branches[name])
|
||||
if ud.proto.lower() != 'file':
|
||||
bb.fetch2.check_network_access(d, cmd)
|
||||
output = runfetchcmd(cmd, d, True)
|
||||
|
||||
@@ -73,9 +73,17 @@ def update_mtime(f):
|
||||
def mark_dependency(d, f):
|
||||
if f.startswith('./'):
|
||||
f = "%s/%s" % (os.getcwd(), f[2:])
|
||||
deps = (d.getVar('__depends') or []) + [(f, cached_mtime(f))]
|
||||
d.setVar('__depends', deps)
|
||||
deps = (d.getVar('__depends') or [])
|
||||
s = (f, cached_mtime_noerror(f))
|
||||
if s not in deps:
|
||||
deps.append(s)
|
||||
d.setVar('__depends', deps)
|
||||
|
||||
def check_dependency(d, f):
|
||||
s = (f, cached_mtime_noerror(f))
|
||||
deps = (d.getVar('__depends') or [])
|
||||
return s in deps
|
||||
|
||||
def supports(fn, data):
|
||||
"""Returns true if we have a handler for this file, false otherwise"""
|
||||
for h in handlers:
|
||||
@@ -102,11 +110,14 @@ def init_parser(d):
|
||||
def resolve_file(fn, d):
|
||||
if not os.path.isabs(fn):
|
||||
bbpath = d.getVar("BBPATH", True)
|
||||
newfn = bb.utils.which(bbpath, fn)
|
||||
newfn, attempts = bb.utils.which(bbpath, fn, history=True)
|
||||
for af in attempts:
|
||||
mark_dependency(d, af)
|
||||
if not newfn:
|
||||
raise IOError("file %s not found in %s" % (fn, bbpath))
|
||||
fn = newfn
|
||||
|
||||
mark_dependency(d, fn)
|
||||
if not os.path.isfile(fn):
|
||||
raise IOError("file %s not found" % fn)
|
||||
|
||||
|
||||
@@ -77,7 +77,10 @@ def inherit(files, fn, lineno, d):
|
||||
if not os.path.isabs(file):
|
||||
dname = os.path.dirname(fn)
|
||||
bbpath = "%s:%s" % (dname, d.getVar("BBPATH", True))
|
||||
abs_fn = bb.utils.which(bbpath, file)
|
||||
abs_fn, attempts = bb.utils.which(bbpath, file, history=True)
|
||||
for af in attempts:
|
||||
if af != abs_fn:
|
||||
bb.parse.mark_dependency(d, af)
|
||||
if abs_fn:
|
||||
file = abs_fn
|
||||
|
||||
|
||||
@@ -82,9 +82,15 @@ def include(oldfn, fn, lineno, data, error_out):
|
||||
if not os.path.isabs(fn):
|
||||
dname = os.path.dirname(oldfn)
|
||||
bbpath = "%s:%s" % (dname, data.getVar("BBPATH", True))
|
||||
abs_fn = bb.utils.which(bbpath, fn)
|
||||
abs_fn, attempts = bb.utils.which(bbpath, fn, history=True)
|
||||
if abs_fn and bb.parse.check_dependency(data, abs_fn):
|
||||
bb.warn("Duplicate inclusion for %s in %s" % (abs_fn, data.getVar('FILE', True)))
|
||||
for af in attempts:
|
||||
bb.parse.mark_dependency(data, af)
|
||||
if abs_fn:
|
||||
fn = abs_fn
|
||||
elif bb.parse.check_dependency(data, fn):
|
||||
bb.warn("Duplicate inclusion for %s in %s" % (fn, data.getVar('FILE', True)))
|
||||
|
||||
from bb.parse import handle
|
||||
try:
|
||||
@@ -93,6 +99,7 @@ def include(oldfn, fn, lineno, data, error_out):
|
||||
if error_out:
|
||||
raise ParseError("Could not %(error_out)s file %(fn)s" % vars(), oldfn, lineno)
|
||||
logger.debug(2, "CONF file '%s' not found", fn)
|
||||
bb.parse.mark_dependency(data, fn)
|
||||
|
||||
# We have an issue where a UI might want to enforce particular settings such as
|
||||
# an empty DISTRO variable. If configuration files do something like assigning
|
||||
|
||||
@@ -1408,7 +1408,7 @@ class RunQueueExecuteTasks(RunQueueExecute):
|
||||
bb.event.fire(startevent, self.cfgData)
|
||||
|
||||
taskdep = self.rqdata.dataCache.task_deps[fn]
|
||||
if 'fakeroot' in taskdep and taskname in taskdep['fakeroot']:
|
||||
if 'fakeroot' in taskdep and taskname in taskdep['fakeroot'] and not self.cooker.configuration.dry_run:
|
||||
if not self.rq.fakeworker:
|
||||
self.rq.start_fakeworker(self)
|
||||
self.rq.fakeworker.stdin.write("<runtask>" + pickle.dumps((fn, task, taskname, False, self.cooker.collection.get_file_appends(fn))) + "</runtask>")
|
||||
|
||||
@@ -407,7 +407,8 @@ class URLHandle(unittest.TestCase):
|
||||
datatable = {
|
||||
"http://www.google.com/index.html" : ('http', 'www.google.com', '/index.html', '', '', {}),
|
||||
"cvs://anoncvs@cvs.handhelds.org/cvs;module=familiar/dist/ipkg" : ('cvs', 'cvs.handhelds.org', '/cvs', 'anoncvs', '', {'module': 'familiar/dist/ipkg'}),
|
||||
"cvs://anoncvs:anonymous@cvs.handhelds.org/cvs;tag=V0-99-81;module=familiar/dist/ipkg" : ('cvs', 'cvs.handhelds.org', '/cvs', 'anoncvs', 'anonymous', {'tag': 'V0-99-81', 'module': 'familiar/dist/ipkg'})
|
||||
"cvs://anoncvs:anonymous@cvs.handhelds.org/cvs;tag=V0-99-81;module=familiar/dist/ipkg" : ('cvs', 'cvs.handhelds.org', '/cvs', 'anoncvs', 'anonymous', {'tag': 'V0-99-81', 'module': 'familiar/dist/ipkg'}),
|
||||
"git://git.openembedded.org/bitbake;branch=@foo" : ('git', 'git.openembedded.org', '/bitbake', '', '', {'branch': '@foo'})
|
||||
}
|
||||
|
||||
def test_decodeurl(self):
|
||||
|
||||
@@ -199,7 +199,9 @@ class PackageListModel(gtk.ListStore):
|
||||
return self.cmp_vals(val1, val2, user_data)
|
||||
|
||||
def cmp_vals(self, val1, val2, user_data):
|
||||
if val1.startswith(user_data) and not val2.startswith(user_data):
|
||||
if val1 is None or val2 is None:
|
||||
return 0
|
||||
elif val1.startswith(user_data) and not val2.startswith(user_data):
|
||||
return -1
|
||||
elif not val1.startswith(user_data) and val2.startswith(user_data):
|
||||
return 1
|
||||
@@ -575,7 +577,9 @@ class RecipeListModel(gtk.ListStore):
|
||||
return self.cmp_vals(val1, val2, user_data)
|
||||
|
||||
def cmp_vals(self, val1, val2, user_data):
|
||||
if val1.startswith(user_data) and not val2.startswith(user_data):
|
||||
if val1 is None or val2 is None:
|
||||
return 0
|
||||
elif val1.startswith(user_data) and not val2.startswith(user_data):
|
||||
return -1
|
||||
elif not val1.startswith(user_data) and val2.startswith(user_data):
|
||||
return 1
|
||||
|
||||
@@ -355,9 +355,9 @@ class ImageDetailsPage (HobPage):
|
||||
vallist.append(base_image)
|
||||
i = 0
|
||||
for layer in layers:
|
||||
varlist.append(" - ")
|
||||
if i > layer_num_limit:
|
||||
break
|
||||
varlist.append(" - ")
|
||||
i += 1
|
||||
vallist.append("")
|
||||
i = 0
|
||||
|
||||
@@ -793,22 +793,28 @@ def copyfile(src, dest, newmtime = None, sstat = None):
|
||||
newmtime = sstat[stat.ST_MTIME]
|
||||
return newmtime
|
||||
|
||||
def which(path, item, direction = 0):
|
||||
def which(path, item, direction = 0, history = False):
|
||||
"""
|
||||
Locate a file in a PATH
|
||||
"""
|
||||
|
||||
hist = []
|
||||
paths = (path or "").split(':')
|
||||
if direction != 0:
|
||||
paths.reverse()
|
||||
|
||||
for p in paths:
|
||||
next = os.path.join(p, item)
|
||||
hist.append(next)
|
||||
if os.path.exists(next):
|
||||
if not os.path.isabs(next):
|
||||
next = os.path.abspath(next)
|
||||
if history:
|
||||
return next, hist
|
||||
return next
|
||||
|
||||
if history:
|
||||
return "", hist
|
||||
return ""
|
||||
|
||||
def to_boolean(string, default=None):
|
||||
|
||||
@@ -68,9 +68,14 @@
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.1</revnumber>
|
||||
<date>Sometime in 2013</date>
|
||||
<date>January 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.1 Release.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.2</revnumber>
|
||||
<date>May 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.2 Release.</revremark>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
||||
<copyright>
|
||||
|
||||
@@ -201,10 +201,7 @@
|
||||
|
||||
<para>
|
||||
After you have configured the <filename>adt_installer.conf</filename> file,
|
||||
run the installer using the following command.
|
||||
Be sure that you are not trying to use cross-compilation tools.
|
||||
When you run the installer, the environment must use a
|
||||
host <filename>gcc</filename>:
|
||||
run the installer using the following command:
|
||||
<literallayout class='monospaced'>
|
||||
$ cd adt-installer
|
||||
$ ./adt_installer
|
||||
|
||||
@@ -80,9 +80,14 @@
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.1</revnumber>
|
||||
<date>Sometime in 2013</date>
|
||||
<date>January 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.1 Release.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.2</revnumber>
|
||||
<date>May 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.2 Release.</revremark>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
||||
<copyright>
|
||||
|
||||
@@ -6544,8 +6544,7 @@ the details.
|
||||
<link linkend='build-directory'>Build Directory</link>:
|
||||
<literallayout class='monospaced'>
|
||||
ARCHIVER_MODE ?= "original"
|
||||
ARCHIVER_CLASS = "${@'archive-${ARCHIVER_MODE}-source' if
|
||||
ARCHIVER_MODE != 'none' else ''}"
|
||||
ARCHIVER_CLASS = "${@'archive-${ARCHIVER_MODE}-source' if ARCHIVER_MODE != 'none' else ''}"
|
||||
INHERIT += "${ARCHIVER_CLASS}"
|
||||
SOURCE_ARCHIVE_PACKAGE_TYPE = "tar"
|
||||
</literallayout>
|
||||
|
||||
@@ -58,9 +58,14 @@
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.1</revnumber>
|
||||
<date>Sometime in 2013</date>
|
||||
<date>January 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.1 Release.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.2</revnumber>
|
||||
<date>May 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.2 Release.</revremark>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
||||
<copyright>
|
||||
|
||||
@@ -43,9 +43,14 @@
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.1</revnumber>
|
||||
<date>Sometime in 2013</date>
|
||||
<date>January 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.1 Release.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.2</revnumber>
|
||||
<date>May 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.2 Release.</revremark>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
||||
<copyright>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<!ENTITY DISTRO "1.5.1">
|
||||
<!ENTITY DISTRO_COMPRESSED "151">
|
||||
<!ENTITY DISTRO "1.5.2">
|
||||
<!ENTITY DISTRO_COMPRESSED "152">
|
||||
<!ENTITY DISTRO_NAME "dora">
|
||||
<!ENTITY YOCTO_DOC_VERSION "1.5.1">
|
||||
<!ENTITY POKYVERSION "10.0.1">
|
||||
<!ENTITY POKYVERSION_COMPRESSED "1001">
|
||||
<!ENTITY YOCTO_DOC_VERSION "1.5.2">
|
||||
<!ENTITY POKYVERSION "10.0.2">
|
||||
<!ENTITY POKYVERSION_COMPRESSED "1002">
|
||||
<!ENTITY YOCTO_POKY "poky-&DISTRO_NAME;-&POKYVERSION;">
|
||||
<!ENTITY COPYRIGHT_YEAR "2010-2013">
|
||||
<!ENTITY COPYRIGHT_YEAR "2010-2014">
|
||||
<!ENTITY YOCTO_DL_URL "http://downloads.yoctoproject.org">
|
||||
<!ENTITY YOCTO_HOME_URL "http://www.yoctoproject.org">
|
||||
<!ENTITY YOCTO_LISTS_URL "http://lists.yoctoproject.org">
|
||||
@@ -16,7 +16,7 @@
|
||||
<!ENTITY YOCTO_ADTREPO_URL "http://adtrepo.yoctoproject.org">
|
||||
<!ENTITY YOCTO_RELEASE_NOTES "&YOCTO_HOME_URL;/download/yocto-project-&DISTRO_COMPRESSED;-poky-&POKYVERSION_COMPRESSED;">
|
||||
<!ENTITY OE_HOME_URL "http://www.openembedded.org">
|
||||
<!ENTITY OE_LISTS_URL "http://lists.linuxtogo.org/cgi-bin/mailman">
|
||||
<!ENTITY OE_LISTS_URL "http://lists.openembedded.org/mailman">
|
||||
<!ENTITY OE_DOCS_URL "http://docs.openembedded.org">
|
||||
<!ENTITY OH_HOME_URL "http://o-hand.com">
|
||||
<!ENTITY BITBAKE_HOME_URL "http://developer.berlios.de/projects/bitbake/">
|
||||
|
||||
@@ -43,9 +43,14 @@
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.1</revnumber>
|
||||
<date>Sometime in 2013</date>
|
||||
<date>January 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.1 Release.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.2</revnumber>
|
||||
<date>May 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.2 Release.</revremark>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
||||
<copyright>
|
||||
|
||||
@@ -78,6 +78,9 @@
|
||||
bluetooth support (integrated BT only).</para></listitem>
|
||||
<listitem><para><emphasis>cramfs:</emphasis> Include CramFS
|
||||
support.</para></listitem>
|
||||
<listitem><para><emphasis>directfb:</emphasis>
|
||||
Include DirectFB support.
|
||||
</para></listitem>
|
||||
<listitem><para><emphasis>ext2:</emphasis> Include tools for
|
||||
supporting for devices with internal HDD/Microdrive for
|
||||
storing files (instead of Flash only devices).
|
||||
|
||||
@@ -74,9 +74,14 @@
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.1</revnumber>
|
||||
<date>Sometime in 2013</date>
|
||||
<date>January 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.1 Release.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>1.5.2</revnumber>
|
||||
<date>May 2014</date>
|
||||
<revremark>Released with the Yocto Project 1.5.2 Release.</revremark>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
||||
<copyright>
|
||||
|
||||
@@ -1005,7 +1005,7 @@
|
||||
<literallayout class='monospaced'>
|
||||
mkdir -p /tmp/$USER-weston
|
||||
chmod 0700 /tmp/$USER-weston
|
||||
export XDG_RUNTIME_DIR=/tmp/$USER=weston
|
||||
export XDG_RUNTIME_DIR=/tmp/$USER-weston
|
||||
</literallayout></para></listitem>
|
||||
<listitem><para>Launch Weston in the shell:
|
||||
<literallayout class='monospaced'>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# Processes ref-manual and yocto-project-qs manual (<word>-<word>-<word> style)
|
||||
s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/[a-z]*-[a-z]*-[a-z]*\/[a-z]*-[a-z]*-[a-z]*.html#/\"link\" href=\"#/g
|
||||
s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/[a-z]*-[a-z]*-[a-z]*\/[a-z]*-[a-z]*-[a-z]*.html#/\"link\" href=\"#/g
|
||||
|
||||
# Processes all other manuals (<word>-<word> style)
|
||||
s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/[a-z]*-[a-z]*\/[a-z]*-[a-z]*.html#/\"link\" href=\"#/g
|
||||
s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/[a-z]*-[a-z]*\/[a-z]*-[a-z]*.html#/\"link\" href=\"#/g
|
||||
|
||||
# Process cases where just an external manual is referenced without an id anchor
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/yocto-project-qs\/yocto-project-qs.html\" target=\"_top\">Yocto Project Quick Start<\/a>/Yocto Project Quick Start/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/dev-manual\/dev-manual.html\" target=\"_top\">Yocto Project Development Manual<\/a>/Yocto Project Development Manual/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/adt-manual\/adt-manual.html\" target=\"_top\">Yocto Project Application Developer's Guide<\/a>/Yocto Project Application Developer's Guide/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/bsp-guide\/bsp-guide.html\" target=\"_top\">Yocto Project Board Support Package (BSP) Developer's Guide<\/a>/Yocto Project Board Support Package (BSP) Developer's Guide/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/kernel-dev\/kernel-dev.html\" target=\"_top\">Yocto Project Linux Kernel Development Manual<\/a>/Yocto Project Linux Kernel Development Manual/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.1\/ref-manual\/ref-manual.html\" target=\"_top\">Yocto Project Reference Manual<\/a>/Yocto Project Reference Manual/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/yocto-project-qs\/yocto-project-qs.html\" target=\"_top\">Yocto Project Quick Start<\/a>/Yocto Project Quick Start/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/dev-manual\/dev-manual.html\" target=\"_top\">Yocto Project Development Manual<\/a>/Yocto Project Development Manual/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/adt-manual\/adt-manual.html\" target=\"_top\">Yocto Project Application Developer's Guide<\/a>/Yocto Project Application Developer's Guide/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/bsp-guide\/bsp-guide.html\" target=\"_top\">Yocto Project Board Support Package (BSP) Developer's Guide<\/a>/Yocto Project Board Support Package (BSP) Developer's Guide/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/kernel-dev\/kernel-dev.html\" target=\"_top\">Yocto Project Linux Kernel Development Manual<\/a>/Yocto Project Linux Kernel Development Manual/g
|
||||
s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.5.2\/ref-manual\/ref-manual.html\" target=\"_top\">Yocto Project Reference Manual<\/a>/Yocto Project Reference Manual/g
|
||||
|
||||
@@ -77,12 +77,16 @@ SANITY_TESTED_DISTROS ?= " \
|
||||
Ubuntu-12.04 \n \
|
||||
Ubuntu-12.10 \n \
|
||||
Ubuntu-13.04 \n \
|
||||
Ubuntu-13.10 \n \
|
||||
Fedora-18 \n \
|
||||
Fedora-19 \n \
|
||||
Fedora-20 \n \
|
||||
CentOS-6.4 \n \
|
||||
Debian-6.0.7 \n \
|
||||
Debian-7.0 \n \
|
||||
Debian-7.1 \n \
|
||||
Debian-7.2 \n \
|
||||
Debian-7.3 \n \
|
||||
SUSE-LINUX-12.2 \n \
|
||||
openSUSE-project-12.3 \n \
|
||||
"
|
||||
|
||||
@@ -485,14 +485,15 @@ python () {
|
||||
# If we're building a target package we need to use fakeroot (pseudo)
|
||||
# in order to capture permissions, owners, groups and special files
|
||||
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
|
||||
d.setVarFlag('do_configure', 'umask', 022)
|
||||
d.setVarFlag('do_compile', 'umask', 022)
|
||||
d.setVarFlag('do_unpack', 'umask', '022')
|
||||
d.setVarFlag('do_configure', 'umask', '022')
|
||||
d.setVarFlag('do_compile', 'umask', '022')
|
||||
d.appendVarFlag('do_install', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
|
||||
d.setVarFlag('do_install', 'fakeroot', 1)
|
||||
d.setVarFlag('do_install', 'umask', 022)
|
||||
d.setVarFlag('do_install', 'umask', '022')
|
||||
d.appendVarFlag('do_package', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
|
||||
d.setVarFlag('do_package', 'fakeroot', 1)
|
||||
d.setVarFlag('do_package', 'umask', 022)
|
||||
d.setVarFlag('do_package', 'umask', '022')
|
||||
d.setVarFlag('do_package_setscene', 'fakeroot', 1)
|
||||
d.appendVarFlag('do_package_setscene', 'depends', ' virtual/fakeroot-native:do_populate_sysroot')
|
||||
d.setVarFlag('do_devshell', 'fakeroot', 1)
|
||||
@@ -581,6 +582,10 @@ python () {
|
||||
if ".zip" in srcuri:
|
||||
d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot')
|
||||
|
||||
# file is needed by rpm2cpio.sh
|
||||
if ".src.rpm" in srcuri:
|
||||
d.appendVarFlag('do_unpack', 'depends', ' file-native:do_populate_sysroot')
|
||||
|
||||
set_packagetriplet(d)
|
||||
|
||||
# 'multimachine' handling
|
||||
|
||||
@@ -5,6 +5,7 @@ def get_binconfig_mangle(d):
|
||||
s = "-e ''"
|
||||
if not bb.data.inherits_class('native', d):
|
||||
optional_quote = r"\(\"\?\)"
|
||||
s += " -e 's:=%s${base_libdir}:=\\1OEBASELIBDIR:;'" % optional_quote
|
||||
s += " -e 's:=%s${libdir}:=\\1OELIBDIR:;'" % optional_quote
|
||||
s += " -e 's:=%s${includedir}:=\\1OEINCDIR:;'" % optional_quote
|
||||
s += " -e 's:=%s${datadir}:=\\1OEDATADIR:'" % optional_quote
|
||||
@@ -12,6 +13,7 @@ def get_binconfig_mangle(d):
|
||||
s += " -e 's:=%s${exec_prefix}/:=\\1OEEXECPREFIX/:'" % optional_quote
|
||||
s += " -e 's:-L${libdir}:-LOELIBDIR:;'"
|
||||
s += " -e 's:-I${includedir}:-IOEINCDIR:;'"
|
||||
s += " -e 's:OEBASELIBDIR:${STAGING_BASELIBDIR}:;'"
|
||||
s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
|
||||
s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
|
||||
s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'"
|
||||
@@ -31,7 +33,8 @@ PACKAGE_PREPROCESS_FUNCS += "binconfig_package_preprocess"
|
||||
binconfig_package_preprocess () {
|
||||
for config in `find ${PKGD} -name '${BINCONFIG_GLOB}'`; do
|
||||
sed -i \
|
||||
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
||||
-e 's:${STAGING_BASELIBDIR}:${base_libdir}:g;' \
|
||||
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
||||
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
||||
-e 's:${STAGING_DATADIR}:${datadir}:' \
|
||||
-e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' \
|
||||
@@ -39,6 +42,7 @@ binconfig_package_preprocess () {
|
||||
done
|
||||
for lafile in `find ${PKGD} -name "*.la"` ; do
|
||||
sed -i \
|
||||
-e 's:${STAGING_BASELIBDIR}:${base_libdir}:g;' \
|
||||
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
||||
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
||||
-e 's:${STAGING_DATADIR}:${datadir}:' \
|
||||
|
||||
@@ -10,6 +10,9 @@ RDEPENDS_${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
|
||||
PERL_OWN_DIR = "${@["", "/perl-native"][(bb.data.inherits_class('native', d))]}"
|
||||
|
||||
# Determine the staged version of perl from the perl configuration file
|
||||
# Assign vardepvalue, because otherwise signature is changed before and after
|
||||
# perl is built (from None to real version in config.sh).
|
||||
get_perl_version[vardepvalue] = "${PERL_OWN_DIR}"
|
||||
def get_perl_version(d):
|
||||
import re
|
||||
cfg = d.expand('${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/config.sh')
|
||||
|
||||
@@ -95,6 +95,8 @@ inherit image-${IMAGE_TYPE_live}
|
||||
IMAGE_TYPE_vmdk = '${@base_contains("IMAGE_FSTYPES", "vmdk", "vmdk", "empty", d)}'
|
||||
inherit image-${IMAGE_TYPE_vmdk}
|
||||
|
||||
do_build[depends] += "virtual/kernel:do_deploy"
|
||||
|
||||
python () {
|
||||
deps = " " + imagetypes_getdepends(d)
|
||||
d.appendVarFlag('do_rootfs', 'depends', deps)
|
||||
@@ -408,7 +410,7 @@ log_check() {
|
||||
done
|
||||
}
|
||||
|
||||
MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|"
|
||||
MULTILIBRE_ALLOW_REP =. "${base_bindir}|${base_sbindir}|${bindir}|${sbindir}|${libexecdir}|/lib/modules/[^/]*/modules.*|"
|
||||
MULTILIB_CHECK_FILE = "${WORKDIR}/multilib_check.py"
|
||||
MULTILIB_TEMP_ROOTFS = "${WORKDIR}/multilib"
|
||||
|
||||
|
||||
@@ -210,9 +210,9 @@ JFFS2_ERASEBLOCK ?= "0x40000"
|
||||
EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers"
|
||||
|
||||
# Change these if you want default mkfs behavior (i.e. create minimal inode number)
|
||||
EXTRA_IMAGECMD_ext2 ?= "-i 8192"
|
||||
EXTRA_IMAGECMD_ext3 ?= "-i 8192"
|
||||
EXTRA_IMAGECMD_ext4 ?= "-i 8192"
|
||||
EXTRA_IMAGECMD_ext2 ?= "-i 4096"
|
||||
EXTRA_IMAGECMD_ext3 ?= "-i 4096"
|
||||
EXTRA_IMAGECMD_ext4 ?= "-i 4096"
|
||||
EXTRA_IMAGECMD_btrfs ?= ""
|
||||
EXTRA_IMAGECMD_elf ?= ""
|
||||
|
||||
|
||||
@@ -134,25 +134,14 @@ do_bundle_initramfs () {
|
||||
echo "There is kernel image bundled with initramfs: ${B}/${KERNEL_OUTPUT}.initramfs"
|
||||
install -m 0644 ${B}/${KERNEL_OUTPUT}.initramfs ${D}/boot/${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin
|
||||
echo "${B}/${KERNEL_OUTPUT}.initramfs"
|
||||
cd ${B}
|
||||
# Update deploy directory
|
||||
if [ -e "${KERNEL_OUTPUT}.initramfs" ]; then
|
||||
echo "Copying deploy kernel-initramfs image and setting up links..."
|
||||
initramfs_base_name=${INITRAMFS_BASE_NAME}
|
||||
initramfs_symlink_name=${KERNEL_IMAGETYPE}-initramfs-${MACHINE}
|
||||
install -m 0644 ${KERNEL_OUTPUT}.initramfs ${DEPLOY_DIR_IMAGE}/${initramfs_base_name}.bin
|
||||
cd ${DEPLOY_DIR_IMAGE}
|
||||
ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
|
||||
fi
|
||||
fi
|
||||
}
|
||||
do_bundle_initramfs[nostamp] = "1"
|
||||
|
||||
python do_devshell_prepend () {
|
||||
os.environ["LDFLAGS"] = ''
|
||||
}
|
||||
|
||||
addtask bundle_initramfs after do_kernel_link_vmlinux before do_build
|
||||
addtask bundle_initramfs after do_install before do_deploy
|
||||
|
||||
kernel_do_compile() {
|
||||
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
|
||||
@@ -348,8 +337,7 @@ ALLOW_EMPTY_kernel-image = "1"
|
||||
ALLOW_EMPTY_kernel-modules = "1"
|
||||
DESCRIPTION_kernel-modules = "Kernel modules meta package"
|
||||
|
||||
pkg_postinst_kernel-image () {
|
||||
update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
|
||||
pkg_postinst_kernel-base () {
|
||||
if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then
|
||||
mkdir -p $D/lib/modules/${KERNEL_VERSION}
|
||||
fi
|
||||
@@ -360,6 +348,10 @@ pkg_postinst_kernel-image () {
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst_kernel-image () {
|
||||
update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
|
||||
}
|
||||
|
||||
pkg_postrm_kernel-image () {
|
||||
update-alternatives --remove ${KERNEL_IMAGETYPE} ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} || true
|
||||
}
|
||||
@@ -464,6 +456,17 @@ kernel_do_deploy() {
|
||||
ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/${KERNEL_IMAGETYPE}
|
||||
|
||||
cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
|
||||
|
||||
cd ${B}
|
||||
# Update deploy directory
|
||||
if [ -e "${KERNEL_OUTPUT}.initramfs" ]; then
|
||||
echo "Copying deploy kernel-initramfs image and setting up links..."
|
||||
initramfs_base_name=${INITRAMFS_BASE_NAME}
|
||||
initramfs_symlink_name=${KERNEL_IMAGETYPE}-initramfs-${MACHINE}
|
||||
install -m 0644 ${KERNEL_OUTPUT}.initramfs ${DEPLOYDIR}/${initramfs_base_name}.bin
|
||||
cd ${DEPLOYDIR}
|
||||
ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
|
||||
fi
|
||||
}
|
||||
do_deploy[dirs] = "${DEPLOYDIR} ${B}"
|
||||
do_deploy[prefuncs] += "package_get_auto_pr"
|
||||
|
||||
@@ -68,15 +68,18 @@ license_create_manifest() {
|
||||
if [ -n "${COPY_LIC_DIRS}" ]; then
|
||||
for pkg in ${INSTALLED_PKGS}; do
|
||||
mkdir -p ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}
|
||||
for lic in `ls ${LICENSE_DIRECTORY}/${pkg}`; do
|
||||
pkged_pn="$(sed -n "/^PACKAGE NAME: ${pkg}$/,/^$/ \
|
||||
{s/^RECIPE NAME: //; /^PACKAGE NAME:/d; /^PACKAGE VERSION:/d; /^LICENSE:/d; p}" \
|
||||
${LICENSE_MANIFEST})"
|
||||
for lic in `ls ${LICENSE_DIRECTORY}/${pkged_pn}`; do
|
||||
# Really don't need to copy the generics as they're
|
||||
# represented in the manifest and in the actual pkg licenses
|
||||
# Doing so would make your image quite a bit larger
|
||||
if [ "${lic#generic_}" = "${lic}" ]; then
|
||||
cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic}
|
||||
cp ${LICENSE_DIRECTORY}/${pkged_pn}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic}
|
||||
else
|
||||
if [ ! -f ${IMAGE_ROOTFS}/usr/share/common-licenses/${lic} ]; then
|
||||
cp ${LICENSE_DIRECTORY}/${pkg}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/
|
||||
cp ${LICENSE_DIRECTORY}/${pkged_pn}/${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/
|
||||
fi
|
||||
ln -s ../${lic} ${IMAGE_ROOTFS}/usr/share/common-licenses/${pkg}/${lic}
|
||||
fi
|
||||
|
||||
@@ -105,6 +105,7 @@ python __anonymous () {
|
||||
clsextend.map_variable("PACKAGE_INSTALL")
|
||||
clsextend.map_variable("INITSCRIPT_PACKAGES")
|
||||
clsextend.map_variable("USERADD_PACKAGES")
|
||||
clsextend.map_variable("SYSTEMD_PACKAGES")
|
||||
}
|
||||
|
||||
PACKAGEFUNCS_append = " do_package_qa_multilib"
|
||||
|
||||
@@ -81,6 +81,7 @@ python () {
|
||||
clsextend.map_depends_variable("DEPENDS")
|
||||
clsextend.map_packagevars()
|
||||
clsextend.map_variable("PROVIDES")
|
||||
clsextend.map_regexp_variable("PACKAGES_DYNAMIC")
|
||||
}
|
||||
|
||||
addhandler nativesdk_virtclass_handler
|
||||
|
||||
@@ -253,7 +253,7 @@ if [ "$dl_path" = "" ] ; then
|
||||
echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
|
||||
exit 1
|
||||
fi
|
||||
executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111)
|
||||
executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111 -exec file '{}' \;| grep "\(executable\|dynamically linked\)" | cut -f 1 -d ':')
|
||||
|
||||
tdir=`mktemp -d`
|
||||
if [ x$tdir = x ] ; then
|
||||
|
||||
@@ -57,3 +57,8 @@ do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}"
|
||||
addtask configure_ptest_base after do_configure before do_compile
|
||||
addtask compile_ptest_base after do_compile before do_install
|
||||
addtask install_ptest_base after do_install before do_package
|
||||
|
||||
python () {
|
||||
if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
|
||||
d.setVarFlag('do_install_ptest_base', 'fakeroot', 1)
|
||||
}
|
||||
|
||||
@@ -64,6 +64,10 @@ def oe_terminal(command, title, d):
|
||||
envdata.setVar(key, str(value))
|
||||
envdata.setVarFlag(key, 'export', 1)
|
||||
|
||||
# A complex PS1 might need more escaping of chars.
|
||||
# Lets not export PS1 instead.
|
||||
envdata.delVar("PS1")
|
||||
|
||||
# Replace command with an executable wrapper script
|
||||
command = emit_terminal_func(command, envdata, d)
|
||||
|
||||
|
||||
@@ -182,6 +182,8 @@ fakeroot python populate_packages_prepend () {
|
||||
rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
|
||||
rdepends += ' ' + d.getVar('MLPREFIX') + 'base-passwd'
|
||||
rdepends += ' ' + d.getVar('MLPREFIX') + 'shadow'
|
||||
# base-files is where the default /etc/skel is packaged
|
||||
rdepends += ' ' + d.getVar('MLPREFIX') + 'base-files'
|
||||
d.setVar("RDEPENDS_%s" % pkg, rdepends)
|
||||
|
||||
# Add the user/group preinstall scripts and RDEPENDS requirements
|
||||
|
||||
@@ -43,3 +43,5 @@ PREFERRED_PROVIDER_udev ?= "${@base_contains('DISTRO_FEATURES','systemd','system
|
||||
# There are issues with runtime packages and PREFERRED_PROVIDER, see YOCTO #5044 for details
|
||||
# on this rather strange entry.
|
||||
PREFERRED_PROVIDER_bluez4 ?= "bluez4"
|
||||
# Alternative is ltp-ddt in meta-oe: meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb
|
||||
PREFERRED_PROVIDER_ltp ?= "ltp"
|
||||
|
||||
@@ -400,7 +400,7 @@ def process_changes(repopath, revision1, revision2 = 'HEAD', report_all = False)
|
||||
chg = ChangeRecord(path, filename, d.a_blob.data_stream.read(), d.b_blob.data_stream.read(), True)
|
||||
changes.append(chg)
|
||||
elif filename == 'image-info.txt':
|
||||
changes.extend(compare_dict_blobs(path, d.a_blob, d.b_blob, report_all, report_ver))
|
||||
changes.extend(compare_dict_blobs(path, d.a_blob, d.b_blob, report_all))
|
||||
elif '/image-files/' in path:
|
||||
chg = ChangeRecord(path, filename, d.a_blob.data_stream.read(), d.b_blob.data_stream.read(), True)
|
||||
changes.append(chg)
|
||||
|
||||
@@ -10,7 +10,9 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
|
||||
return x.startswith("nativesdk-")
|
||||
def isKernel(fn):
|
||||
inherits = " ".join(dataCache.inherits[fn])
|
||||
return inherits.find("module-base.bbclass") != -1 or inherits.find("linux-kernel-base.bbclass") != -1
|
||||
return inherits.find("/module-base.bbclass") != -1 or inherits.find("/linux-kernel-base.bbclass") != -1
|
||||
def isImage(fn):
|
||||
return "/image.bbclass" in " ".join(dataCache.inherits[fn])
|
||||
|
||||
# Always include our own inter-task dependencies
|
||||
if recipename == depname:
|
||||
@@ -32,7 +34,7 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCache):
|
||||
return False
|
||||
|
||||
# Exclude well defined machine specific configurations which don't change ABI
|
||||
if depname in siggen.abisaferecipes:
|
||||
if depname in siggen.abisaferecipes and not isImage(fn):
|
||||
return False
|
||||
|
||||
# Exclude well defined recipe->dependency
|
||||
|
||||
@@ -52,11 +52,11 @@ class XTerminal(Terminal):
|
||||
raise UnsupportedTerminal(self.name)
|
||||
|
||||
class Gnome(XTerminal):
|
||||
command = 'gnome-terminal --disable-factory -t "{title}" -x {command}'
|
||||
command = 'gnome-terminal -t "{title}" -x {command}'
|
||||
priority = 2
|
||||
|
||||
class Mate(XTerminal):
|
||||
command = 'mate-terminal --disable-factory -t "{title}" -x {command}'
|
||||
command = 'mate-terminal -t "{title}" -x {command}'
|
||||
priority = 2
|
||||
|
||||
class Xfce(XTerminal):
|
||||
|
||||
@@ -6,7 +6,8 @@ LICENSE="GPLv2+"
|
||||
|
||||
SECTION = "base"
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/acpid/acpid-${PV}.tar.gz \
|
||||
file://init"
|
||||
file://init \
|
||||
file://set_socket_noblock.patch "
|
||||
|
||||
inherit update-rc.d
|
||||
|
||||
|
||||
10
meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
Normal file
10
meta/recipes-bsp/acpid/acpid/set_socket_noblock.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- a/acpid.c
|
||||
+++ b/acpid.c
|
||||
@@ -307,6 +307,7 @@ main(int argc, char **argv)
|
||||
non_root_clients++;
|
||||
}
|
||||
fcntl(cli_fd, F_SETFD, FD_CLOEXEC);
|
||||
+ fcntl(cli_fd, F_SETFL, O_NONBLOCK);
|
||||
snprintf(buf, sizeof(buf)-1, "%d[%d:%d]",
|
||||
creds.pid, creds.uid, creds.gid);
|
||||
acpid_add_client(cli_fd, buf);
|
||||
@@ -11,8 +11,8 @@ SECTION = "bootloaders"
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
DEPENDS = "autogen-native flex-native"
|
||||
RDEPENDS_${PN} = "diffutils freetype xz"
|
||||
DEPENDS = "autogen-native flex-native bison-native xz"
|
||||
RDEPENDS_${PN} = "diffutils freetype"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
|
||||
@@ -37,6 +37,7 @@ inherit gettext
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[grub-mount] = "--enable-grub-mount,--disable-grub-mount,fuse"
|
||||
PACKAGECONFIG[device-mapper] = "--enable-device-mapper,--disable-device-mapper,lvm2"
|
||||
|
||||
EXTRA_OECONF = "--with-platform=pc --disable-grub-mkfont --program-prefix="" \
|
||||
--enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no"
|
||||
|
||||
@@ -25,6 +25,7 @@ SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
|
||||
file://avahi_fix_install_issue.patch \
|
||||
file://fix_for_automake_1.12.x.patch \
|
||||
file://out-of-tree.patch \
|
||||
file://reuseport-check.patch \
|
||||
"
|
||||
|
||||
USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
|
||||
@@ -98,8 +99,8 @@ FILES_libavahi-gobject = "${libdir}/libavahi-gobject.so.*"
|
||||
FILES_avahi-utils = "${bindir}/avahi-*"
|
||||
|
||||
# uclibc has no nss
|
||||
RRECOMMENDS_avahi-daemon_append_libc-glibc = "libnss-mdns"
|
||||
RRECOMMENDS_${PN}_append_libc-glibc = "libnss-mdns"
|
||||
RRECOMMENDS_avahi-daemon_append_libc-glibc = " libnss-mdns"
|
||||
RRECOMMENDS_${PN}_append_libc-glibc = " libnss-mdns"
|
||||
|
||||
RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"
|
||||
RRECOMMENDS_avahi-dev_append_libc-glibc = " gettext-dev"
|
||||
|
||||
30
meta/recipes-connectivity/avahi/files/reuseport-check.patch
Normal file
30
meta/recipes-connectivity/avahi/files/reuseport-check.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
Fix avahi-daemon when running on kernel < 3.9 (patch taken from Ubuntu).
|
||||
|
||||
Upstream-Status: Pending (unmaintained upstream)
|
||||
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
|
||||
Description: SO_REUSEPORT may not exist in running kernel
|
||||
When userspace defines SO_REUSEPORT we will attempt to enable socket
|
||||
port number reuse. However if the running kernel does not support
|
||||
this call it will fail preventing daemon startup. If this call is
|
||||
present but fails ENOPROTOOPT then we know that actually the kernel
|
||||
does not support it and we should continue as if we did not have the
|
||||
call at all. (LP: #1228204)
|
||||
.
|
||||
This patch could be removed from the debian package after jessie release.
|
||||
Author: Andy Whitcroft <apw@canonical.com>
|
||||
|
||||
Index: avahi-0.6.31/avahi-core/socket.c
|
||||
===================================================================
|
||||
--- avahi-0.6.31.orig/avahi-core/socket.c 2013-09-20 16:36:50.000000000 +0100
|
||||
+++ avahi-0.6.31/avahi-core/socket.c 2013-09-20 16:38:23.781863644 +0100
|
||||
@@ -177,7 +177,8 @@
|
||||
yes = 1;
|
||||
if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof(yes)) < 0) {
|
||||
avahi_log_warn("SO_REUSEPORT failed: %s", strerror(errno));
|
||||
- return -1;
|
||||
+ if (errno != ENOPROTOOPT)
|
||||
+ return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
|
||||
file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \
|
||||
file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e \
|
||||
file://sbc/sbc.c;beginline=1;endline=25;md5=1a40781ed30d50d8639323a184aeb191"
|
||||
DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck readline"
|
||||
DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck readline libsndfile1"
|
||||
RDEPENDS_${PN}-dev = "bluez-hcidump"
|
||||
|
||||
PACKAGECONFIG ??= "\
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
Subject: [PATCH] iproute2: de-bash scripts
|
||||
|
||||
de-bash these two scripts to make iproute2 not depend on bash.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
||||
|
||||
---
|
||||
ip/ifcfg | 15 ++++++++-------
|
||||
ip/rtpr | 2 +-
|
||||
2 files changed, 9 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/ip/ifcfg b/ip/ifcfg
|
||||
index 083d9df..60bcf1f 100644
|
||||
--- a/ip/ifcfg
|
||||
+++ b/ip/ifcfg
|
||||
@@ -1,12 +1,13 @@
|
||||
-#! /bin/bash
|
||||
+#! /bin/sh
|
||||
|
||||
CheckForwarding () {
|
||||
- local sbase fwd
|
||||
+ local sbase fwd forwarding
|
||||
sbase=/proc/sys/net/ipv4/conf
|
||||
fwd=0
|
||||
if [ -d $sbase ]; then
|
||||
for dir in $sbase/*/forwarding; do
|
||||
- fwd=$[$fwd + `cat $dir`]
|
||||
+ forwarding=`cat $dir`
|
||||
+ fwd=$(($fwd+$forwarding))
|
||||
done
|
||||
else
|
||||
fwd=2
|
||||
@@ -127,12 +128,12 @@ fi
|
||||
arping -q -A -c 1 -I $dev $ipaddr
|
||||
noarp=$?
|
||||
( sleep 2 ;
|
||||
- arping -q -U -c 1 -I $dev $ipaddr ) >& /dev/null </dev/null &
|
||||
+ arping -q -U -c 1 -I $dev $ipaddr ) > /dev/null 2>&1 </dev/null &
|
||||
|
||||
-ip route add unreachable 224.0.0.0/24 >& /dev/null
|
||||
-ip route add unreachable 255.255.255.255 >& /dev/null
|
||||
+ip route add unreachable 224.0.0.0/24 > /dev/null 2>&1
|
||||
+ip route add unreachable 255.255.255.255 > /dev/null 2>&1
|
||||
if [ `ip link ls $dev | grep -c MULTICAST` -ge 1 ]; then
|
||||
- ip route add 224.0.0.0/4 dev $dev scope global >& /dev/null
|
||||
+ ip route add 224.0.0.0/4 dev $dev scope global > /dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ $fwd -eq 0 ]; then
|
||||
diff --git a/ip/rtpr b/ip/rtpr
|
||||
index c3629fd..674198d 100644
|
||||
--- a/ip/rtpr
|
||||
+++ b/ip/rtpr
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /bin/bash
|
||||
+#! /bin/sh
|
||||
|
||||
exec tr "[\\\\]" "[
|
||||
]"
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
@@ -2,6 +2,7 @@ require iproute2.inc
|
||||
|
||||
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BPN}-${PV}.tar.xz \
|
||||
file://configure-cross.patch \
|
||||
file://0001-iproute2-de-bash-scripts.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "45fb5427fc723a0001c72b92c931ba02"
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
From 34628967f1e65dc8f34e000f0f5518e21afbfc7b Mon Sep 17 00:00:00 2001
|
||||
From: "Dr. Stephen Henson" <steve@openssl.org>
|
||||
Date: Fri, 20 Dec 2013 15:26:50 +0000
|
||||
Subject: [PATCH] Fix DTLS retransmission from previous session.
|
||||
|
||||
Upstream-Status: Backport
|
||||
commit 34628967f1e65dc8f34e000f0f5518e21afbfc7b upstream
|
||||
|
||||
For DTLS we might need to retransmit messages from the previous session
|
||||
so keep a copy of write context in DTLS retransmission buffers instead
|
||||
of replacing it after sending CCS. CVE-2013-6450.
|
||||
---
|
||||
ssl/d1_both.c | 6 ++++++
|
||||
ssl/ssl_locl.h | 2 ++
|
||||
ssl/t1_enc.c | 17 +++++++++++------
|
||||
4 files changed, 24 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
|
||||
index 65ec001..7a5596a 100644
|
||||
--- a/ssl/d1_both.c
|
||||
+++ b/ssl/d1_both.c
|
||||
@@ -214,6 +214,12 @@ dtls1_hm_fragment_new(unsigned long frag_len, int reassembly)
|
||||
static void
|
||||
dtls1_hm_fragment_free(hm_fragment *frag)
|
||||
{
|
||||
+
|
||||
+ if (frag->msg_header.is_ccs)
|
||||
+ {
|
||||
+ EVP_CIPHER_CTX_free(frag->msg_header.saved_retransmit_state.enc_write_ctx);
|
||||
+ EVP_MD_CTX_destroy(frag->msg_header.saved_retransmit_state.write_hash);
|
||||
+ }
|
||||
if (frag->fragment) OPENSSL_free(frag->fragment);
|
||||
if (frag->reassembly) OPENSSL_free(frag->reassembly);
|
||||
OPENSSL_free(frag);
|
||||
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
|
||||
index 96ce9a7..e485907 100644
|
||||
--- a/ssl/ssl_locl.h
|
||||
+++ b/ssl/ssl_locl.h
|
||||
@@ -621,6 +621,8 @@ extern SSL3_ENC_METHOD TLSv1_enc_data;
|
||||
extern SSL3_ENC_METHOD SSLv3_enc_data;
|
||||
extern SSL3_ENC_METHOD DTLSv1_enc_data;
|
||||
|
||||
+#define SSL_IS_DTLS(s) (s->method->version == DTLS1_VERSION)
|
||||
+
|
||||
#define IMPLEMENT_tls_meth_func(version, func_name, s_accept, s_connect, \
|
||||
s_get_meth) \
|
||||
const SSL_METHOD *func_name(void) \
|
||||
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
|
||||
index 72015f5..56db834 100644
|
||||
--- a/ssl/t1_enc.c
|
||||
+++ b/ssl/t1_enc.c
|
||||
@@ -414,15 +414,20 @@ int tls1_change_cipher_state(SSL *s, int which)
|
||||
s->mac_flags |= SSL_MAC_FLAG_WRITE_MAC_STREAM;
|
||||
else
|
||||
s->mac_flags &= ~SSL_MAC_FLAG_WRITE_MAC_STREAM;
|
||||
- if (s->enc_write_ctx != NULL)
|
||||
+ if (s->enc_write_ctx != NULL && !SSL_IS_DTLS(s))
|
||||
reuse_dd = 1;
|
||||
- else if ((s->enc_write_ctx=OPENSSL_malloc(sizeof(EVP_CIPHER_CTX))) == NULL)
|
||||
+ else if ((s->enc_write_ctx=EVP_CIPHER_CTX_new()) == NULL)
|
||||
goto err;
|
||||
- else
|
||||
- /* make sure it's intialized in case we exit later with an error */
|
||||
- EVP_CIPHER_CTX_init(s->enc_write_ctx);
|
||||
dd= s->enc_write_ctx;
|
||||
- mac_ctx = ssl_replace_hash(&s->write_hash,NULL);
|
||||
+ if (SSL_IS_DTLS(s))
|
||||
+ {
|
||||
+ mac_ctx = EVP_MD_CTX_create();
|
||||
+ if (!mac_ctx)
|
||||
+ goto err;
|
||||
+ s->write_hash = mac_ctx;
|
||||
+ }
|
||||
+ else
|
||||
+ mac_ctx = ssl_replace_hash(&s->write_hash,NULL);
|
||||
#ifndef OPENSSL_NO_COMP
|
||||
if (s->compress != NULL)
|
||||
{
|
||||
--
|
||||
1.7.5.4
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From 197e0ea817ad64820789d86711d55ff50d71f631 Mon Sep 17 00:00:00 2001
|
||||
From: "Dr. Stephen Henson" <steve@openssl.org>
|
||||
Date: Mon, 6 Jan 2014 14:35:04 +0000
|
||||
Subject: [PATCH] Fix for TLS record tampering bug CVE-2013-4353
|
||||
|
||||
Upstream-Status: Backport
|
||||
commit 197e0ea817ad64820789d86711d55ff50d71f631 upstream
|
||||
|
||||
ssl/s3_both.c | 6 +++++-
|
||||
3 files changed, 11 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/ssl/s3_both.c b/ssl/s3_both.c
|
||||
index 1e5dcab..53b9390 100644
|
||||
--- a/ssl/s3_both.c
|
||||
+++ b/ssl/s3_both.c
|
||||
@@ -210,7 +210,11 @@ static void ssl3_take_mac(SSL *s)
|
||||
{
|
||||
const char *sender;
|
||||
int slen;
|
||||
-
|
||||
+ /* If no new cipher setup return immediately: other functions will
|
||||
+ * set the appropriate error.
|
||||
+ */
|
||||
+ if (s->s3->tmp.new_cipher == NULL)
|
||||
+ return;
|
||||
if (s->state & SSL_ST_CONNECT)
|
||||
{
|
||||
sender=s->method->ssl3_enc->server_finished_label;
|
||||
--
|
||||
1.7.5.4
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From ca989269a2876bae79393bd54c3e72d49975fc75 Mon Sep 17 00:00:00 2001
|
||||
From: "Dr. Stephen Henson" <steve@openssl.org>
|
||||
Date: Thu, 19 Dec 2013 14:37:39 +0000
|
||||
Subject: [PATCH] Use version in SSL_METHOD not SSL structure.
|
||||
|
||||
Upstream-Status: Backport
|
||||
commit ca989269a2876bae79393bd54c3e72d49975fc75 upstream
|
||||
|
||||
When deciding whether to use TLS 1.2 PRF and record hash algorithms
|
||||
use the version number in the corresponding SSL_METHOD structure
|
||||
instead of the SSL structure. The SSL structure version is sometimes
|
||||
inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already.
|
||||
(CVE-2013-6449)
|
||||
---
|
||||
ssl/s3_lib.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c
|
||||
index bf832bb..c4ef273 100644
|
||||
--- a/ssl/s3_lib.c
|
||||
+++ b/ssl/s3_lib.c
|
||||
@@ -4286,7 +4286,7 @@ need to go to SSL_ST_ACCEPT.
|
||||
long ssl_get_algorithm2(SSL *s)
|
||||
{
|
||||
long alg2 = s->s3->tmp.new_cipher->algorithm2;
|
||||
- if (TLS1_get_version(s) >= TLS1_2_VERSION &&
|
||||
+ if (s->method->version == TLS1_2_VERSION &&
|
||||
alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF))
|
||||
return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256;
|
||||
return alg2;
|
||||
--
|
||||
1.7.5.4
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
From 96db9023b881d7cd9f379b0c154650d6c108e9a3 Mon Sep 17 00:00:00 2001
|
||||
From: "Dr. Stephen Henson" <steve@openssl.org>
|
||||
Date: Sun, 6 Apr 2014 00:51:06 +0100
|
||||
Subject: [PATCH] Add heartbeat extension bounds check.
|
||||
|
||||
A missing bounds check in the handling of the TLS heartbeat extension
|
||||
can be used to reveal up to 64k of memory to a connected client or
|
||||
server.
|
||||
|
||||
Thanks for Neel Mehta of Google Security for discovering this bug and to
|
||||
Adam Langley <agl@chromium.org> and Bodo Moeller <bmoeller@acm.org> for
|
||||
preparing the fix (CVE-2014-0160)
|
||||
|
||||
Patch (tweaked version of upstream fix without CHANGES change) borrowed
|
||||
from Debian.
|
||||
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
|
||||
|
||||
---
|
||||
ssl/d1_both.c | 26 ++++++++++++++++++--------
|
||||
ssl/t1_lib.c | 14 +++++++++-----
|
||||
3 files changed, 36 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
|
||||
index 7a5596a..2e8cf68 100644
|
||||
--- a/ssl/d1_both.c
|
||||
+++ b/ssl/d1_both.c
|
||||
@@ -1459,26 +1459,36 @@ dtls1_process_heartbeat(SSL *s)
|
||||
unsigned int payload;
|
||||
unsigned int padding = 16; /* Use minimum padding */
|
||||
|
||||
- /* Read type and payload length first */
|
||||
- hbtype = *p++;
|
||||
- n2s(p, payload);
|
||||
- pl = p;
|
||||
-
|
||||
if (s->msg_callback)
|
||||
s->msg_callback(0, s->version, TLS1_RT_HEARTBEAT,
|
||||
&s->s3->rrec.data[0], s->s3->rrec.length,
|
||||
s, s->msg_callback_arg);
|
||||
|
||||
+ /* Read type and payload length first */
|
||||
+ if (1 + 2 + 16 > s->s3->rrec.length)
|
||||
+ return 0; /* silently discard */
|
||||
+ hbtype = *p++;
|
||||
+ n2s(p, payload);
|
||||
+ if (1 + 2 + payload + 16 > s->s3->rrec.length)
|
||||
+ return 0; /* silently discard per RFC 6520 sec. 4 */
|
||||
+ pl = p;
|
||||
+
|
||||
if (hbtype == TLS1_HB_REQUEST)
|
||||
{
|
||||
unsigned char *buffer, *bp;
|
||||
+ unsigned int write_length = 1 /* heartbeat type */ +
|
||||
+ 2 /* heartbeat length */ +
|
||||
+ payload + padding;
|
||||
int r;
|
||||
|
||||
+ if (write_length > SSL3_RT_MAX_PLAIN_LENGTH)
|
||||
+ return 0;
|
||||
+
|
||||
/* Allocate memory for the response, size is 1 byte
|
||||
* message type, plus 2 bytes payload length, plus
|
||||
* payload, plus padding
|
||||
*/
|
||||
- buffer = OPENSSL_malloc(1 + 2 + payload + padding);
|
||||
+ buffer = OPENSSL_malloc(write_length);
|
||||
bp = buffer;
|
||||
|
||||
/* Enter response type, length and copy payload */
|
||||
@@ -1489,11 +1499,11 @@ dtls1_process_heartbeat(SSL *s)
|
||||
/* Random padding */
|
||||
RAND_pseudo_bytes(bp, padding);
|
||||
|
||||
- r = dtls1_write_bytes(s, TLS1_RT_HEARTBEAT, buffer, 3 + payload + padding);
|
||||
+ r = dtls1_write_bytes(s, TLS1_RT_HEARTBEAT, buffer, write_length);
|
||||
|
||||
if (r >= 0 && s->msg_callback)
|
||||
s->msg_callback(1, s->version, TLS1_RT_HEARTBEAT,
|
||||
- buffer, 3 + payload + padding,
|
||||
+ buffer, write_length,
|
||||
s, s->msg_callback_arg);
|
||||
|
||||
OPENSSL_free(buffer);
|
||||
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
|
||||
index b82fada..bddffd9 100644
|
||||
--- a/ssl/t1_lib.c
|
||||
+++ b/ssl/t1_lib.c
|
||||
@@ -2588,16 +2588,20 @@ tls1_process_heartbeat(SSL *s)
|
||||
unsigned int payload;
|
||||
unsigned int padding = 16; /* Use minimum padding */
|
||||
|
||||
- /* Read type and payload length first */
|
||||
- hbtype = *p++;
|
||||
- n2s(p, payload);
|
||||
- pl = p;
|
||||
-
|
||||
if (s->msg_callback)
|
||||
s->msg_callback(0, s->version, TLS1_RT_HEARTBEAT,
|
||||
&s->s3->rrec.data[0], s->s3->rrec.length,
|
||||
s, s->msg_callback_arg);
|
||||
|
||||
+ /* Read type and payload length first */
|
||||
+ if (1 + 2 + 16 > s->s3->rrec.length)
|
||||
+ return 0; /* silently discard */
|
||||
+ hbtype = *p++;
|
||||
+ n2s(p, payload);
|
||||
+ if (1 + 2 + payload + 16 > s->s3->rrec.length)
|
||||
+ return 0; /* silently discard per RFC 6520 sec. 4 */
|
||||
+ pl = p;
|
||||
+
|
||||
if (hbtype == TLS1_HB_REQUEST)
|
||||
{
|
||||
unsigned char *buffer, *bp;
|
||||
--
|
||||
1.9.1
|
||||
|
||||
@@ -17,6 +17,8 @@ SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
|
||||
"
|
||||
S = "${WORKDIR}/openssl-${PV}"
|
||||
|
||||
PACKAGECONFIG[perl] = ",,,"
|
||||
|
||||
AR_append = " r"
|
||||
# Avoid binaries being marked as requiring an executable stack since it
|
||||
# doesn't(which causes and this causes issues with SELinux
|
||||
@@ -37,7 +39,8 @@ PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
|
||||
FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
|
||||
FILES_libssl = "${libdir}/libssl.so.*"
|
||||
FILES_${PN} =+ " ${libdir}/ssl/*"
|
||||
FILES_${PN}-misc = "${libdir}/ssl/misc"
|
||||
FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash"
|
||||
RDEPENDS_${PN}-misc = "${@base_contains('PACKAGECONFIG', 'perl', 'perl', '', d)}"
|
||||
FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
|
||||
|
||||
# Add the openssl.cnf file to the openssl-conf package. Make the libcrypto
|
||||
@@ -151,9 +154,18 @@ do_install () {
|
||||
|
||||
install -d ${D}${includedir}
|
||||
cp --dereference -R include/openssl ${D}${includedir}
|
||||
sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
|
||||
|
||||
oe_multilib_header openssl/opensslconf.h
|
||||
if [ "${@base_contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" = "perl" ]; then
|
||||
install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
|
||||
sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${bindir}/c_rehash
|
||||
sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
|
||||
sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/tsget
|
||||
# The c_rehash utility isn't installed by the normal installation process.
|
||||
else
|
||||
rm -f ${D}${bindir}/c_rehash
|
||||
rm -f ${D}${libdir}/ssl/misc/CA.pl ${D}${libdir}/ssl/misc/tsget
|
||||
fi
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -6,7 +6,7 @@ DEPENDS += "ocf-linux"
|
||||
|
||||
CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
|
||||
|
||||
PR = "${INC_PR}.0"
|
||||
PR = "${INC_PR}.1"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
|
||||
|
||||
@@ -34,6 +34,10 @@ SRC_URI += "file://configure-targets.patch \
|
||||
file://openssl-avoid-NULL-pointer-dereference-in-EVP_DigestInit_ex.patch \
|
||||
file://openssl-avoid-NULL-pointer-dereference-in-dh_pub_encode.patch \
|
||||
file://find.pl \
|
||||
file://0001-Fix-for-TLS-record-tampering-bug-CVE-2013-4353.patch \
|
||||
file://0001-Fix-DTLS-retransmission-from-previous-session.patch \
|
||||
file://0001-Use-version-in-SSL_METHOD-not-SSL-structure.patch \
|
||||
file://CVE-2014-0160.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "66bf6f10f060d561929de96f9dfe5b8c"
|
||||
|
||||
@@ -82,9 +82,8 @@ do_install () {
|
||||
|
||||
pkg_postinst_wpa-supplicant () {
|
||||
# If we're offline, we don't need to do this.
|
||||
if [ "x$D" != "x" ]; then
|
||||
exit 0
|
||||
if [ "x$D" = "x" ]; then
|
||||
killall -q -HUP dbus-daemon || true
|
||||
fi
|
||||
|
||||
killall -q -HUP dbus-daemon || true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,375 @@
|
||||
From 170be4023bbf9e9698a709e03265945588ac8e01 Mon Sep 17 00:00:00 2001
|
||||
From: Robert Yang <liezhi.yang@windriver.com>
|
||||
Date: Tue, 26 Nov 2013 00:21:50 +0800
|
||||
Subject: [PATCH] doc/coreutils.texi: Use '@item' instead of '@itemx'
|
||||
|
||||
Use '@item' instead of '@itemx' in several places, as Texinfo 5 refuses
|
||||
to process an '@itemx' that is not preceded by an '@item'. Ensure that
|
||||
node extended names in menus and sectioning are consistent, and that
|
||||
ordering and presence of nodes in menus and in the actual text are
|
||||
consistent as well.
|
||||
|
||||
Upstream-Status: Backport [From: coreutils.7620.n7.nabble.com, bug#11828]
|
||||
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
---
|
||||
doc/coreutils.texi | 82 +++++++++++++++++++++++++++---------------------------
|
||||
1 file changed, 41 insertions(+), 41 deletions(-)
|
||||
|
||||
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
|
||||
index 588147f..2dae3fe 100644
|
||||
--- a/doc/coreutils.texi
|
||||
+++ b/doc/coreutils.texi
|
||||
@@ -555,7 +555,7 @@ symbolic link to a directory. @xref{Target directory}.
|
||||
@end macro
|
||||
|
||||
@macro optSi
|
||||
-@itemx --si
|
||||
+@item --si
|
||||
@opindex --si
|
||||
@cindex SI output
|
||||
Append an SI-style abbreviation to each size, such as @samp{M} for
|
||||
@@ -578,7 +578,7 @@ Use the @option{--si} option if you prefer powers of 1000.
|
||||
@end macro
|
||||
|
||||
@macro optStripTrailingSlashes
|
||||
-@itemx @w{@kbd{--strip-trailing-slashes}}
|
||||
+@item @w{@kbd{--strip-trailing-slashes}}
|
||||
@opindex --strip-trailing-slashes
|
||||
@cindex stripping trailing slashes
|
||||
Remove any trailing slashes from each @var{source} argument.
|
||||
@@ -2496,7 +2496,7 @@ by 1048576.
|
||||
However, if @var{n} starts with a @samp{-},
|
||||
print all but the last @var{n} bytes of each file.
|
||||
|
||||
-@itemx -n @var{n}
|
||||
+@item -n @var{n}
|
||||
@itemx --lines=@var{n}
|
||||
@opindex -n
|
||||
@opindex --lines
|
||||
@@ -2633,7 +2633,7 @@ This option is the same as @option{--follow=name --retry}. That is, tail
|
||||
will attempt to reopen a file when it is removed. Should this fail, tail
|
||||
will keep trying until it becomes accessible again.
|
||||
|
||||
-@itemx --retry
|
||||
+@item --retry
|
||||
@opindex --retry
|
||||
This option is useful mainly when following by name (i.e., with
|
||||
@option{--follow=name}).
|
||||
@@ -2641,7 +2641,7 @@ Without this option, when tail encounters a file that doesn't
|
||||
exist or is otherwise inaccessible, it reports that fact and
|
||||
never checks it again.
|
||||
|
||||
-@itemx --sleep-interval=@var{number}
|
||||
+@item --sleep-interval=@var{number}
|
||||
@opindex --sleep-interval
|
||||
Change the number of seconds to wait between iterations (the default is 1.0).
|
||||
During one iteration, every specified file is checked to see if it has
|
||||
@@ -2651,7 +2651,7 @@ Historical implementations of @command{tail} have required that
|
||||
an arbitrary floating point number (using a period before any
|
||||
fractional digits).
|
||||
|
||||
-@itemx --pid=@var{pid}
|
||||
+@item --pid=@var{pid}
|
||||
@opindex --pid
|
||||
When following by name or by descriptor, you may specify the process ID,
|
||||
@var{pid}, of the sole writer of all @var{file} arguments. Then, shortly
|
||||
@@ -2674,7 +2674,7 @@ terminate until long after the real writer has terminated.
|
||||
Note that @option{--pid} cannot be supported on some systems; @command{tail}
|
||||
will print a warning if this is the case.
|
||||
|
||||
-@itemx --max-unchanged-stats=@var{n}
|
||||
+@item --max-unchanged-stats=@var{n}
|
||||
@opindex --max-unchanged-stats
|
||||
When tailing a file by name, if there have been @var{n} (default
|
||||
n=@value{DEFAULT_MAX_N_UNCHANGED_STATS_BETWEEN_OPENS}) consecutive
|
||||
@@ -2686,7 +2686,7 @@ number of seconds between when tail prints the last pre-rotation lines
|
||||
and when it prints the lines that have accumulated in the new log file.
|
||||
This option is meaningful only when following by name.
|
||||
|
||||
-@itemx -n @var{n}
|
||||
+@item -n @var{n}
|
||||
@itemx --lines=@var{n}
|
||||
@opindex -n
|
||||
@opindex --lines
|
||||
@@ -2817,7 +2817,7 @@ option.
|
||||
@opindex --numeric-suffixes
|
||||
Use digits in suffixes rather than lower-case letters.
|
||||
|
||||
-@itemx --verbose
|
||||
+@item --verbose
|
||||
@opindex --verbose
|
||||
Write a diagnostic to standard error just before each output file is opened.
|
||||
|
||||
@@ -3055,7 +3055,7 @@ Print only the newline counts.
|
||||
@opindex --max-line-length
|
||||
Print only the maximum line lengths.
|
||||
|
||||
-@itemx --files0-from=@var{FILE}
|
||||
+@item --files0-from=@var{FILE}
|
||||
@opindex --files0-from=@var{FILE}
|
||||
@cindex including files from @command{du}
|
||||
Rather than processing files named on the command line, process those
|
||||
@@ -3250,7 +3250,7 @@ an MD5 checksum inconsistent with the associated file, or if no valid
|
||||
line is found, @command{md5sum} exits with nonzero status. Otherwise,
|
||||
it exits successfully.
|
||||
|
||||
-@itemx --status
|
||||
+@item --status
|
||||
@opindex --status
|
||||
@cindex verifying MD5 checksums
|
||||
This option is useful only when verifying checksums.
|
||||
@@ -5837,7 +5837,7 @@ command line unless the @option{--dereference-command-line} (@option{-H}),
|
||||
If a command line argument specifies a symbolic link, show information
|
||||
for the file the link references rather than for the link itself.
|
||||
|
||||
-@itemx --dereference-command-line-symlink-to-dir
|
||||
+@item --dereference-command-line-symlink-to-dir
|
||||
@opindex --dereference-command-line-symlink-to-dir
|
||||
@cindex symbolic links, dereferencing
|
||||
Do not dereference symbolic links, with one exception:
|
||||
@@ -7015,15 +7015,15 @@ If specified, the @var{attribute_list} must be a comma-separated list
|
||||
of one or more of the following strings:
|
||||
|
||||
@table @samp
|
||||
-@itemx mode
|
||||
+@item mode
|
||||
Preserve the file mode bits and access control lists.
|
||||
-@itemx ownership
|
||||
+@item ownership
|
||||
Preserve the owner and group. On most modern systems,
|
||||
only users with appropriate privileges may change the owner of a file,
|
||||
and ordinary users
|
||||
may preserve the group ownership of a file only if they happen to be
|
||||
a member of the desired group.
|
||||
-@itemx timestamps
|
||||
+@item timestamps
|
||||
Preserve the times of last access and last modification, when possible.
|
||||
In general, it is not possible to preserve these attributes
|
||||
when the affected file is a symbolic link.
|
||||
@@ -7031,12 +7031,12 @@ However, FreeBSD now provides the @code{lutimes} function, which makes
|
||||
it possibile even for symbolic links. However, this implementation does
|
||||
not yet take advantage of that.
|
||||
@c FIXME: once we provide lutimes support, update the above.
|
||||
-@itemx links
|
||||
+@item links
|
||||
Preserve in the destination files
|
||||
any links between corresponding source files.
|
||||
@c Give examples illustrating how hard links are preserved.
|
||||
@c Also, show how soft links map to hard links with -L and -H.
|
||||
-@itemx all
|
||||
+@item all
|
||||
Preserve all file attributes.
|
||||
Equivalent to specifying all of the above.
|
||||
@end table
|
||||
@@ -7049,12 +7049,12 @@ mode bits of the corresponding source file, minus the bits set in the
|
||||
umask and minus the set-user-ID and set-group-ID bits.
|
||||
@xref{File permissions}.
|
||||
|
||||
-@itemx @w{@kbd{--no-preserve}=@var{attribute_list}}
|
||||
+@item @w{@kbd{--no-preserve}=@var{attribute_list}}
|
||||
@cindex file information, preserving
|
||||
Do not preserve the specified attributes. The @var{attribute_list}
|
||||
has the same form as for @option{--preserve}.
|
||||
|
||||
-@itemx --parents
|
||||
+@item --parents
|
||||
@opindex --parents
|
||||
@cindex parent directories and @command{cp}
|
||||
Form the name of each destination file by appending to the target
|
||||
@@ -7070,7 +7070,7 @@ cp --parents a/b/c existing_dir
|
||||
copies the file @file{a/b/c} to @file{existing_dir/a/b/c}, creating
|
||||
any missing intermediate directories.
|
||||
|
||||
-@itemx @w{@kbd{--reply}=@var{how}}
|
||||
+@item @w{@kbd{--reply}=@var{how}}
|
||||
@opindex --reply
|
||||
@cindex interactivity
|
||||
@c FIXME: remove in 2008
|
||||
@@ -7742,7 +7742,7 @@ Prompt whether to overwrite each existing destination file, regardless
|
||||
of its permissions.
|
||||
If the response is not affirmative, the file is skipped.
|
||||
|
||||
-@itemx @w{@kbd{--reply}=@var{how}}
|
||||
+@item @w{@kbd{--reply}=@var{how}}
|
||||
@opindex --reply
|
||||
@cindex interactivity
|
||||
@c FIXME: remove in 2008
|
||||
@@ -7847,7 +7847,7 @@ files are named or if a recursive removal is requested. Ignore any
|
||||
previous @option{--force} (@option{-f}) option. Equivalent to
|
||||
@option{--interactive=once}.
|
||||
|
||||
-@itemx --interactive [=@var{when}]
|
||||
+@item --interactive [=@var{when}]
|
||||
@opindex --interactive
|
||||
Specify when to issue an interactive prompt. @var{when} may be
|
||||
omitted, or one of:
|
||||
@@ -7866,7 +7866,7 @@ removal is requested. Equivalent to @option{-I}.
|
||||
Specifying @option{--interactive} and no @var{when} is equivalent to
|
||||
@option{--interactive=always}.
|
||||
|
||||
-@itemx --one-file-system
|
||||
+@item --one-file-system
|
||||
@opindex --one-file-system
|
||||
@cindex one file system, restricting @command{rm} to
|
||||
When removing a hierarchy recursively, skip any directory that is on a
|
||||
@@ -7884,7 +7884,7 @@ warn about and skip directories on other file systems.
|
||||
Of course, this will not save your @file{/home} if it and your
|
||||
chroot happen to be on the same file system.
|
||||
|
||||
-@itemx --preserve-root
|
||||
+@item --preserve-root
|
||||
@opindex --preserve-root
|
||||
@cindex root directory, disallow recursive destruction
|
||||
Fail upon any attempt to remove the root directory, @file{/},
|
||||
@@ -7892,7 +7892,7 @@ when used with the @option{--recursive} option.
|
||||
This is the default behavior.
|
||||
@xref{Treating / specially}.
|
||||
|
||||
-@itemx --no-preserve-root
|
||||
+@item --no-preserve-root
|
||||
@opindex --no-preserve-root
|
||||
@cindex root directory, allow recursive destruction
|
||||
Do not treat @file{/} specially when removing recursively.
|
||||
@@ -8874,7 +8874,7 @@ actually changes.
|
||||
Do not print error messages about files whose ownership cannot be
|
||||
changed.
|
||||
|
||||
-@itemx @w{@kbd{--from}=@var{old-owner}}
|
||||
+@item @w{@kbd{--from}=@var{old-owner}}
|
||||
@opindex --from
|
||||
@cindex symbolic links, changing owner
|
||||
Change a @var{file}'s ownership only if it has current attributes specified
|
||||
@@ -8928,14 +8928,14 @@ is a symbolic link.
|
||||
By default, no diagnostic is issued for symbolic links encountered
|
||||
during a recursive traversal, but see @option{--verbose}.
|
||||
|
||||
-@itemx --preserve-root
|
||||
+@item --preserve-root
|
||||
@opindex --preserve-root
|
||||
@cindex root directory, disallow recursive modification
|
||||
Fail upon any attempt to recursively change the root directory, @file{/}.
|
||||
Without @option{--recursive}, this option has no effect.
|
||||
@xref{Treating / specially}.
|
||||
|
||||
-@itemx --no-preserve-root
|
||||
+@item --no-preserve-root
|
||||
@opindex --no-preserve-root
|
||||
@cindex root directory, allow recursive modification
|
||||
Cancel the effect of any preceding @option{--preserve-root} option.
|
||||
@@ -9054,14 +9054,14 @@ is a symbolic link.
|
||||
By default, no diagnostic is issued for symbolic links encountered
|
||||
during a recursive traversal, but see @option{--verbose}.
|
||||
|
||||
-@itemx --preserve-root
|
||||
+@item --preserve-root
|
||||
@opindex --preserve-root
|
||||
@cindex root directory, disallow recursive modification
|
||||
Fail upon any attempt to recursively change the root directory, @file{/}.
|
||||
Without @option{--recursive}, this option has no effect.
|
||||
@xref{Treating / specially}.
|
||||
|
||||
-@itemx --no-preserve-root
|
||||
+@item --no-preserve-root
|
||||
@opindex --no-preserve-root
|
||||
@cindex root directory, allow recursive modification
|
||||
Cancel the effect of any preceding @option{--preserve-root} option.
|
||||
@@ -9175,14 +9175,14 @@ actually changes.
|
||||
Do not print error messages about files whose permissions cannot be
|
||||
changed.
|
||||
|
||||
-@itemx --preserve-root
|
||||
+@item --preserve-root
|
||||
@opindex --preserve-root
|
||||
@cindex root directory, disallow recursive modification
|
||||
Fail upon any attempt to recursively change the root directory, @file{/}.
|
||||
Without @option{--recursive}, this option has no effect.
|
||||
@xref{Treating / specially}.
|
||||
|
||||
-@itemx --no-preserve-root
|
||||
+@item --no-preserve-root
|
||||
@opindex --no-preserve-root
|
||||
@cindex root directory, allow recursive modification
|
||||
Cancel the effect of any preceding @option{--preserve-root} option.
|
||||
@@ -9603,7 +9603,7 @@ The program accepts the following options. Also see @ref{Common options}.
|
||||
@opindex --all
|
||||
Show counts for all files, not just directories.
|
||||
|
||||
-@itemx --apparent-size
|
||||
+@item --apparent-size
|
||||
@opindex --apparent-size
|
||||
Print apparent sizes, rather than disk usage. The apparent size of a
|
||||
file is the number of bytes reported by @code{wc -c} on regular files,
|
||||
@@ -9654,7 +9654,7 @@ Does not affect other symbolic links. This is helpful for finding
|
||||
out the disk usage of directories, such as @file{/usr/tmp}, which
|
||||
are often symbolic links.
|
||||
|
||||
-@itemx --files0-from=@var{FILE}
|
||||
+@item --files0-from=@var{FILE}
|
||||
@opindex --files0-from=@var{FILE}
|
||||
@cindex including files from @command{du}
|
||||
Rather than processing files named on the command line, process those
|
||||
@@ -9733,7 +9733,7 @@ Output a null byte at the end of each line, rather than a newline.
|
||||
This option enables other programs to parse the output of @command{du}
|
||||
even when that output would contain file names with embedded newlines.
|
||||
|
||||
-@itemx --si
|
||||
+@item --si
|
||||
@opindex --si
|
||||
@cindex SI output
|
||||
Append an SI-style abbreviation to each size, such as @samp{MB} for
|
||||
@@ -9754,13 +9754,13 @@ Display only a total for each argument.
|
||||
Report the size of each directory separately, not including the sizes
|
||||
of subdirectories.
|
||||
|
||||
-@itemx --time
|
||||
+@item --time
|
||||
@opindex --time
|
||||
@cindex last modified dates, displaying in @command{du}
|
||||
Show time of the most recent modification of any file in the directory,
|
||||
or any of its subdirectories.
|
||||
|
||||
-@itemx --time=ctime
|
||||
+@item --time=ctime
|
||||
@itemx --time=status
|
||||
@itemx --time=use
|
||||
@opindex --time
|
||||
@@ -9770,7 +9770,7 @@ or any of its subdirectories.
|
||||
Show the most recent status change time (the @samp{ctime} in the inode) of
|
||||
any file in the directory, instead of the modification time.
|
||||
|
||||
-@itemx --time=atime
|
||||
+@item --time=atime
|
||||
@itemx --time=access
|
||||
@opindex --time
|
||||
@opindex atime@r{, show the most recent}
|
||||
@@ -9911,7 +9911,7 @@ $ stat --format=%d:%i / /usr
|
||||
2057:2
|
||||
@end example
|
||||
|
||||
-@itemx --printf=@var{format}
|
||||
+@item --printf=@var{format}
|
||||
@opindex --printf=@var{format}
|
||||
@cindex output format
|
||||
Use @var{format} rather than the default format.
|
||||
@@ -12240,7 +12240,7 @@ Overrides all other options.
|
||||
@opindex -s
|
||||
Ignored; for compatibility with other versions of @command{who}.
|
||||
|
||||
-@itemx -u
|
||||
+@item -u
|
||||
@opindex -u
|
||||
@cindex idle time
|
||||
After the login time, print the number of hours and minutes that the
|
||||
@@ -12254,7 +12254,7 @@ user has been idle. @samp{.} means the user was active in the last minute.
|
||||
List only the entries that correspond to processes via which the
|
||||
system is waiting for a user to login. The user name is always @samp{LOGIN}.
|
||||
|
||||
-@itemx --lookup
|
||||
+@item --lookup
|
||||
@opindex --lookup
|
||||
Attempt to canonicalize hostnames found in utmp through a DNS lookup. This
|
||||
is not the default because it can cause significant delays on systems with
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
@@ -24,6 +24,7 @@ SRC_URI_BASE = "${GNU_MIRROR}/coreutils/${BP}.tar.bz2 \
|
||||
file://man-touch.patch \
|
||||
file://coreutils_fix_for_automake-1.12.patch \
|
||||
file://coreutils-build-with-acl.patch \
|
||||
file://coreutils-fix-texinfo.patch \
|
||||
"
|
||||
|
||||
SRC_URI = "${SRC_URI_BASE} file://fix_for_manpage_building.patch"
|
||||
|
||||
@@ -5,10 +5,7 @@ SECTION = "base"
|
||||
LICENSE = "AFL-2 | GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \
|
||||
file://dbus/dbus.h;beginline=6;endline=20;md5=7755c9d7abccd5dbd25a6a974538bb3c"
|
||||
X11DEPENDS = "virtual/libx11 libsm"
|
||||
DEPENDS = "expat virtual/libintl ${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}"
|
||||
DEPENDS_class-native = "expat-native virtual/libintl-native"
|
||||
DEPENDS_class-nativesdk = "nativesdk-expat virtual/nativesdk-libintl"
|
||||
DEPENDS = "expat virtual/libintl"
|
||||
RDEPENDS_dbus = "${@base_contains('DISTRO_FEATURES', 'ptest', 'dbus-ptest-ptest', '', d)}"
|
||||
RDEPENDS_class-native = ""
|
||||
|
||||
@@ -72,21 +69,23 @@ pkg_postinst_dbus() {
|
||||
fi
|
||||
}
|
||||
|
||||
EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"
|
||||
EXTRA_OECONF_X_class-native = "--without-x --disable-x11-autolaunch"
|
||||
# TODO: would like to --enable-systemd but that's a circular build-dependency
|
||||
# between systemd<->dbus
|
||||
EXTRA_OECONF_SYSTEMD = "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
|
||||
|
||||
EXTRA_OECONF = "--disable-tests \
|
||||
--disable-checks \
|
||||
--disable-xml-docs \
|
||||
--disable-doxygen-docs \
|
||||
--disable-libaudit \
|
||||
--with-xml=expat \
|
||||
--disable-systemd \
|
||||
${EXTRA_OECONF_SYSTEMD} \
|
||||
${EXTRA_OECONF_X}"
|
||||
--disable-systemd"
|
||||
|
||||
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
|
||||
${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
|
||||
PACKAGECONFIG_class-native = ""
|
||||
PACKAGECONFIG_class-nativesdk = ""
|
||||
|
||||
# Would like to --enable-systemd but that's a circular build-dependency between
|
||||
# systemd<->dbus
|
||||
PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir"
|
||||
PACKAGECONFIG[x11] = "--with-x --enable-x11-autolaunch,--without-x --disable-x11-autolaunch, virtual/libx11 libsm"
|
||||
|
||||
do_install() {
|
||||
autotools_do_install
|
||||
|
||||
@@ -0,0 +1,227 @@
|
||||
Upstream-Status: Backport
|
||||
|
||||
Concatenated fix of PowerPC time related system calls in eglibc 2.18 taken
|
||||
from upstream glibc. Eglibc 2.17 does not have this issue and the patches are
|
||||
already part of 2.19.
|
||||
This compilation includes the following committs:
|
||||
|
||||
|
||||
PowerPC: Fix vDSO missing ODP entries
|
||||
|
||||
author Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||
Thu, 7 Nov 2013 11:34:22 +0000 (05:34 -0600)
|
||||
|
||||
This patch fixes the vDSO symbol used directed in IFUNC resolver where
|
||||
they do not have an associated ODP entry leading to undefined behavior
|
||||
in some cases. It adds an artificial OPD static entry to such cases
|
||||
and set its TOC to non 0 to avoid triggering lazy resolutions.
|
||||
|
||||
|
||||
Update copyright notices with scripts/update-copyrights
|
||||
|
||||
author Allan McRae <allan@archlinux.org>
|
||||
Wed, 1 Jan 2014 11:03:15 +0000 (21:03 +1000)
|
||||
|
||||
((Only for files otherwise touched by this patch))
|
||||
|
||||
|
||||
PowerPC: Fix ftime gettimeofday internal call returning bogus data
|
||||
|
||||
author Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||
Thu, 16 Jan 2014 12:53:18 +0000 (06:53 -0600)
|
||||
|
||||
This patches fixes BZ#16430 by setting a different symbol for internal
|
||||
GLIBC calls that points to ifunc resolvers. For PPC32, if the symbol
|
||||
is defined as hidden (which is the case for gettimeofday and time) the
|
||||
compiler will create local branches (symbol@local) and linker will not
|
||||
create PLT calls (required for IFUNC). This will leads to internal symbol
|
||||
calling the IFUNC resolver instead of the resolved symbol.
|
||||
For PPC64 this behavior does not occur because a call to a function in
|
||||
another translation unit might use a different toc pointer thus requiring
|
||||
a PLT call.
|
||||
|
||||
|
||||
PowerPC: Fix gettimeofday ifunc selection
|
||||
|
||||
author Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||
Mon, 20 Jan 2014 18:29:51 +0000 (12:29 -0600)
|
||||
|
||||
The IFUNC selector for gettimeofday runs before _libc_vdso_platform_setup where
|
||||
__vdso_gettimeofday is set. The selector then sets __gettimeofday (the internal
|
||||
version used within GLIBC) to use the system call version instead of the vDSO one.
|
||||
This patch changes the check if vDSO is available to get its value directly
|
||||
instead of rely on __vdso_gettimeofday.
|
||||
|
||||
This patch changes it by getting the vDSO value directly.
|
||||
|
||||
It fixes BZ#16431.
|
||||
|
||||
|
||||
---
|
||||
diff -pruN libc.orig/sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h libc/sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
|
||||
--- libc.orig/sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
|
||||
+++ libc/sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Resolve function pointers to VDSO functions.
|
||||
- Copyright (C) 2005-2013 Free Software Foundation, Inc.
|
||||
+ Copyright (C) 2005-2014 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -34,12 +34,32 @@ extern void *__vdso_getcpu;
|
||||
|
||||
extern void *__vdso_time;
|
||||
|
||||
-/* This macro is needed for PPC64 to return a skeleton OPD entry of a vDSO
|
||||
- symbol. This works because _dl_vdso_vsym always return the function
|
||||
- address, and no vDSO symbols use the TOC or chain pointers from the OPD
|
||||
- so we can allow them to be garbage. */
|
||||
#if defined(__PPC64__) || defined(__powerpc64__)
|
||||
-#define VDSO_IFUNC_RET(value) ((void *) &(value))
|
||||
+/* The correct solution is for _dl_vdso_vsym to return the address of the OPD
|
||||
+ for the kernel VDSO function. That address would then be stored in the
|
||||
+ __vdso_* variables and returned as the result of the IFUNC resolver function.
|
||||
+ Yet, the kernel does not contain any OPD entries for the VDSO functions
|
||||
+ (incomplete implementation). However, PLT relocations for IFUNCs still expect
|
||||
+ the address of an OPD to be returned from the IFUNC resolver function (since
|
||||
+ PLT entries on PPC64 are just copies of OPDs). The solution for now is to
|
||||
+ create an artificial static OPD for each VDSO function returned by a resolver
|
||||
+ function. The TOC value is set to a non-zero value to avoid triggering lazy
|
||||
+ symbol resolution via .glink0/.plt0 for a zero TOC (requires thread-safe PLT
|
||||
+ sequences) when the dynamic linker isn't prepared for it e.g. RTLD_NOW. None
|
||||
+ of the kernel VDSO routines use the TOC or AUX values so any non-zero value
|
||||
+ will work. Note that function pointer comparisons will not use this artificial
|
||||
+ static OPD since those are resolved via ADDR64 relocations and will point at
|
||||
+ the non-IFUNC default OPD for the symbol. Lastly, because the IFUNC relocations
|
||||
+ are processed immediately at startup the resolver functions and this code need
|
||||
+ not be thread-safe, but if the caller writes to a PLT slot it must do so in a
|
||||
+ thread-safe manner with all the required barriers. */
|
||||
+#define VDSO_IFUNC_RET(value) \
|
||||
+ ({ \
|
||||
+ static Elf64_FuncDesc vdso_opd = { .fd_toc = ~0x0 }; \
|
||||
+ vdso_opd.fd_func = (Elf64_Addr)value; \
|
||||
+ &vdso_opd; \
|
||||
+ })
|
||||
+
|
||||
#else
|
||||
#define VDSO_IFUNC_RET(value) ((void *) (value))
|
||||
#endif
|
||||
diff -pruN libc.orig/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c libc/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
|
||||
--- libc.orig/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
|
||||
+++ libc/sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
|
||||
@@ -1,4 +1,4 @@
|
||||
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
|
||||
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
# include <dl-vdso.h>
|
||||
# include <bits/libc-vdso.h>
|
||||
+# include <dl-machine.h>
|
||||
|
||||
void *gettimeofday_ifunc (void) __asm__ ("__gettimeofday");
|
||||
|
||||
@@ -34,17 +35,36 @@ __gettimeofday_syscall (struct timeval *
|
||||
void *
|
||||
gettimeofday_ifunc (void)
|
||||
{
|
||||
+ PREPARE_VERSION (linux2615, "LINUX_2.6.15", 123718565);
|
||||
+
|
||||
/* If the vDSO is not available we fall back syscall. */
|
||||
- return (__vdso_gettimeofday ? VDSO_IFUNC_RET (__vdso_gettimeofday)
|
||||
- : __gettimeofday_syscall);
|
||||
+ void *vdso_gettimeofday = _dl_vdso_vsym ("__kernel_gettimeofday", &linux2615);
|
||||
+ return (vdso_gettimeofday ? VDSO_IFUNC_RET (vdso_gettimeofday)
|
||||
+ : (void*)__gettimeofday_syscall);
|
||||
}
|
||||
asm (".type __gettimeofday, %gnu_indirect_function");
|
||||
|
||||
/* This is doing "libc_hidden_def (__gettimeofday)" but the compiler won't
|
||||
let us do it in C because it doesn't know we're defining __gettimeofday
|
||||
here in this file. */
|
||||
-asm (".globl __GI___gettimeofday\n"
|
||||
- "__GI___gettimeofday = __gettimeofday");
|
||||
+asm (".globl __GI___gettimeofday");
|
||||
+
|
||||
+/* __GI___gettimeofday is defined as hidden and for ppc32 it enables the
|
||||
+ compiler make a local call (symbol@local) for internal GLIBC usage. It
|
||||
+ means the PLT won't be used and the ifunc resolver will be called directly.
|
||||
+ For ppc64 a call to a function in another translation unit might use a
|
||||
+ different toc pointer thus disallowing direct branchess and making internal
|
||||
+ ifuncs calls safe. */
|
||||
+#ifdef __powerpc64__
|
||||
+asm ("__GI___gettimeofday = __gettimeofday");
|
||||
+#else
|
||||
+int
|
||||
+__gettimeofday_vsyscall (struct timeval *tv, struct timezone *tz)
|
||||
+{
|
||||
+ return INLINE_VSYSCALL (gettimeofday, 2, tv, tz);
|
||||
+}
|
||||
+asm ("__GI___gettimeofday = __gettimeofday_vsyscall");
|
||||
+#endif
|
||||
|
||||
#else
|
||||
|
||||
diff -pruN libc.orig/sysdeps/unix/sysv/linux/powerpc/time.c libc/sysdeps/unix/sysv/linux/powerpc/time.c
|
||||
--- libc.orig/sysdeps/unix/sysv/linux/powerpc/time.c
|
||||
+++ libc/sysdeps/unix/sysv/linux/powerpc/time.c
|
||||
@@ -1,5 +1,5 @@
|
||||
/* time system call for Linux/PowerPC.
|
||||
- Copyright (C) 2013 Free Software Foundation, Inc.
|
||||
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -20,7 +20,9 @@
|
||||
|
||||
# include <time.h>
|
||||
# include <sysdep.h>
|
||||
+# include <dl-vdso.h>
|
||||
# include <bits/libc-vdso.h>
|
||||
+# include <dl-machine.h>
|
||||
|
||||
void *time_ifunc (void) asm ("time");
|
||||
|
||||
@@ -43,17 +45,36 @@ time_syscall (time_t *t)
|
||||
void *
|
||||
time_ifunc (void)
|
||||
{
|
||||
+ PREPARE_VERSION (linux2615, "LINUX_2.6.15", 123718565);
|
||||
+
|
||||
/* If the vDSO is not available we fall back to the syscall. */
|
||||
- return (__vdso_time ? VDSO_IFUNC_RET (__vdso_time)
|
||||
- : time_syscall);
|
||||
+ void *vdso_time = _dl_vdso_vsym ("__kernel_time", &linux2615);
|
||||
+ return (vdso_time ? VDSO_IFUNC_RET (vdso_time)
|
||||
+ : (void*)time_syscall);
|
||||
}
|
||||
asm (".type time, %gnu_indirect_function");
|
||||
|
||||
/* This is doing "libc_hidden_def (time)" but the compiler won't
|
||||
* let us do it in C because it doesn't know we're defining time
|
||||
* here in this file. */
|
||||
-asm (".globl __GI_time\n"
|
||||
- "__GI_time = time");
|
||||
+asm (".globl __GI_time");
|
||||
+
|
||||
+/* __GI_time is defined as hidden and for ppc32 it enables the
|
||||
+ compiler make a local call (symbol@local) for internal GLIBC usage. It
|
||||
+ means the PLT won't be used and the ifunc resolver will be called directly.
|
||||
+ For ppc64 a call to a function in another translation unit might use a
|
||||
+ different toc pointer thus disallowing direct branchess and making internal
|
||||
+ ifuncs calls safe. */
|
||||
+#ifdef __powerpc64__
|
||||
+asm ("__GI_time = time");
|
||||
+#else
|
||||
+time_t
|
||||
+__time_vsyscall (time_t *t)
|
||||
+{
|
||||
+ return INLINE_VSYSCALL (time, 1, t);
|
||||
+}
|
||||
+asm ("__GI_time = __time_vsyscall");
|
||||
+#endif
|
||||
|
||||
#else
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
require eglibc-common.inc
|
||||
|
||||
DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
|
||||
|
||||
|
||||
@@ -8,7 +8,9 @@ LOCALEBASEPN = "${MLPREFIX}eglibc"
|
||||
# eglibc-collateral.inc inhibits all default deps, but do_package needs objcopy
|
||||
# ERROR: objcopy failed with exit code 127 (cmd was 'i586-webos-linux-objcopy' --only-keep-debug 'eglibc-locale/2.17-r0/package/usr/lib/gconv/IBM1166.so' 'eglibc-locale/2.17-r0/package/usr/lib/gconv/.debug/IBM1166.so')
|
||||
# ERROR: Function failed: split_and_strip_files
|
||||
DEPENDS_class-target = "virtual/${TARGET_PREFIX}binutils"
|
||||
BINUTILSDEP = "virtual/${MLPREFIX}${TARGET_PREFIX}binutils:do_populate_sysroot"
|
||||
BINUTILSDEP_class-nativesdk = "virtual/${TARGET_PREFIX}binutils-crosssdk:do_populate_sysroot"
|
||||
do_package[depends] += "${BINUTILSDEP}"
|
||||
|
||||
# Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION
|
||||
# is set. The idea is to avoid running localedef on the target (at first boot)
|
||||
|
||||
@@ -28,6 +28,7 @@ SRC_URI = "http://downloads.yoctoproject.org/releases/eglibc/eglibc-${PV}-svnr23
|
||||
file://fix-tibetian-locales.patch \
|
||||
file://0001-ARM-Pass-dl_hwcap-to-IFUNC-resolver.patch \
|
||||
file://make-4.patch \
|
||||
file://ppc-fix-time-related-syscalls.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "b395b021422a027d89884992e91734fc"
|
||||
SRC_URI[sha256sum] = "15f564b45dc5dd65faf0875579e3447961ae61e876933384ae05d19328539ad4"
|
||||
|
||||
@@ -21,7 +21,7 @@ IMAGE_FSTYPES = "vmdk"
|
||||
|
||||
inherit core-image
|
||||
|
||||
SRCREV ?= "785b7e392922453698dd8b21cae5b229a9352031"
|
||||
SRCREV ?= "e07904836a5dc71bb68577eeb4963bc7ecde0224"
|
||||
SRC_URI = "git://git.yoctoproject.org/poky \
|
||||
file://Yocto_Build_Appliance.vmx \
|
||||
file://Yocto_Build_Appliance.vmxf \
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
journald: fix fd leak in journal_file_empty
|
||||
Before my previous patch, journal_file_empty wasn't be called with the
|
||||
correct filename. Now that it's being called with the correct filename
|
||||
it leaks file descriptors. This patch closes the file descriptors before
|
||||
returning.
|
||||
|
||||
Signed-off-by: George McCollister <george.mccollister@gmail.com>
|
||||
|
||||
|
||||
Index: systemd-206/src/journal/journal-vacuum.c
|
||||
===================================================================
|
||||
--- systemd-206.orig/src/journal/journal-vacuum.c 2013-07-21 19:43:28.146183128 -0300
|
||||
+++ systemd-206/src/journal/journal-vacuum.c 2014-01-29 20:43:27.492343295 -0200
|
||||
@@ -129,9 +129,9 @@
|
||||
}
|
||||
|
||||
static int journal_file_empty(int dir_fd, const char *name) {
|
||||
- int fd, r;
|
||||
+ int r;
|
||||
le64_t n_entries;
|
||||
-
|
||||
+ _cleanup_close_ int fd;
|
||||
fd = openat(dir_fd, name, O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
|
||||
if (fd < 0)
|
||||
return -errno;
|
||||
|
||||
Upstream-Status: Backport [207]
|
||||
@@ -0,0 +1,37 @@
|
||||
journald: fix vacuuming of archived journals
|
||||
d_name is modified on line 227 so if the entire journal name is needed
|
||||
again p must be used. Before this change when journal_file_empty was called
|
||||
on archived journals it would always return with -2.
|
||||
|
||||
Signed-off-by: George McCollister <george.mccollister@gmail.com>
|
||||
|
||||
Index: systemd-206/src/journal/journal-vacuum.c
|
||||
===================================================================
|
||||
--- systemd-206.orig/src/journal/journal-vacuum.c 2014-01-29 20:43:27.492343295 -0200
|
||||
+++ systemd-206/src/journal/journal-vacuum.c 2014-01-29 20:48:55.076356876 -0200
|
||||
@@ -265,18 +265,18 @@
|
||||
/* We do not vacuum active files or unknown files! */
|
||||
continue;
|
||||
|
||||
- if (journal_file_empty(dirfd(d), de->d_name)) {
|
||||
+ if (journal_file_empty(dirfd(d), p)) {
|
||||
|
||||
/* Always vacuum empty non-online files. */
|
||||
|
||||
- if (unlinkat(dirfd(d), de->d_name, 0) >= 0)
|
||||
- log_debug("Deleted empty journal %s/%s.", directory, de->d_name);
|
||||
+ if (unlinkat(dirfd(d), p, 0) >= 0)
|
||||
+ log_debug("Deleted empty journal %s/%s.", directory, p);
|
||||
else if (errno != ENOENT)
|
||||
- log_warning("Failed to delete %s/%s: %m", directory, de->d_name);
|
||||
+ log_warning("Failed to delete %s/%s: %m", directory, p);
|
||||
continue;
|
||||
}
|
||||
|
||||
- patch_realtime(directory, de->d_name, &st, &realtime);
|
||||
+ patch_realtime(directory, p, &st, &realtime);
|
||||
|
||||
GREEDY_REALLOC(list, n_allocated, n_list + 1);
|
||||
|
||||
|
||||
Upstream-Status: Backport [207]
|
||||
@@ -21,6 +21,8 @@ SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \
|
||||
file://0001-use-CAP_MKNOD-ConditionCapability.patch \
|
||||
file://0001-Use-bin-mkdir-instead-of-host-mkdir-path.patch \
|
||||
file://binfmt-install.patch \
|
||||
file://journald-fix-fd-leak-in-journal_file_empty.patch \
|
||||
file://journald-fix-vacuuming-of-archived-journals.patch \
|
||||
file://touchscreen.rules \
|
||||
${UCLIBCPATCHES} \
|
||||
file://00-create-volatile.conf \
|
||||
|
||||
@@ -11,7 +11,7 @@ BUGTRACKER = "http://sourceware.org/bugzilla/"
|
||||
SECTION = "devel"
|
||||
LICENSE = "GPLv3"
|
||||
|
||||
DEPENDS = "flex-native bison-native zlib-native gnu-config-native"
|
||||
DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native"
|
||||
|
||||
inherit autotools gettext multilib_header
|
||||
|
||||
|
||||
@@ -77,6 +77,8 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
|
||||
file://0045-gcc-4.8-PR57717-PowerPC-E500v2.patch \
|
||||
file://0046-libatomic-deptracking.patch \
|
||||
file://0047-repomembug.patch \
|
||||
file://0048-PR57532.patch \
|
||||
file://0048-PR58854_fix_arm_apcs_epilogue.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "3b2386c114cd74185aa3754b58a79304"
|
||||
SRC_URI[sha256sum] = "545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From eb70cb2785af7171897f363298bbfcd83de5ec57 Mon Sep 17 00:00:00 2001
|
||||
From b85265bc94ec1beaf1d3b697c03db62991553467 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 29 Mar 2013 09:28:10 +0400
|
||||
Subject: [PATCH 31/35] Disable sdt.
|
||||
@@ -12,16 +12,23 @@ RP 2012/8/7
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
|
||||
Disable sdt for libstdc++-v3.
|
||||
|
||||
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
||||
|
||||
Upstream-Status: Inappropriate [hack]
|
||||
---
|
||||
gcc/configure | 12 ++++++------
|
||||
1 file changed, 6 insertions(+), 6 deletions(-)
|
||||
gcc/configure | 12 ++++++------
|
||||
gcc/configure.ac | 18 +++++++++---------
|
||||
libstdc++-v3/configure | 6 +++---
|
||||
libstdc++-v3/configure.ac | 2 +-
|
||||
4 files changed, 19 insertions(+), 19 deletions(-)
|
||||
|
||||
diff --git a/gcc/configure b/gcc/configure
|
||||
index d587993..8bc0c98 100755
|
||||
index 3c550a6..01c7626 100755
|
||||
--- a/gcc/configure
|
||||
+++ b/gcc/configure
|
||||
@@ -26792,12 +26792,12 @@ fi
|
||||
@@ -26812,12 +26812,12 @@ fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
|
||||
$as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
|
||||
have_sys_sdt_h=no
|
||||
@@ -40,6 +47,67 @@ index d587993..8bc0c98 100755
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
|
||||
$as_echo "$have_sys_sdt_h" >&6; }
|
||||
|
||||
diff --git a/gcc/configure.ac b/gcc/configure.ac
|
||||
index 3601ab6..06e501f 100644
|
||||
--- a/gcc/configure.ac
|
||||
+++ b/gcc/configure.ac
|
||||
@@ -4779,15 +4779,15 @@ if test x$gcc_cv_libc_provides_ssp = xyes; then
|
||||
fi
|
||||
|
||||
# Test for <sys/sdt.h> on the target.
|
||||
-GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H])
|
||||
-AC_MSG_CHECKING(sys/sdt.h in the target C library)
|
||||
-have_sys_sdt_h=no
|
||||
-if test -f $target_header_dir/sys/sdt.h; then
|
||||
- have_sys_sdt_h=yes
|
||||
- AC_DEFINE(HAVE_SYS_SDT_H, 1,
|
||||
- [Define if your target C library provides sys/sdt.h])
|
||||
-fi
|
||||
-AC_MSG_RESULT($have_sys_sdt_h)
|
||||
+#GCC_TARGET_TEMPLATE([HAVE_SYS_SDT_H])
|
||||
+#AC_MSG_CHECKING(sys/sdt.h in the target C library)
|
||||
+#have_sys_sdt_h=no
|
||||
+#if test -f $target_header_dir/sys/sdt.h; then
|
||||
+# have_sys_sdt_h=yes
|
||||
+# AC_DEFINE(HAVE_SYS_SDT_H, 1,
|
||||
+# [Define if your target C library provides sys/sdt.h])
|
||||
+#fi
|
||||
+#AC_MSG_RESULT($have_sys_sdt_h)
|
||||
|
||||
# Check if TFmode long double should be used by default or not.
|
||||
# Some glibc targets used DFmode long double, but with glibc 2.4
|
||||
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
|
||||
index 4953c9f..53a1145 100755
|
||||
--- a/libstdc++-v3/configure
|
||||
+++ b/libstdc++-v3/configure
|
||||
@@ -20578,11 +20578,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||
|
||||
- if test $glibcxx_cv_sys_sdt_h = yes; then
|
||||
+# if test $glibcxx_cv_sys_sdt_h = yes; then
|
||||
|
||||
-$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
|
||||
+#$as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
|
||||
|
||||
- fi
|
||||
+# fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5
|
||||
$as_echo "$glibcxx_cv_sys_sdt_h" >&6; }
|
||||
|
||||
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
|
||||
index 73d430a..f2135e2 100644
|
||||
--- a/libstdc++-v3/configure.ac
|
||||
+++ b/libstdc++-v3/configure.ac
|
||||
@@ -211,7 +211,7 @@ GLIBCXX_CHECK_SC_NPROCESSORS_ONLN
|
||||
GLIBCXX_CHECK_SC_NPROC_ONLN
|
||||
GLIBCXX_CHECK_PTHREADS_NUM_PROCESSORS_NP
|
||||
GLIBCXX_CHECK_SYSCTL_HW_NCPU
|
||||
-GLIBCXX_CHECK_SDT_H
|
||||
+#GLIBCXX_CHECK_SDT_H
|
||||
|
||||
# Check for available headers.
|
||||
AC_CHECK_HEADERS([endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \
|
||||
--
|
||||
1.7.10.4
|
||||
1.8.3.1
|
||||
|
||||
|
||||
36
meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
Normal file
36
meta/recipes-devtools/gcc/gcc-4.8/0048-PR57532.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
Upstream-Status: Backport
|
||||
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
||||
|
||||
r200836 | jason | 2013-07-09 14:52:17 -0300 (Tue, 09 Jul 2013) | 3 lines
|
||||
|
||||
PR c++/57532
|
||||
* parser.c (cp_parser_ref_qualifier_opt): Don't tentatively parse
|
||||
a ref-qualifier in C++98 mode.
|
||||
|
||||
Index: gcc/testsuite/g++.dg/parse/ref-qual2.C
|
||||
===================================================================
|
||||
--- a/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 0)
|
||||
+++ b/gcc/testsuite/g++.dg/parse/ref-qual2.C (revision 200836)
|
||||
@@ -0,0 +1,6 @@
|
||||
+// PR c++/57532
|
||||
+
|
||||
+int main()
|
||||
+{
|
||||
+ return (int() & int());
|
||||
+}
|
||||
Index: gcc/cp/parser.c
|
||||
===================================================================
|
||||
--- a/gcc/cp/parser.c (revision 200835)
|
||||
+++ b/gcc/cp/parser.c (revision 200836)
|
||||
@@ -16986,6 +16986,11 @@
|
||||
{
|
||||
cp_ref_qualifier ref_qual = REF_QUAL_NONE;
|
||||
cp_token *token = cp_lexer_peek_token (parser->lexer);
|
||||
+
|
||||
+ /* Don't try to parse bitwise '&' as a ref-qualifier (c++/57532). */
|
||||
+ if (cxx_dialect < cxx11 && cp_parser_parsing_tentatively (parser))
|
||||
+ return ref_qual;
|
||||
+
|
||||
switch (token->type)
|
||||
{
|
||||
case CPP_AND:
|
||||
@@ -0,0 +1,23 @@
|
||||
Backport fix for PR target/58854
|
||||
|
||||
2013-11-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
|
||||
|
||||
Backported from mainline
|
||||
2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
|
||||
|
||||
PR target/58854
|
||||
* config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage
|
||||
|
||||
|
||||
Upstream-Status: Backport
|
||||
|
||||
--- gcc-4_8-branch/gcc/config/arm/arm.c 2013/11/11 08:00:45 204664
|
||||
+++ gcc-4_8-branch/gcc/config/arm/arm.c 2013/11/11 09:38:14 204665
|
||||
@@ -23555,6 +23555,7 @@
|
||||
num_regs = bit_count (saved_regs_mask);
|
||||
if ((offsets->outgoing_args != (1 + num_regs)) || cfun->calls_alloca)
|
||||
{
|
||||
+ emit_insn (gen_blockage ());
|
||||
/* Unwind the stack to just below the saved registers. */
|
||||
emit_insn (gen_addsi3 (stack_pointer_rtx,
|
||||
hard_frame_pointer_rtx,
|
||||
@@ -89,6 +89,7 @@ do_patch[stamp-base] = "${SS}"
|
||||
SSCLEAN = "${TMPDIR}/stamps/work-shared/gcc-[0-9]*-*"
|
||||
do_fetch[stamp-base-clean] = "${SSCLEAN}"
|
||||
do_unpack[stamp-base-clean] = "${SSCLEAN}"
|
||||
do_unpack[umask] = "022"
|
||||
do_patch[stamp-base-clean] = "${SSCLEAN}"
|
||||
|
||||
# SW means Shared Work directory
|
||||
|
||||
@@ -103,6 +103,7 @@ do_install () {
|
||||
# Cleanup some of the ${libdir}{,exec}/gcc stuff ...
|
||||
rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
|
||||
rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
|
||||
rm -rf ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
|
||||
|
||||
# We care about g++ not c++
|
||||
rm -f ${D}${bindir}/*c++
|
||||
|
||||
@@ -6,5 +6,5 @@ SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/"
|
||||
|
||||
GCCMULTILIB = "--disable-multilib"
|
||||
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk virtual/nativesdk-${TARGET_PREFIX}libc-for-gcc gettext-native"
|
||||
DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk virtual/nativesdk-${TARGET_PREFIX}libc-for-gcc gettext-native ${NATIVEDEPS}"
|
||||
PROVIDES = "virtual/${TARGET_PREFIX}gcc-crosssdk virtual/${TARGET_PREFIX}g++-crosssdk"
|
||||
|
||||
@@ -34,7 +34,7 @@ BBCLASSEXTEND = "native"
|
||||
|
||||
DEPENDS = "libunistring bdwgc gmp libtool libffi"
|
||||
# add guile-native only to the target recipe's DEPENDS
|
||||
DEPENDS += "${@['guile-native libatomics-ops', ''][d.getVar('PN', True) != 'guile']}"
|
||||
DEPENDS_append_class-target = " guile-native libatomics-ops"
|
||||
|
||||
RDEPENDS_${PN}_append_libc-glibc_class-target = "glibc-gconv-iso8859-1"
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@ HOMEPAGE = "http://ymorin.is-a-geek.org/projects/kconfig-frontends"
|
||||
LICENSE = "GPL-2.0"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=9b8cf60ff39767ff04b671fca8302408"
|
||||
SECTION = "devel"
|
||||
DEPENDS += "ncurses flex bison gperf pkgconfig-native"
|
||||
DEPENDS += "ncurses flex bison gperf-native pkgconfig-native"
|
||||
RDEPENDS_${PN} += "python"
|
||||
SRC_URI = "http://ymorin.is-a-geek.org/download/${BPN}/${BP}.tar.xz"
|
||||
|
||||
SRC_URI[md5sum] = "1ebf13983eb5b2ce960d131cae290cad"
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
doc/make.texi: fix @itemx must follow @item
|
||||
|
||||
Upstream-Status: Backport from make 4.0
|
||||
|
||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
||||
---
|
||||
doc/make.texi | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/doc/make.texi b/doc/make.texi
|
||||
--- a/doc/make.texi
|
||||
+++ b/doc/make.texi
|
||||
@@ -8162,7 +8162,7 @@ from complicated nests of recursive @code{make} commands.
|
||||
rarely need to specify this option since @samp{make} does it for you;
|
||||
see @ref{-w Option, ,The @samp{--print-directory} Option}.)
|
||||
|
||||
-@itemx --no-print-directory
|
||||
+@item --no-print-directory
|
||||
@cindex @code{--no-print-directory}
|
||||
Disable printing of the working directory under @code{-w}.
|
||||
This option is useful when @code{-w} is turned on automatically,
|
||||
--
|
||||
1.8.1.2
|
||||
|
||||
@@ -6,6 +6,7 @@ HOMEPAGE = "http://www.gnu.org/software/make/"
|
||||
SECTION = "devel"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/make/make-${PV}.tar.bz2 \
|
||||
file://doc-make.texi-fix-itemx-must-follow-item.patch \
|
||||
file://SCCS.patch"
|
||||
|
||||
inherit autotools gettext
|
||||
|
||||
@@ -16,6 +16,7 @@ SRC_URI += "\
|
||||
file://multilib.patch \
|
||||
file://add-md5module-support.patch \
|
||||
file://builddir.patch \
|
||||
file://parallel-makeinst-create-bindir.patch \
|
||||
"
|
||||
S = "${WORKDIR}/Python-${PV}"
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
When using make -j with the 'install' target, it's possible for altbininstall
|
||||
(which normally creates BINDIR) and libainstall (which doesn't, though it
|
||||
installs python-config there) to race, resulting in a failure due to
|
||||
attempting to install python-config into a nonexistent BINDIR. Ensure it also
|
||||
exists in the libainstall target.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- Python-2.7.3.orig/Makefile.pre.in
|
||||
+++ Python-2.7.3/Makefile.pre.in
|
||||
@@ -1008,7 +1008,7 @@ LIBPL= $(LIBP)/config
|
||||
LIBPC= $(LIBDIR)/pkgconfig
|
||||
|
||||
libainstall: all python-config
|
||||
- @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \
|
||||
+ @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC) $(BINDIR); \
|
||||
do \
|
||||
if test ! -d $(DESTDIR)$$i; then \
|
||||
echo "Creating directory $$i"; \
|
||||
@@ -32,6 +32,7 @@ SRC_URI += "\
|
||||
file://run-ptest \
|
||||
file://CVE-2013-4073_py27.patch \
|
||||
file://pypirc-secure.patch \
|
||||
file://parallel-makeinst-create-bindir.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/Python-${PV}"
|
||||
@@ -61,7 +62,7 @@ do_compile() {
|
||||
cd -
|
||||
|
||||
# remove hardcoded ccache, see http://bugs.openembedded.net/show_bug.cgi?id=4144
|
||||
sed -i -e s,ccache,'$(CCACHE)', Makefile
|
||||
sed -i -e s,ccache\ ,'$(CCACHE) ', Makefile
|
||||
|
||||
# remove any bogus LD_LIBRARY_PATH
|
||||
sed -i -e s,RUNSHARED=.*,RUNSHARED=, Makefile
|
||||
|
||||
@@ -5,6 +5,7 @@ DEPENDS = "glib-2.0 zlib alsa-lib virtual/libx11 pixman dtc libsdl"
|
||||
DEPENDS_class-native = "zlib-native alsa-lib-native glib-2.0-native pixman-native dtc-native"
|
||||
DEPENDS_class-nativesdk = "nativesdk-zlib nativesdk-libsdl nativesdk-glib-2.0 nativesdk-pixman nativesdk-dtc"
|
||||
RDEPENDS_${PN}_class-nativesdk = "nativesdk-libsdl"
|
||||
RDEPENDS_${PN}_class-target += "bash python"
|
||||
|
||||
require qemu-targets.inc
|
||||
inherit autotools
|
||||
@@ -28,10 +29,9 @@ SRC_URI_append_class-native = "\
|
||||
file://fix-libcap-header-issue-on-some-distro.patch \
|
||||
"
|
||||
|
||||
EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --audio-drv-list=oss,alsa --disable-curl --disable-vnc-jpeg --disable-bluez --with-system-pixman --extra-cflags='${CFLAGS}'"
|
||||
EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --audio-drv-list=oss,alsa --disable-bluez --with-system-pixman --extra-cflags='${CFLAGS}'"
|
||||
|
||||
EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls \
|
||||
--disable-curl \
|
||||
EXTRA_OECONF_class-nativesdk = "--target-list=${@get_qemu_target_list(d)} --disable-werror \
|
||||
"
|
||||
export LIBTOOL="${HOST_SYS}-libtool"
|
||||
|
||||
@@ -83,6 +83,19 @@ do_install_append() {
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr,--disable-virtfs,libcap attr,"
|
||||
PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio,"
|
||||
PACKAGECONFIG[xfs] = "--enable-xfsctl,--disable-xfsctl,xfsprogs,"
|
||||
PACKAGECONFIG[xen] = "--enable-xen, --disable-xen,,"
|
||||
PACKAGECONFIG[vnc-tls] = "--enable-vnc --enable-vnc-tls,--disable-vnc-tls, gnutls,"
|
||||
PACKAGECONFIG[vnc-ws] = "--enable-vnc --enable-vnc-ws,--disable-vnc-ws, gnutls,"
|
||||
PACKAGECONFIG[vnc-sasl] = "--enable-vnc --enable-vnc-sasl,--disable-vnc-sasl,cyrus-sasl,"
|
||||
PACKAGECONFIG[vnc-jpeg] = "--enable-vnc --enable-vnc-jpeg,--disable-vnc-jpeg,jpeg,"
|
||||
PACKAGECONFIG[vnc-png] = "--enable-vnc --enable-vnc-png,--disable-vnc-png,libpng,"
|
||||
PACKAGECONFIG[libcurl] = "--enable-curl,--disable-curl,libcurl,"
|
||||
PACKAGECONFIG[nss] = "--enable-smartcard-nss,--disable-smartcard-nss,nss,"
|
||||
PACKAGECONFIG[uuid] = "--enable-uuid,--disable-uuid,util-linux,"
|
||||
PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses,"
|
||||
PACKAGECONFIG[gtk+] = "--enable-gtk,--disable-gtk,gtk+ libvte,"
|
||||
PACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng,"
|
||||
|
||||
# Qemu target will not build in world build for ARM or Mips
|
||||
BROKEN_qemuarm = "1"
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
Fix to get correct SVN_NEON_CONFIG and CFLAGS when sysroot path contains '-D' and '-I'
|
||||
characters.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
||||
|
||||
index f951039..a813145 100644
|
||||
--- a/build/ac-macros/neon.m4
|
||||
+++ b/build/ac-macros/neon.m4
|
||||
@@ -105,8 +105,8 @@ AC_DEFUN(SVN_NEON_CONFIG,
|
||||
test "$svn_allowed_neon" = "any"; then
|
||||
svn_allowed_neon_on_system="yes"
|
||||
if test "$NEON_PKG_CONFIG" = "yes"; then
|
||||
- SVN_NEON_INCLUDES=[`$PKG_CONFIG neon --cflags | $SED -e 's/-D[^ ]*//g'`]
|
||||
- CFLAGS=["$CFLAGS `$PKG_CONFIG neon --cflags | $SED -e 's/-I[^ ]*//g'`"]
|
||||
+ SVN_NEON_INCLUDES=["`$PKG_CONFIG neon --cflags | $SED -e 's/^-D[^ ]*//g' -e 's/ -D[^ ]*//g'`"]
|
||||
+ CFLAGS=["$CFLAGS `$PKG_CONFIG neon --cflags | $SED -e 's/^-I[^ ]*//g' -e 's/ -I[^ ]*//g'`"]
|
||||
old_CFLAGS="$CFLAGS"
|
||||
old_LIBS="$LIBS"
|
||||
NEON_LIBS=`$PKG_CONFIG neon --libs`
|
||||
@@ -126,8 +126,8 @@ int main()
|
||||
CFLAGS="$old_CFLAGS"
|
||||
LIBS="$old_LIBS"
|
||||
else
|
||||
- SVN_NEON_INCLUDES=[`$neon_config --cflags | $SED -e 's/-D[^ ]*//g'`]
|
||||
- CFLAGS=["$CFLAGS `$neon_config --cflags | $SED -e 's/-I[^ ]*//g'`"]
|
||||
+ SVN_NEON_INCLUDES=[`$neon_config --cflags | $SED -e 's/^-D[^ ]*//g' -e 's/ -D[^ ]*//g'`]
|
||||
+ CFLAGS=["$CFLAGS `$neon_config --cflags | $SED -e 's/^-I[^ ]*//g' -e 's/ -I[^ ]*//g'`"]
|
||||
NEON_LIBS=`$neon_config --libs`
|
||||
fi
|
||||
svn_lib_neon="yes"
|
||||
@@ -13,6 +13,7 @@ SRC_URI = "${APACHE_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \
|
||||
file://libtool2.patch \
|
||||
file://fix-install-depends.patch \
|
||||
file://allow-updated-neon.patch \
|
||||
file://neon.m4-fix-includes-and-cflags.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "4088a77e14232876c9b4ff1541e6e200"
|
||||
SRC_URI[sha256sum] = "c1df222bec83d014d17785e2ceba6bc80962f64b280967de0285836d8d77a8e7"
|
||||
|
||||
@@ -272,7 +272,7 @@ then
|
||||
fi
|
||||
|
||||
if ! `grep -F -q "noarch-suse" ${PLATFORM_FILE}`; then
|
||||
if [ ${ARCH} == i686 ];then
|
||||
if [ ${ARCH} = i686 ];then
|
||||
echo "i486-suse" >> ${PLATFORM_FILE}
|
||||
echo "i486-noarch" >> ${PLATFORM_FILE}
|
||||
echo "i486-pc" >> ${PLATFORM_FILE}
|
||||
|
||||
@@ -19,15 +19,15 @@ do_install() {
|
||||
install -d ${D}/opt/lsb-test
|
||||
install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list
|
||||
install -m 0644 ${S}/session ${D}/opt/lsb-test/session
|
||||
if [ "${TARGET_ARCH}" == "i586" ];then
|
||||
if [ "${TARGET_ARCH}" = "i586" ];then
|
||||
sed -i -e 's/lsbarch/ia32/g' -e 's/targetarch/i486/g' ${D}/opt/lsb-test/packages_list
|
||||
sed -i -e 's/targetarch/x86/g' ${D}/opt/lsb-test/session
|
||||
fi
|
||||
if [ "${TARGET_ARCH}" == "x86_64" ];then
|
||||
if [ "${TARGET_ARCH}" = "x86_64" ];then
|
||||
sed -i -e 's/lsbarch/amd64/g' -e 's/targetarch/x86_64/g' ${D}/opt/lsb-test/packages_list
|
||||
sed -i -e 's/targetarch/x86-64/g' ${D}/opt/lsb-test/session
|
||||
fi
|
||||
if [ "${TARGET_ARCH}" == "powerpc" ];then
|
||||
if [ "${TARGET_ARCH}" = "powerpc" ];then
|
||||
sed -i -e 's/lsbarch/ppc32/g' -e 's/targetarch/ppc/g' ${D}/opt/lsb-test/packages_list
|
||||
sed -i -e 's/targetarch/PPC32/g' ${D}/opt/lsb-test/session
|
||||
fi
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
From 9751a6526cffcdf4e3dc2cb33641259a7be00e19 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
Date: Sat, 7 Dec 2013 18:24:32 +0100
|
||||
Subject: [PATCH] Rename runtests_noltp.sh script so have unique name
|
||||
|
||||
* they are installed in the same target path
|
||||
/opt/ltp/testcases/bin/runtests_noltp.sh
|
||||
and overwrite each other in non-deterministic way
|
||||
when multiple processes are used in "make install"
|
||||
|
||||
./temp/log.do_install:install -m 00775
|
||||
"ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/sysvipc/runtests_noltp.sh"
|
||||
"ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh"
|
||||
./temp/log.do_install:install -m 00775
|
||||
"ltp/20120903-r2/ltp-20120903/testcases/kernel/containers/utsname/runtests_noltp.sh"
|
||||
"ltp/20120903-r2/image/opt/ltp/testcases/bin/runtests_noltp.sh"
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
---
|
||||
.../kernel/containers/sysvipc/runipctests_noltp.sh | 31 ++++++++++++++++
|
||||
.../kernel/containers/sysvipc/runtests_noltp.sh | 31 ----------------
|
||||
.../kernel/containers/utsname/runtests_noltp.sh | 41 ----------------------
|
||||
.../kernel/containers/utsname/runutstests_noltp.sh | 41 ++++++++++++++++++++++
|
||||
4 files changed, 72 insertions(+), 72 deletions(-)
|
||||
create mode 100644 testcases/kernel/containers/sysvipc/runipctests_noltp.sh
|
||||
delete mode 100644 testcases/kernel/containers/sysvipc/runtests_noltp.sh
|
||||
delete mode 100755 testcases/kernel/containers/utsname/runtests_noltp.sh
|
||||
create mode 100755 testcases/kernel/containers/utsname/runutstests_noltp.sh
|
||||
|
||||
diff --git a/testcases/kernel/containers/sysvipc/runipctests_noltp.sh b/testcases/kernel/containers/sysvipc/runipctests_noltp.sh
|
||||
new file mode 100644
|
||||
index 0000000..84f398f
|
||||
--- /dev/null
|
||||
+++ b/testcases/kernel/containers/sysvipc/runipctests_noltp.sh
|
||||
@@ -0,0 +1,31 @@
|
||||
+#!/bin/sh
|
||||
+################################################################################
|
||||
+## ##
|
||||
+## Copyright (c) International Business Machines Corp., 2007 ##
|
||||
+## ##
|
||||
+## This program is free software; you can redistribute it and#or modify ##
|
||||
+## it under the terms of the GNU General Public License as published by ##
|
||||
+## the Free Software Foundation; either version 2 of the License, or ##
|
||||
+## (at your option) any later version. ##
|
||||
+## ##
|
||||
+## This program is distributed in the hope that it will be useful, but ##
|
||||
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
|
||||
+## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
|
||||
+## for more details. ##
|
||||
+## ##
|
||||
+## You should have received a copy of the GNU General Public License ##
|
||||
+## along with this program; if not, write to the Free Software ##
|
||||
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
|
||||
+## ##
|
||||
+################################################################################
|
||||
+
|
||||
+exit_code=0
|
||||
+echo "sysvipc tests"
|
||||
+for type in none clone unshare; do
|
||||
+ echo "**sysvipc $type"
|
||||
+ ./shmnstest_noltp $type
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ exit_code=$?
|
||||
+ fi
|
||||
+done
|
||||
+exit $exit_code
|
||||
diff --git a/testcases/kernel/containers/sysvipc/runtests_noltp.sh b/testcases/kernel/containers/sysvipc/runtests_noltp.sh
|
||||
deleted file mode 100644
|
||||
index 84f398f..0000000
|
||||
--- a/testcases/kernel/containers/sysvipc/runtests_noltp.sh
|
||||
+++ /dev/null
|
||||
@@ -1,31 +0,0 @@
|
||||
-#!/bin/sh
|
||||
-################################################################################
|
||||
-## ##
|
||||
-## Copyright (c) International Business Machines Corp., 2007 ##
|
||||
-## ##
|
||||
-## This program is free software; you can redistribute it and#or modify ##
|
||||
-## it under the terms of the GNU General Public License as published by ##
|
||||
-## the Free Software Foundation; either version 2 of the License, or ##
|
||||
-## (at your option) any later version. ##
|
||||
-## ##
|
||||
-## This program is distributed in the hope that it will be useful, but ##
|
||||
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
|
||||
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
|
||||
-## for more details. ##
|
||||
-## ##
|
||||
-## You should have received a copy of the GNU General Public License ##
|
||||
-## along with this program; if not, write to the Free Software ##
|
||||
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
|
||||
-## ##
|
||||
-################################################################################
|
||||
-
|
||||
-exit_code=0
|
||||
-echo "sysvipc tests"
|
||||
-for type in none clone unshare; do
|
||||
- echo "**sysvipc $type"
|
||||
- ./shmnstest_noltp $type
|
||||
- if [ $? -ne 0 ]; then
|
||||
- exit_code=$?
|
||||
- fi
|
||||
-done
|
||||
-exit $exit_code
|
||||
diff --git a/testcases/kernel/containers/utsname/runtests_noltp.sh b/testcases/kernel/containers/utsname/runtests_noltp.sh
|
||||
deleted file mode 100755
|
||||
index 43cb7e2..0000000
|
||||
--- a/testcases/kernel/containers/utsname/runtests_noltp.sh
|
||||
+++ /dev/null
|
||||
@@ -1,41 +0,0 @@
|
||||
-#!/bin/sh
|
||||
-################################################################################
|
||||
-## ##
|
||||
-## Copyright (c) International Business Machines Corp., 2007 ##
|
||||
-## ##
|
||||
-## This program is free software; you can redistribute it and#or modify ##
|
||||
-## it under the terms of the GNU General Public License as published by ##
|
||||
-## the Free Software Foundation; either version 2 of the License, or ##
|
||||
-## (at your option) any later version. ##
|
||||
-## ##
|
||||
-## This program is distributed in the hope that it will be useful, but ##
|
||||
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
|
||||
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
|
||||
-## for more details. ##
|
||||
-## ##
|
||||
-## You should have received a copy of the GNU General Public License ##
|
||||
-## along with this program; if not, write to the Free Software ##
|
||||
-## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
|
||||
-## ##
|
||||
-################################################################################
|
||||
-
|
||||
-oldhostname=`hostname`
|
||||
-exit_code=0
|
||||
-echo "unshare tests"
|
||||
-for i in `seq 1 5`; do
|
||||
- echo "test $i (unshare)"
|
||||
- ./utstest_noltp unshare $i
|
||||
- if [ $? -ne 0 ]; then
|
||||
- exit_code=$?
|
||||
- fi
|
||||
-done
|
||||
-echo "clone tests"
|
||||
-for i in `seq 1 5`; do
|
||||
- echo "test $i (clone)"
|
||||
- ./utstest_noltp clone $i
|
||||
- if [ $? -ne 0 ]; then
|
||||
- exit_code=$?
|
||||
- fi
|
||||
-done
|
||||
-hostname "$oldhostname"
|
||||
-exit $exit_code
|
||||
diff --git a/testcases/kernel/containers/utsname/runutstests_noltp.sh b/testcases/kernel/containers/utsname/runutstests_noltp.sh
|
||||
new file mode 100755
|
||||
index 0000000..43cb7e2
|
||||
--- /dev/null
|
||||
+++ b/testcases/kernel/containers/utsname/runutstests_noltp.sh
|
||||
@@ -0,0 +1,41 @@
|
||||
+#!/bin/sh
|
||||
+################################################################################
|
||||
+## ##
|
||||
+## Copyright (c) International Business Machines Corp., 2007 ##
|
||||
+## ##
|
||||
+## This program is free software; you can redistribute it and#or modify ##
|
||||
+## it under the terms of the GNU General Public License as published by ##
|
||||
+## the Free Software Foundation; either version 2 of the License, or ##
|
||||
+## (at your option) any later version. ##
|
||||
+## ##
|
||||
+## This program is distributed in the hope that it will be useful, but ##
|
||||
+## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
|
||||
+## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
|
||||
+## for more details. ##
|
||||
+## ##
|
||||
+## You should have received a copy of the GNU General Public License ##
|
||||
+## along with this program; if not, write to the Free Software ##
|
||||
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
|
||||
+## ##
|
||||
+################################################################################
|
||||
+
|
||||
+oldhostname=`hostname`
|
||||
+exit_code=0
|
||||
+echo "unshare tests"
|
||||
+for i in `seq 1 5`; do
|
||||
+ echo "test $i (unshare)"
|
||||
+ ./utstest_noltp unshare $i
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ exit_code=$?
|
||||
+ fi
|
||||
+done
|
||||
+echo "clone tests"
|
||||
+for i in `seq 1 5`; do
|
||||
+ echo "test $i (clone)"
|
||||
+ ./utstest_noltp clone $i
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ exit_code=$?
|
||||
+ fi
|
||||
+done
|
||||
+hostname "$oldhostname"
|
||||
+exit $exit_code
|
||||
--
|
||||
1.8.4.3
|
||||
|
||||
@@ -21,7 +21,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
|
||||
|
||||
DEPENDS = "attr libaio libcap acl openssl"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2"
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/ltp/ltp-full-${PV}.bz2 \
|
||||
file://0001-Rename-runtests_noltp.sh-script-so-have-unique-name.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "d448d9e9731d7ef45352fc74633cc97f"
|
||||
SRC_URI[sha256sum] = "afdb1479e73d4da7f0d4d5d3fe1570bc5fc96e3317d4a5c10c59c046d3dfa4a0"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
SUMMARY = "Text-based modem control and terminal emulation program"
|
||||
DESCRIPTION = "Minicom is a text-based modem control and terminal emulation program for Unix-like operating systems"
|
||||
SECTION = "console/network"
|
||||
DEPENDS = "ncurses"
|
||||
DEPENDS = "ncurses virtual/libiconv"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=420477abc567404debca0a2a1cb6b645 \
|
||||
file://src/minicom.h;beginline=1;endline=12;md5=a58838cb709f0db517f4e42730c49e81"
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
xinetd: CVE-2013-4342
|
||||
|
||||
xinetd does not enforce the user and group configuration directives
|
||||
for TCPMUX services, which causes these services to be run as root
|
||||
and makes it easier for remote attackers to gain privileges by
|
||||
leveraging another vulnerability in a service.
|
||||
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4342
|
||||
|
||||
the patch come from:
|
||||
https://bugzilla.redhat.com/attachment.cgi?id=799732&action=diff
|
||||
|
||||
Signed-off-by: Li Wang <li.wang@windriver.com>
|
||||
---
|
||||
xinetd/builtins.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xinetd/builtins.c b/xinetd/builtins.c
|
||||
index 3b85579..34a5bac 100644
|
||||
--- a/xinetd/builtins.c
|
||||
+++ b/xinetd/builtins.c
|
||||
@@ -617,7 +617,7 @@ static void tcpmux_handler( const struct server *serp )
|
||||
if( SC_IS_INTERNAL( scp ) ) {
|
||||
SC_INTERNAL(scp, nserp);
|
||||
} else {
|
||||
- exec_server(nserp);
|
||||
+ child_process(nserp);
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
1.7.9.5
|
||||
|
||||
@@ -16,6 +16,7 @@ SRC_URI = "http://www.xinetd.org/xinetd-${PV}.tar.gz \
|
||||
file://Various-fixes-from-the-previous-maintainer.patch \
|
||||
file://Disable-services-from-inetd.conf-if-a-service-with-t.patch \
|
||||
file://xinetd-should-be-able-to-listen-on-IPv6-even-in-ine.patch \
|
||||
file://xinetd-CVE-2013-4342.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "77358478fd58efa6366accae99b8b04c"
|
||||
|
||||
@@ -2,7 +2,22 @@ DESCRIPTION = "utils for managing LZMA compressed files"
|
||||
HOMEPAGE = "http://tukaani.org/xz/"
|
||||
SECTION = "base"
|
||||
|
||||
LICENSE = "GPLv2+ & LGPLv2.1+"
|
||||
# The source includes bits of PD, GPLv2, GPLv3, LGPLv2.1+, but the only file
|
||||
# which is GPLv3 is an m4 macro which isn't shipped in any of our packages,
|
||||
# and the LGPL bits are under lib/, which appears to be used for libgnu, which
|
||||
# appears to be used for DOS builds. So we're left with GPLv2+ and PD.
|
||||
LICENSE = "GPLv2+ & GPLv3+ & LGPLv2.1+ & PD"
|
||||
LICENSE_${PN} = "GPLv2+"
|
||||
LICENSE_${PN}-dev = "GPLv2+"
|
||||
LICENSE_${PN}-staticdev = "GPLv2+"
|
||||
LICENSE_${PN}-doc = "GPLv2+"
|
||||
LICENSE_${PN}-dbg = "GPLv2+"
|
||||
LICENSE_${PN}-locale = "GPLv2+"
|
||||
LICENSE_liblzma = "PD"
|
||||
LICENSE_liblzma-dev = "PD"
|
||||
LICENSE_liblzma-staticdev = "PD"
|
||||
LICENSE_liblzma-dbg = "PD"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=c475b6c7dca236740ace4bba553e8e1c \
|
||||
file://COPYING.GPLv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://COPYING.GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
|
||||
@@ -16,6 +16,7 @@ PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
|
||||
${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
|
||||
PACKAGECONFIG[x11] = "--with-x=yes,--without-x,${X11DEPENDS}"
|
||||
PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb"
|
||||
PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind"
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
|
||||
|
||||
@@ -33,6 +33,7 @@ EXTRA_OECONF += "--disable-introspection \
|
||||
--enable-examples-install \
|
||||
--enable-debug \
|
||||
--disable-gles1 \
|
||||
--disable-cairo \
|
||||
"
|
||||
|
||||
# OpenGL/GLX
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
From 63d5b4ec7a5853bbbae2e1963d406bb09e77dd60 Mon Sep 17 00:00:00 2001
|
||||
From: Valentin Popa <valentin.popa@intel.com>
|
||||
Date: Thu, 27 Feb 2014 10:32:17 +0200
|
||||
Subject: [PATCH] Add MESA_EGL_NO_X11_HEADERS to defines
|
||||
|
||||
MESA_EGL_NO_X11_HEADERS is used in eglplatform.h
|
||||
but the preprocessor doesn't know about it.
|
||||
Define MESA_EGL_NO_X11_HEADERS for builds without
|
||||
x11 in DISTRO_FEATURES.
|
||||
|
||||
Backport from 9.2.5.
|
||||
|
||||
Upstream-Status: Backport
|
||||
|
||||
Signed-off-by: Valentin Popa <valentin.popa@intel.com>
|
||||
---
|
||||
configure.ac | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 2acf579..a1a8487 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1568,6 +1568,14 @@ AC_SUBST([EGL_NATIVE_PLATFORM])
|
||||
AC_SUBST([EGL_PLATFORMS])
|
||||
AC_SUBST([EGL_CFLAGS])
|
||||
|
||||
+# If we don't have the X11 platform, set this define so we don't try
|
||||
+# to include
|
||||
+# the X11 headers.
|
||||
+if ! echo "$egl_platforms" | grep -q 'x11'; then
|
||||
+ DEFINES="$DEFINES -DMESA_EGL_NO_X11_HEADERS"
|
||||
+ GL_PC_CFLAGS="$GL_PC_CFLAGS -DMESA_EGL_NO_X11_HEADERS"
|
||||
+fi
|
||||
+
|
||||
AC_ARG_WITH([egl-driver-dir],
|
||||
[AS_HELP_STRING([--with-egl-driver-dir=DIR],
|
||||
[directory for EGL drivers [[default=${libdir}/egl]]])],
|
||||
--
|
||||
1.8.3.2
|
||||
|
||||
@@ -1,359 +0,0 @@
|
||||
From 8d31ae23683394617c49301b039b3a069b9ea436 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Stone <daniel@fooishbar.org>
|
||||
Date: Fri, 24 May 2013 17:20:27 +0100
|
||||
Subject: [PATCH 3/4] EGL: Mutate NativeDisplayType depending on config
|
||||
|
||||
If we go through ./configure without enabling X11 anywhere, then set the
|
||||
fallback types for EGL NativeDisplay and friends, rather than assuming
|
||||
X11/Xlib.
|
||||
|
||||
Upstream-Status: Backport (slightly different solution was applied in master
|
||||
https://bugs.freedesktop.org/show_bug.cgi?id=64959)
|
||||
|
||||
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
---
|
||||
configure.ac | 5 ++
|
||||
include/EGL/eglplatform.h | 146 -------------------------------------------
|
||||
include/EGL/eglplatform.h.in | 146 +++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 151 insertions(+), 146 deletions(-)
|
||||
delete mode 100644 include/EGL/eglplatform.h
|
||||
create mode 100644 include/EGL/eglplatform.h.in
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 67b8c40..afc3217 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -1499,6 +1499,9 @@ EGL_PLATFORMS="$egl_platforms"
|
||||
|
||||
if echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1; then
|
||||
NEED_WINSYS_XLIB=yes
|
||||
+ MESA_EGL_NO_X11_HEADERS=0
|
||||
+else
|
||||
+ MESA_EGL_NO_X11_HEADERS=1
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_EGL_PLATFORM_X11, echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1)
|
||||
AM_CONDITIONAL(HAVE_EGL_PLATFORM_WAYLAND, echo "$egl_platforms" | grep 'wayland' >/dev/null 2>&1)
|
||||
@@ -1512,6 +1515,7 @@ AM_CONDITIONAL(HAVE_EGL_DRIVER_GLX, test "x$HAVE_EGL_DRIVER_GLX" != "x")
|
||||
AC_SUBST([EGL_NATIVE_PLATFORM])
|
||||
AC_SUBST([EGL_PLATFORMS])
|
||||
AC_SUBST([EGL_CFLAGS])
|
||||
+AC_SUBST([MESA_EGL_NO_X11_HEADERS])
|
||||
|
||||
AC_ARG_WITH([egl-driver-dir],
|
||||
[AS_HELP_STRING([--with-egl-driver-dir=DIR],
|
||||
@@ -1991,6 +1995,7 @@ CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
|
||||
|
||||
dnl Substitute the config
|
||||
AC_CONFIG_FILES([Makefile
|
||||
+ include/EGL/eglplatform.h
|
||||
src/Makefile
|
||||
src/egl/Makefile
|
||||
src/egl/drivers/Makefile
|
||||
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
|
||||
deleted file mode 100644
|
||||
index 17fdc61..0000000
|
||||
--- a/include/EGL/eglplatform.h
|
||||
+++ /dev/null
|
||||
@@ -1,146 +0,0 @@
|
||||
-#ifndef __eglplatform_h_
|
||||
-#define __eglplatform_h_
|
||||
-
|
||||
-/*
|
||||
-** Copyright (c) 2007-2009 The Khronos Group Inc.
|
||||
-**
|
||||
-** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
-** copy of this software and/or associated documentation files (the
|
||||
-** "Materials"), to deal in the Materials without restriction, including
|
||||
-** without limitation the rights to use, copy, modify, merge, publish,
|
||||
-** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
-** permit persons to whom the Materials are furnished to do so, subject to
|
||||
-** the following conditions:
|
||||
-**
|
||||
-** The above copyright notice and this permission notice shall be included
|
||||
-** in all copies or substantial portions of the Materials.
|
||||
-**
|
||||
-** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
-** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
-** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
-** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
-** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
-** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
-** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
-*/
|
||||
-
|
||||
-/* Platform-specific types and definitions for egl.h
|
||||
- * $Revision: 12306 $ on $Date: 2010-08-25 09:51:28 -0700 (Wed, 25 Aug 2010) $
|
||||
- *
|
||||
- * Adopters may modify khrplatform.h and this file to suit their platform.
|
||||
- * You are encouraged to submit all modifications to the Khronos group so that
|
||||
- * they can be included in future versions of this file. Please submit changes
|
||||
- * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
|
||||
- * by filing a bug against product "EGL" component "Registry".
|
||||
- */
|
||||
-
|
||||
-#include <KHR/khrplatform.h>
|
||||
-
|
||||
-/* Macros used in EGL function prototype declarations.
|
||||
- *
|
||||
- * EGL functions should be prototyped as:
|
||||
- *
|
||||
- * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
|
||||
- * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
|
||||
- *
|
||||
- * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
|
||||
- */
|
||||
-
|
||||
-#ifndef EGLAPI
|
||||
-#define EGLAPI KHRONOS_APICALL
|
||||
-#endif
|
||||
-
|
||||
-#ifndef EGLAPIENTRY
|
||||
-#define EGLAPIENTRY KHRONOS_APIENTRY
|
||||
-#endif
|
||||
-#define EGLAPIENTRYP EGLAPIENTRY*
|
||||
-
|
||||
-/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
|
||||
- * are aliases of window-system-dependent types, such as X Display * or
|
||||
- * Windows Device Context. They must be defined in platform-specific
|
||||
- * code below. The EGL-prefixed versions of Native*Type are the same
|
||||
- * types, renamed in EGL 1.3 so all types in the API start with "EGL".
|
||||
- *
|
||||
- * Khronos STRONGLY RECOMMENDS that you use the default definitions
|
||||
- * provided below, since these changes affect both binary and source
|
||||
- * portability of applications using EGL running on different EGL
|
||||
- * implementations.
|
||||
- */
|
||||
-
|
||||
-#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
|
||||
-#ifndef WIN32_LEAN_AND_MEAN
|
||||
-#define WIN32_LEAN_AND_MEAN 1
|
||||
-#endif
|
||||
-#include <windows.h>
|
||||
-
|
||||
-typedef HDC EGLNativeDisplayType;
|
||||
-typedef HBITMAP EGLNativePixmapType;
|
||||
-typedef HWND EGLNativeWindowType;
|
||||
-
|
||||
-#elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
|
||||
-
|
||||
-typedef int EGLNativeDisplayType;
|
||||
-typedef void *EGLNativeWindowType;
|
||||
-typedef void *EGLNativePixmapType;
|
||||
-
|
||||
-#elif defined(WL_EGL_PLATFORM)
|
||||
-
|
||||
-typedef struct wl_display *EGLNativeDisplayType;
|
||||
-typedef struct wl_egl_pixmap *EGLNativePixmapType;
|
||||
-typedef struct wl_egl_window *EGLNativeWindowType;
|
||||
-
|
||||
-#elif defined(__GBM__)
|
||||
-
|
||||
-typedef struct gbm_device *EGLNativeDisplayType;
|
||||
-typedef struct gbm_bo *EGLNativePixmapType;
|
||||
-typedef void *EGLNativeWindowType;
|
||||
-
|
||||
-#elif defined(ANDROID) /* Android */
|
||||
-
|
||||
-struct ANativeWindow;
|
||||
-struct egl_native_pixmap_t;
|
||||
-
|
||||
-typedef struct ANativeWindow *EGLNativeWindowType;
|
||||
-typedef struct egl_native_pixmap_t *EGLNativePixmapType;
|
||||
-typedef void *EGLNativeDisplayType;
|
||||
-
|
||||
-#elif defined(__unix__)
|
||||
-
|
||||
-#ifdef MESA_EGL_NO_X11_HEADERS
|
||||
-
|
||||
-typedef void *EGLNativeDisplayType;
|
||||
-typedef khronos_uint32_t EGLNativePixmapType;
|
||||
-typedef khronos_uint32_t EGLNativeWindowType;
|
||||
-
|
||||
-#else
|
||||
-
|
||||
-/* X11 (tentative) */
|
||||
-#include <X11/Xlib.h>
|
||||
-#include <X11/Xutil.h>
|
||||
-
|
||||
-typedef Display *EGLNativeDisplayType;
|
||||
-typedef Pixmap EGLNativePixmapType;
|
||||
-typedef Window EGLNativeWindowType;
|
||||
-
|
||||
-#endif /* MESA_EGL_NO_X11_HEADERS */
|
||||
-
|
||||
-#else
|
||||
-#error "Platform not recognized"
|
||||
-#endif
|
||||
-
|
||||
-/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
|
||||
-typedef EGLNativeDisplayType NativeDisplayType;
|
||||
-typedef EGLNativePixmapType NativePixmapType;
|
||||
-typedef EGLNativeWindowType NativeWindowType;
|
||||
-
|
||||
-
|
||||
-/* Define EGLint. This must be a signed integral type large enough to contain
|
||||
- * all legal attribute names and values passed into and out of EGL, whether
|
||||
- * their type is boolean, bitmask, enumerant (symbolic constant), integer,
|
||||
- * handle, or other. While in general a 32-bit integer will suffice, if
|
||||
- * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
|
||||
- * integer type.
|
||||
- */
|
||||
-typedef khronos_int32_t EGLint;
|
||||
-
|
||||
-#endif /* __eglplatform_h */
|
||||
diff --git a/include/EGL/eglplatform.h.in b/include/EGL/eglplatform.h.in
|
||||
new file mode 100644
|
||||
index 0000000..5126c92
|
||||
--- /dev/null
|
||||
+++ b/include/EGL/eglplatform.h.in
|
||||
@@ -0,0 +1,146 @@
|
||||
+#ifndef __eglplatform_h_
|
||||
+#define __eglplatform_h_
|
||||
+
|
||||
+/*
|
||||
+** Copyright (c) 2007-2009 The Khronos Group Inc.
|
||||
+**
|
||||
+** Permission is hereby granted, free of charge, to any person obtaining a
|
||||
+** copy of this software and/or associated documentation files (the
|
||||
+** "Materials"), to deal in the Materials without restriction, including
|
||||
+** without limitation the rights to use, copy, modify, merge, publish,
|
||||
+** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||
+** permit persons to whom the Materials are furnished to do so, subject to
|
||||
+** the following conditions:
|
||||
+**
|
||||
+** The above copyright notice and this permission notice shall be included
|
||||
+** in all copies or substantial portions of the Materials.
|
||||
+**
|
||||
+** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
+** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
+** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
+** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
+** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
+** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
+** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||
+*/
|
||||
+
|
||||
+/* Platform-specific types and definitions for egl.h
|
||||
+ * $Revision: 12306 $ on $Date: 2010-08-25 09:51:28 -0700 (Wed, 25 Aug 2010) $
|
||||
+ *
|
||||
+ * Adopters may modify khrplatform.h and this file to suit their platform.
|
||||
+ * You are encouraged to submit all modifications to the Khronos group so that
|
||||
+ * they can be included in future versions of this file. Please submit changes
|
||||
+ * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
|
||||
+ * by filing a bug against product "EGL" component "Registry".
|
||||
+ */
|
||||
+
|
||||
+#include <KHR/khrplatform.h>
|
||||
+
|
||||
+/* Macros used in EGL function prototype declarations.
|
||||
+ *
|
||||
+ * EGL functions should be prototyped as:
|
||||
+ *
|
||||
+ * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
|
||||
+ * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
|
||||
+ *
|
||||
+ * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
|
||||
+ */
|
||||
+
|
||||
+#ifndef EGLAPI
|
||||
+#define EGLAPI KHRONOS_APICALL
|
||||
+#endif
|
||||
+
|
||||
+#ifndef EGLAPIENTRY
|
||||
+#define EGLAPIENTRY KHRONOS_APIENTRY
|
||||
+#endif
|
||||
+#define EGLAPIENTRYP EGLAPIENTRY*
|
||||
+
|
||||
+/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
|
||||
+ * are aliases of window-system-dependent types, such as X Display * or
|
||||
+ * Windows Device Context. They must be defined in platform-specific
|
||||
+ * code below. The EGL-prefixed versions of Native*Type are the same
|
||||
+ * types, renamed in EGL 1.3 so all types in the API start with "EGL".
|
||||
+ *
|
||||
+ * Khronos STRONGLY RECOMMENDS that you use the default definitions
|
||||
+ * provided below, since these changes affect both binary and source
|
||||
+ * portability of applications using EGL running on different EGL
|
||||
+ * implementations.
|
||||
+ */
|
||||
+
|
||||
+#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
|
||||
+#ifndef WIN32_LEAN_AND_MEAN
|
||||
+#define WIN32_LEAN_AND_MEAN 1
|
||||
+#endif
|
||||
+#include <windows.h>
|
||||
+
|
||||
+typedef HDC EGLNativeDisplayType;
|
||||
+typedef HBITMAP EGLNativePixmapType;
|
||||
+typedef HWND EGLNativeWindowType;
|
||||
+
|
||||
+#elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
|
||||
+
|
||||
+typedef int EGLNativeDisplayType;
|
||||
+typedef void *EGLNativeWindowType;
|
||||
+typedef void *EGLNativePixmapType;
|
||||
+
|
||||
+#elif defined(WL_EGL_PLATFORM)
|
||||
+
|
||||
+typedef struct wl_display *EGLNativeDisplayType;
|
||||
+typedef struct wl_egl_pixmap *EGLNativePixmapType;
|
||||
+typedef struct wl_egl_window *EGLNativeWindowType;
|
||||
+
|
||||
+#elif defined(__GBM__)
|
||||
+
|
||||
+typedef struct gbm_device *EGLNativeDisplayType;
|
||||
+typedef struct gbm_bo *EGLNativePixmapType;
|
||||
+typedef void *EGLNativeWindowType;
|
||||
+
|
||||
+#elif defined(ANDROID) /* Android */
|
||||
+
|
||||
+struct ANativeWindow;
|
||||
+struct egl_native_pixmap_t;
|
||||
+
|
||||
+typedef struct ANativeWindow *EGLNativeWindowType;
|
||||
+typedef struct egl_native_pixmap_t *EGLNativePixmapType;
|
||||
+typedef void *EGLNativeDisplayType;
|
||||
+
|
||||
+#elif defined(__unix__)
|
||||
+
|
||||
+#if @MESA_EGL_NO_X11_HEADERS@
|
||||
+
|
||||
+typedef void *EGLNativeDisplayType;
|
||||
+typedef khronos_uint32_t EGLNativePixmapType;
|
||||
+typedef khronos_uint32_t EGLNativeWindowType;
|
||||
+
|
||||
+#else
|
||||
+
|
||||
+/* X11 (tentative) */
|
||||
+#include <X11/Xlib.h>
|
||||
+#include <X11/Xutil.h>
|
||||
+
|
||||
+typedef Display *EGLNativeDisplayType;
|
||||
+typedef Pixmap EGLNativePixmapType;
|
||||
+typedef Window EGLNativeWindowType;
|
||||
+
|
||||
+#endif /* MESA_EGL_NO_X11_HEADERS */
|
||||
+
|
||||
+#else
|
||||
+#error "Platform not recognized"
|
||||
+#endif
|
||||
+
|
||||
+/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
|
||||
+typedef EGLNativeDisplayType NativeDisplayType;
|
||||
+typedef EGLNativePixmapType NativePixmapType;
|
||||
+typedef EGLNativeWindowType NativeWindowType;
|
||||
+
|
||||
+
|
||||
+/* Define EGLint. This must be a signed integral type large enough to contain
|
||||
+ * all legal attribute names and values passed into and out of EGL, whether
|
||||
+ * their type is boolean, bitmask, enumerant (symbolic constant), integer,
|
||||
+ * handle, or other. While in general a 32-bit integer will suffice, if
|
||||
+ * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
|
||||
+ * integer type.
|
||||
+ */
|
||||
+typedef khronos_int32_t EGLint;
|
||||
+
|
||||
+#endif /* __eglplatform_h */
|
||||
--
|
||||
1.8.2.1
|
||||
|
||||
@@ -2,8 +2,8 @@ require ${BPN}.inc
|
||||
|
||||
SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \
|
||||
file://0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch \
|
||||
file://0001-Add-MESA_EGL_NO_X11_HEADERS-to-defines.patch \
|
||||
file://0002-pipe_loader_sw-include-xlib_sw_winsys.h-only-when-HA.patch \
|
||||
file://0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch \
|
||||
file://0004-glsl-fix-builtin_compiler-cross-compilation.patch \
|
||||
file://0005-llvmpipe-remove-the-power-of-two-sizeof-struct-cmd_b.patch \
|
||||
file://0005-fix-out-of-tree-builds-gallium.patch \
|
||||
@@ -14,3 +14,13 @@ SRC_URI[md5sum] = "443a2a352667294b53d56cb1a74114e9"
|
||||
SRC_URI[sha256sum] = "e632dff0acafad0a59dc208d16dedb37f7bd58f94c5d58c4b51912e41d005e3d"
|
||||
|
||||
S = "${WORKDIR}/Mesa-${PV}"
|
||||
|
||||
#because we cannot rely on the fact that all apps will use pkgconfig,
|
||||
#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
|
||||
do_install_append() {
|
||||
if ${@base_contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then
|
||||
if [ -e "${D}${includedir}/EGL/eglplatform.h" ]; then
|
||||
sed -i -e 's/^#ifdef MESA_EGL_NO_X11_HEADERS/#if ${@base_contains('DISTRO_FEATURES', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -10,11 +10,21 @@ PV = "9.1.3+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa \
|
||||
file://0001-configure-Avoid-use-of-AC_CHECK_FILE-for-cross-compi.patch \
|
||||
file://0001-Add-MESA_EGL_NO_X11_HEADERS-to-defines.patch \
|
||||
file://0002-pipe_loader_sw-include-xlib_sw_winsys.h-only-when-HA.patch \
|
||||
file://0003-EGL-Mutate-NativeDisplayType-depending-on-config.patch \
|
||||
file://0004-glsl-fix-builtin_compiler-cross-compilation.patch \
|
||||
file://0005-fix-out-of-tree-builds-gallium.patch \
|
||||
file://0006-fix-out-of-tree-egl.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
#because we cannot rely on the fact that all apps will use pkgconfig,
|
||||
#make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
|
||||
do_install_append() {
|
||||
if ${@base_contains('PACKAGECONFIG', 'egl', 'true', 'false', d)}; then
|
||||
if [ -e "${D}${includedir}/EGL/eglplatform.h" ]; then
|
||||
sed -i -e 's/^#ifdef MESA_EGL_NO_X11_HEADERS/#if ${@base_contains('DISTRO_FEATURES', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user