<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildroot/package/luajit, branch 2016.08</title>
<subtitle>OpenPOWER buildroot sources</subtitle>
<id>https://git.raptorcs.com/git/buildroot/atom?h=2016.08</id>
<link rel='self' href='https://git.raptorcs.com/git/buildroot/atom?h=2016.08'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/'/>
<updated>2016-08-31T21:31:41+00:00</updated>
<entry>
<title>package/luajit: disable for mips{32,64}r6</title>
<updated>2016-08-31T21:31:41+00:00</updated>
<author>
<name>Jörg Krause</name>
<email>joerg.krause@embedded.rocks</email>
</author>
<published>2016-08-31T18:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=c72a2529aae8bcf8560dd1204d6b11e9ec9df81b'/>
<id>urn:sha1:c72a2529aae8bcf8560dd1204d6b11e9ec9df81b</id>
<content type='text'>
LuaJIT does not have support for MIPS Release 6 [1]. If LuaJIT is
invoked with the option `-b -a mips` to save the bytecode for the MIPS
architecture it generates object files with the MIPS32 Release 1
instruction set.

GCC added support for MIPS32R6 in version 5. However, object files for MIPS32R1
cannot be linked with object for MIPS32R6.

That's why building the package luvi fails for MIPS32R6, where object files
created with GCC are linked with object files created with LuaJIT with
the following linker error:

```
linking mips:isa32 module with previous mips:isa32r6 modules
```

Disable LuaJIT for MIPS32 and MIPS64 R6 to fix the build issue with the
luvi package.

Fixes:
http://autobuild.buildroot.net/results/e01/e017671c33314e5bf2d7fc4920f6c0e64a132383/
http://autobuild.buildroot.net/results/35f/35f558453c45a27367e80e9b8cbe3bd2dccbfd54/
http://autobuild.buildroot.net/results/8e0/8e001112b1678f9fb1c198c84184cd6f5fc3d004/

[1] http://www.freelists.org/post/luajit/Support-for-MIPS32r6,1

Signed-off-by: Jörg Krause &lt;joerg.krause@embedded.rocks&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>luajit: fix host installation</title>
<updated>2016-05-01T21:29:56+00:00</updated>
<author>
<name>Romain Naour</name>
<email>romain.naour@gmail.com</email>
</author>
<published>2016-05-01T21:22:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=e05a5b8e342f94aae7d79fe648003dd1a65ebc41'/>
<id>urn:sha1:e05a5b8e342f94aae7d79fe648003dd1a65ebc41</id>
<content type='text'>
Packages installed for the host should have their prefix set to
$(HOST_DIR)/usr, and therefore not use DESTDIR at installation time.

Using PREFIX=/usr DESTDIR=$(HOST_DIR) is wrong, and leads for example to
luajit.pc containing prefix=/usr, which means pkg-config returns
incorrect results for host-luajit.

This patch fixes the luajit package to conform to this rule.

Signed-off-by: Romain Naour &lt;romain.naour@gmail.com&gt;
Cc: Gustavo Zacarias &lt;gustavo@zacarias.com.ar&gt;
[Thomas: rewrite commit log.]
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/luajit: ensure dynamic library symlinks are created</title>
<updated>2016-03-26T17:22:52+00:00</updated>
<author>
<name>Romain Naour</name>
<email>romain.naour@gmail.com</email>
</author>
<published>2016-03-23T22:04:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=b33c4a2d4e5390d3d657d2afd8a9a275a5cf4185'/>
<id>urn:sha1:b33c4a2d4e5390d3d657d2afd8a9a275a5cf4185</id>
<content type='text'>
The luajit Makefile has the following logic:

          $(LDCONFIG) $(INSTALL_LIB) &amp;&amp; \
          $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) &amp;&amp; \
          $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :

So if ldconfig fails for some reason, the symbolic links to refer to
the luajit library are not created. Since ldconfig for the target
didn't make sense, LDCONFIG=true has been added a long time ago when
building the target variant of luajit.

However, since commit 9ba8d1cce4ab00307827083bae234d87b37fb967, the
host variant of luajit is also linked dynamically. While ldconfig for
the host should work, on certain machines ldconfig is not available in
the PATH, and needs to be explicitly called as
/sbin/ldconfig. However, since output/host/usr/lib is in the RPATH of
the binaries we create, there is really no need to bother running
ldconfig, so we simply pass LDCONFIG=true, like we do for the target
variant. This ensures that the symlinks are always created.

Fixes:
http://autobuild.buildroot.net/results/4dc/4dcbcde0046e265317e170a977e699e5c3a06b87/

Signed-off-by: Romain Naour &lt;romain.naour@gmail.com&gt;
Cc: Francois Perrad &lt;francois.perrad@gadz.org&gt;
[Thomas: rewrite commit log with a proper explanation.]
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/luajit: build host variant dynamically</title>
<updated>2016-03-20T21:26:30+00:00</updated>
<author>
<name>Romain Naour</name>
<email>romain.naour@gmail.com</email>
</author>
<published>2016-03-04T23:00:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=9ba8d1cce4ab00307827083bae234d87b37fb967'/>
<id>urn:sha1:9ba8d1cce4ab00307827083bae234d87b37fb967</id>
<content type='text'>
While building libevas.so for the host-efl with luajit support, the link fail
when libluajit is build statically:

/usr/bin/ld: output/host/usr/lib/libluajit-5.1.a(ljamalg.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
output/host/usr/lib/libluajit-5.1.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Build luajit dynamically in order to build host-efl with luajit support.

Also, passing HOST_LDFLAGS is needed so that a proper rpath is added
to the resulting binaries. Note that it is expected to have
HOST_LDFLAGS assigned to TARGET_LDFLAGS, it's just that luajit has a
somewhat non-conventional naming of variables. This is needed to avoid
the following error from the rpath sanity check:

***
*** ERROR: package host-luajit installs executables without proper RPATH:
***   output/host/usr/bin/luajit

Signed-off-by: Romain Naour &lt;romain.naour@gmail.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/luajit: disable for static build</title>
<updated>2015-07-18T19:06:02+00:00</updated>
<author>
<name>Jörg Krause</name>
<email>joerg.krause@embedded.rocks</email>
</author>
<published>2015-07-17T12:46:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=b2e8f28efac7125a6a8cf1db9087b3710101b487'/>
<id>urn:sha1:b2e8f28efac7125a6a8cf1db9087b3710101b487</id>
<content type='text'>
luajit requires dlopen().

Fixes:
http://autobuild.buildroot.net/results/20d/20dfb10198f3688f92208591960192ca08280987/
http://autobuild.buildroot.net/results/c3c/c3cfdf8dfb315bf64caa9ed0f362016111fd93ac/
http://autobuild.buildroot.net/results/8cb/8cbf6207ecf7b254aeccd9ec5c07376a044e1f8f/

[Thomas: propagate the new dependency to the sysdig package, which
selects luajit.]

Signed-off-by: Jörg Krause &lt;joerg.krause@embedded.rocks&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>luajit: clean fuzz/offset in patches</title>
<updated>2015-06-02T20:48:35+00:00</updated>
<author>
<name>Francois Perrad</name>
<email>fperrad@gmail.com</email>
</author>
<published>2015-06-02T16:32:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=930b2cb92afe167346ff04e734e93e937ac2ac3c'/>
<id>urn:sha1:930b2cb92afe167346ff04e734e93e937ac2ac3c</id>
<content type='text'>
Signed-off-by: Francois Perrad &lt;francois.perrad@gadz.org&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>package/luajit: fix typo in patchs commit log</title>
<updated>2015-05-21T17:12:08+00:00</updated>
<author>
<name>Jörg Krause</name>
<email>joerg.krause@embedded.rocks</email>
</author>
<published>2015-05-20T07:41:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=d0c83b0500512384ac841bb232581734f6587596'/>
<id>urn:sha1:d0c83b0500512384ac841bb232581734f6587596</id>
<content type='text'>
Signed-off-by: Jörg Krause &lt;joerg.krause@embedded.rocks&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/luajit: renumber patches</title>
<updated>2015-05-21T17:12:03+00:00</updated>
<author>
<name>Jörg Krause</name>
<email>joerg.krause@embedded.rocks</email>
</author>
<published>2015-05-20T07:41:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=e672cfbe57de29f55047af6502de6711cb017418'/>
<id>urn:sha1:e672cfbe57de29f55047af6502de6711cb017418</id>
<content type='text'>
Signed-off-by: Jörg Krause &lt;joerg.krause@embedded.rocks&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/luajit: bump to version 2.0.4</title>
<updated>2015-05-21T17:12:00+00:00</updated>
<author>
<name>Jörg Krause</name>
<email>joerg.krause@embedded.rocks</email>
</author>
<published>2015-05-20T07:41:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=de8494e31a5ef75017c140d294155ddee6390490'/>
<id>urn:sha1:de8494e31a5ef75017c140d294155ddee6390490</id>
<content type='text'>
Signed-off-by: Jörg Krause &lt;joerg.krause@embedded.rocks&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>packages: remove (non-)lfs dependencies and tweaks</title>
<updated>2015-04-01T20:47:22+00:00</updated>
<author>
<name>Gustavo Zacarias</name>
<email>gustavo@zacarias.com.ar</email>
</author>
<published>2015-03-30T21:07:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=f4716f79a0145fe3f2bf0d2cfe9ccbfede36fc01'/>
<id>urn:sha1:f4716f79a0145fe3f2bf0d2cfe9ccbfede36fc01</id>
<content type='text'>
Now that largefile is mandatory removes package dependencies and
conditionals.

Signed-off-by: Gustavo Zacarias &lt;gustavo@zacarias.com.ar&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
</feed>
