<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-java.git/classes/openjdk-build-helper.bbclass, branch dunfell</title>
<subtitle>[no description]</subtitle>
<id>https://git.enea.com/cgit/linux/meta-java.git/atom?h=dunfell</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-java.git/atom?h=dunfell'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/'/>
<updated>2021-11-17T16:44:26+00:00</updated>
<entry>
<title>openjdk-build-helper: Use python raw string for regex pattern</title>
<updated>2021-11-17T16:44:26+00:00</updated>
<author>
<name>Douglas Royds</name>
<email>douglas.royds@taitradio.com</email>
</author>
<published>2021-10-15T00:13:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=e5444bfb0a09d19485b8b2099305b5e289f45a26'/>
<id>urn:sha1:e5444bfb0a09d19485b8b2099305b5e289f45a26</id>
<content type='text'>
See https://docs.python.org/3/library/re.html

Invalid escape sequences in Python’s usage of the backslash in string literals
now generate a DeprecationWarning, and in the future this will become a
SyntaxError. The solution is to use Python’s raw string notation for regular
expression patterns; backslashes are not handled in any special way in a string
literal prefixed with 'r'.

Signed-off-by: Douglas Royds &lt;douglas.royds@taitradio.com&gt;
Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
<entry>
<title>openjdk-build-helper: fix arm64 build</title>
<updated>2021-11-17T16:22:21+00:00</updated>
<author>
<name>Jerome Brunet</name>
<email>jbrunet@baylibre.com</email>
</author>
<published>2021-10-22T15:12:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=327a097f5a81eba365a80ee3c52ec885629d42f3'/>
<id>urn:sha1:327a097f5a81eba365a80ee3c52ec885629d42f3</id>
<content type='text'>
When trying to build for an arm64 machine, such as qemuarm64, parsing of
the recipes fails with the following messages:

WARNING: /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb: Exception during build_dependencies for LLVM_CONFIGURE_ARCH
WARNING: /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb: Error during finalise of /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
ERROR: ExpansionError during parsing /meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
Traceback (most recent call last):
  File "Var &lt;LLVM_CONFIGURE_ARCH&gt;", line 1, in &lt;module&gt;
  File "/meta-java/classes/openjdk-build-helper.bbclass", line 86, in openjdk_build_helper_get_llvm_configure_arch(d=&lt;bb.data_smart.DataSmart object at 0x7f08fed017c0&gt;):
         else:
    &gt;        if 'shark' in d.getVar('PACKAGECONFIG').split():
                 bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) );
bb.data_smart.ExpansionError: Failure expanding variable LLVM_CONFIGURE_ARCH, expression was ${@openjdk_build_helper_get_llvm_configure_arch(d)} which triggered exception AttributeError: 'NoneType' object has no attribute 'split'

Using 'bb.utils.contains' solves the problem.

Signed-off-by: Jerome Brunet &lt;jbrunet@baylibre.com&gt;
Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
<entry>
<title>all: run convert-overrides (0.9.3) script to convert to new override format</title>
<updated>2021-08-11T05:19:27+00:00</updated>
<author>
<name>AJ Bagwell</name>
<email>anthony.bagwell@hivehome.com</email>
</author>
<published>2021-08-09T13:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=b71a9866abfd5292650ef0afc5ecb9ab5e29b887'/>
<id>urn:sha1:b71a9866abfd5292650ef0afc5ecb9ab5e29b887</id>
<content type='text'>
Signed-off-by: AJ Bagwell &lt;anthony.bagwell@hivehome.com&gt;
Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
<entry>
<title>openjdk-build-helper: Fix decoding GCC major version</title>
<updated>2020-05-01T09:22:15+00:00</updated>
<author>
<name>Jacob Kroon</name>
<email>jacob.kroon@gmail.com</email>
</author>
<published>2020-04-30T13:15:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=2044442bbc4849c2ca33b1402883cae95de757a2'/>
<id>urn:sha1:2044442bbc4849c2ca33b1402883cae95de757a2</id>
<content type='text'>
GCC in Fedora 32 is up to version 10, so return the whole word
instead of the first letter.

Signed-off-by: Jacob Kroon &lt;jacob.kroon@gmail.com&gt;
Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
<entry>
<title>remove True option to getVar calls</title>
<updated>2019-12-27T11:05:54+00:00</updated>
<author>
<name>André Draszik</name>
<email>andre.draszik@jci.com</email>
</author>
<published>2019-01-13T11:13:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=7a3a8322a747c8803dbfbf3aa4912cf9f8158695'/>
<id>urn:sha1:7a3a8322a747c8803dbfbf3aa4912cf9f8158695</id>
<content type='text'>
getVar() has been defaulting to expanding by default for
a long time (2016), thus remove the True option from
getVar() calls with a regex search and replace.

Search &amp; replace made using the following command:
    sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \
        -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \
             | cut -d':' -f1 \
             | sort -u)

Signed-off-by: André Draszik &lt;andre.draszik@jci.com&gt;
Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
<entry>
<title>openjdk-build-helper: add get_*_arch functions</title>
<updated>2018-10-02T05:59:06+00:00</updated>
<author>
<name>Richard Leitner</name>
<email>richard.leitner@skidata.com</email>
</author>
<published>2018-08-20T21:14:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=8d12f59cfc6e829bf3454840db4de4935401b058'/>
<id>urn:sha1:8d12f59cfc6e829bf3454840db4de4935401b058</id>
<content type='text'>
As different parts of OpenJDK use sightly different names for ARCH'es we
provide those translations functions centrally in our
openjdk-build-helper class.

Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
<entry>
<title>openjdk-build-helper: move c compiler flags retrieval to here (from openjdk-8)</title>
<updated>2018-08-13T20:55:05+00:00</updated>
<author>
<name>André Draszik</name>
<email>andre.draszik@jci.com</email>
</author>
<published>2018-08-13T15:09:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=bb3dcf4228fb457939680dc9df3df2bda681abfb'/>
<id>urn:sha1:bb3dcf4228fb457939680dc9df3df2bda681abfb</id>
<content type='text'>
Icedtea 7 and OpenJDK 7 will need to apply new compiler flags for certain
compiler version without breaking support for older (host) compilers.

Move here so that the same code can be re-used.

Signed-off-by: André Draszik &lt;andre.draszik@jci.com&gt;
Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
<entry>
<title>java.bbclass: move openjdk/icedtea specific code into new class</title>
<updated>2018-08-13T20:52:44+00:00</updated>
<author>
<name>André Draszik</name>
<email>andre.draszik@jci.com</email>
</author>
<published>2018-08-13T15:09:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-java.git/commit/?id=3c710bf3a90fde0cf6d590ffefc349bfb9a1c677'/>
<id>urn:sha1:3c710bf3a90fde0cf6d590ffefc349bfb9a1c677</id>
<content type='text'>
The code moved is not relevant to anything using java, just for
compiling java itself. It doesn't make sense to have here.

Move it into openjdk-build-helper

Signed-off-by: André Draszik &lt;andre.draszik@jci.com&gt;
Signed-off-by: Richard Leitner &lt;richard.leitner@skidata.com&gt;
</content>
</entry>
</feed>
