aboutsummaryrefslogtreecommitdiff
path: root/package/lua
Commit message (Collapse)AuthorAgeFilesLines
* lua: rename patches to the new conventionGravatar Francois Perrad2014-12-248-0/+0
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Rename BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBSGravatar Thomas Petazzoni2014-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Since a while, the semantic of BR2_PREFER_STATIC_LIB has been changed from "prefer static libraries when possible" to "use only static libraries". The former semantic didn't make much sense, since the user had absolutely no control/idea of which package would use static libraries, and which packages would not. Therefore, for quite some time, we have been starting to enforce that BR2_PREFER_STATIC_LIB should really build everything with static libraries. As a consequence, this patch renames BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS, and adjust the Config.in option accordingly. This also helps preparing the addition of other options to select shared, shared+static or just static. Note that we have verified that this commit can be reproduced by simply doing a global rename of BR2_PREFER_STATIC_LIB to BR2_STATIC_LIBS plus adding BR2_PREFER_STATIC_LIB to Config.in.legacy. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* lua: add hashGravatar Francois Perrad2014-09-191-0/+6
| | | | | | [Peter: fixup hash file syntax] Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* lua: fix license path for lua 5.2Gravatar Frank Hunleth2014-09-131-0/+4
| | | | | | | | | The file containing the license for lua 5.1 was removed and the license text was added to the readme in 5.2. [Peter: swap 5.1/5.2 logic] Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* host-lua: compat mode not longer needed by the newest luarocksGravatar Francois Perrad2014-09-061-4/+0
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: make providers declare what they provideGravatar Yann E. MORIN2014-05-211-0/+2
| | | | | | | | | | | | | | | Fixes: http://autobuild.buildroot.org/results/285/2851069d6964aa46d26b4aabe7d84e8c0c6c72ce http://autobuild.buildroot.net/results/9b7/9b7870354d70e27e42d3d9c1f131ab54706bf20e [...] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <jacmet@uclibc.org> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/lua: rename config optionsGravatar Yann E. MORIN2014-04-052-7/+7
| | | | | | | | | | | | | | | | | | | Package's options should be named after the package. Lua is an interpreter, but the package is named 'lua'. So we want to name the config option with '_LUA_', not with '_LUA_INTERPRETER_' Besides, naming them with '_LUA_INTERPRETER_' might be confusing, since there is a package named 'luainterpreter'. Since the renamed options are part of a choice, we can't use the legacy options to select the new ones. So we instead instruct the user to go select the appropriate option in the choice. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Francois Perrad <fperrad@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/luainterpreter: rename the _HAS and _PROVIDES variablesGravatar Yann E. MORIN2014-04-051-2/+2
| | | | | | | | | | | | | | | | | | The basic rule for a package is to have its options named after the package name. There is no reason this should not also be the case for virtual packages. Besides, this will allow us to switch luainterpreter to use the soon-to-be-introduced virtual-package infrastructure. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com> Cc: Mike Zick <minimod@morethan.org> Cc: Francois Perrad <fperrad@gmail.com> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: handles BR2_PREFER_STATIC_LIBGravatar Francois Perrad2014-02-263-20/+41
| | | | | | | | | fix compilation with Blackfin FLAT see http://autobuild.buildroot.net/results/b41/b4146bf821d59f694546f6e3a341394cc8fa43ce/ Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* lua: refactor install stepsGravatar Francois Perrad2014-02-263-27/+47
| | | | | | | | since the comeback of version in module path (see commit ccd68a51) the upstream Makefiles are usable for install. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* lua: remove LUA_INSTALLED_FILESGravatar Francois Perrad2014-02-261-11/+0
| | | | | | | | Useless since the uninstall commands were removed in eb7bd9ef Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* lua: add an upstream patchGravatar Francois Perrad2014-01-211-0/+46
| | | | | | | from http://www.lua.org/bugs.html Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* lua: choice between 5.1.x & 5.2.xGravatar Francois Perrad2014-01-219-1/+167
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* lua*: restore version in module pathsGravatar Francois Perrad2014-01-131-17/+4
| | | | | | | | (like in upstream) Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* luainterpreter: create virtual packageGravatar Francois Perrad2014-01-131-0/+4
| | | | | | | | | | | | | | | | This patch introduces the luainterpreter virtual package, which is provided either by 'lua' or by 'lua-jit'. Packages that require a Lua interpreter can then depend on BR2_PACKAGE_LUAINTERPRETER (in their Config.in) and luainterpreter (in their .mk). Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: switch to package-defined providers, apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* lua: remove a too invasive patchGravatar Francois Perrad2013-12-251-97/+0
| | | | | | | | | | the static version of luac is enough Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: remove package clean commandsGravatar Thomas De Schampheleire2013-12-081-8/+0
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* packages: remove uninstall commandsGravatar Thomas De Schampheleire2013-12-061-18/+0
| | | | | Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* trivial: correct capitalization of Lua in Config.in filesGravatar Thomas De Schampheleire2013-09-071-2/+2
| | | | | | | | | | | | | | The Lua website says: "Like most names, it should be written in lower case with an initial capital, that is, "Lua". Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people." http://www.lua.org/about.html So, let's honor this request in buildroot. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove BR2_HAVE_DEVFILESGravatar Thomas Petazzoni2013-07-041-13/+0
| | | | | | | | | | | | This finally removes the BR2_HAVE_DEVFILES option, that was used to install/keep development files on target. With the recent migration of the internal backend to the package infrastructure, we had anyway lost the ability to build gcc for the target, and install the uClibc development files on the target. [Peter: also remove support/scripts/copy.sh] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: Added missing HOST_LDFLAGSGravatar Assaf Inbal2013-06-201-0/+1
| | | | | Signed-off-by: Assaf Inbal <shmuelzon@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Normalize separator size to 80Gravatar Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: support linenoiseGravatar Francois Perrad2012-12-053-1/+48
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: don't be fancy when creating shared libraryGravatar Peter Korsgaard2012-11-171-1/+1
| | | | | | | | | | | | | (Possibly) fixes #5354 The lua shared library patch was creating the shared library with -nostdlib -lgcc for some unknown reason, which most likely is the reason for the link issue reported in #5354. Fix it by dropping these arguments, so gcc gets to figure out itself what dependencies are needed. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: refactor without useless define'sGravatar Francois Perrad2012-11-151-25/+11
| | | | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: remove 3 sub-options, always install allGravatar Francois Perrad2012-11-152-35/+1
| | | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: Add license infoGravatar Danomi Manchego2012-08-041-0/+2
| | | | | | Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net>
* lua: fix typoGravatar Thomas Petazzoni2012-07-221-1/+1
| | | | | | | Commit c8da6d1dd656caf5454c50ee5dddb4beead60326 introduced a stupid typo. Fix it. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: use install -D everywhereGravatar Thomas Petazzoni2012-07-201-25/+25
| | | | | | | | | Installation of host-lua was failing because it was the first package to be built, and $(HOST_DIR)/usr/lib didn't exist. Therefore, use install -D everywhere so that intermediate directories are created as needed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: fix build issue with gcc 4.6Gravatar Thomas Petazzoni2012-07-202-2/+2
| | | | | | | | | | | gcc 4.6 has become more sensitive about option ordering, especially libraries. It requires the -l flags to be placed after the object files that need that library. See for example http://nick.zoic.org/art/etc/gcc-linker-libs.html. We had -llua at the beginning of the link command line, causing build issues (here on gcc 4.6 with host-lua). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: ensure that host-lua does not depend on host-readline and host-ncursesGravatar Thomas Petazzoni2012-07-201-0/+3
| | | | | | | | | | | | | | Commit ad6af5819f88bac9ca7f50e565c4fc68d3e408cc removed the HOST_LUA_DEPENDENCIES assignement to the empty variable, so from that commit, the dependencies of host-lua are automatically computed from the dependencies of lua. Since lua can depend on readline and ncurses, it means that host-lua can depend on host-readline and host-ncurses, and the host-readline package does not exist in Buildroot. Since there is no reason to build host-lua with readline/ncurses support, just re-add the HOST_LUA_DEPENDENCIES variable. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Francois Perrad <fperrad@gmail.com>
* lua: refactor without sedGravatar Francois Perrad2012-07-181-9/+7
| | | | | Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: embed sub-options into a if...endif instead of depends onGravatar Thomas Petazzoni2012-07-171-3/+4
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: refactor root path tuningGravatar Francois Perrad2012-07-172-2/+24
| | | | | | | Use a patch rather than sed'ing files in the build process. Signed-off-by: Francois Perrad <fperrad@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: split and rename patchesGravatar Francois Perrad2012-07-173-68/+66
| | | | | Signed-off-by: Francois Perrad <fperrad@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* all packages: rename XXXTARGETS to xxx-packageGravatar Arnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* all packages: use new host-xxx-package macrosGravatar Arnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS,host))/$(eval $(host-generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS,host))/$(eval $(host-autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS,host))/$(eval $(host-cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: bump version to 5.1.5Gravatar François Perrad2012-07-149-163/+40
| | | | | | | | | | [thomas.petazzoni@free-electrons.com: rewrote the patch, which was corrupted in the original submission. Used quilt to refresh the Lua patches, so that the version numbers are no longer present in the file names] Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: fix non-shared library buildGravatar Arnout Vandecappelle (Essensium/Mind)2012-03-131-1/+2
| | | | | | | | | Building without BR2_PACKAGE_LUA_SHARED_LIBRARY failed because of missing -ldl. dl is used by lua's dynamic module loading. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Avoid the warnings about the redefinition of LUA_USE_DLOPEN, when ↵Gravatar Francois Perrad2012-02-191-2/+2
| | | | | | | | | | BR2_PACKAGE_LUA_INTERPRETER_READLINE is set See src/luaconf.h lines 36-40 Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: Allow building lua for the hostGravatar Will Newton2012-01-261-0/+39
| | | | | Signed-off-by: Will Newton <will.newton@imgtec.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: remove useless arguments from GENTARGETSGravatar Thomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: make sure that CFLAGS are passedGravatar Thomas Petazzoni2010-08-241-1/+3
| | | | | | | | | | | We were passing a custom MYCFLAGS value to Lua's Makefile, but because of $(TARGET_CONFIGURE_OPTS), we were also passing a CFLAGS variable, which was overriding Lua's internal CFLAGS variable. The result was that MYCFLAGS wasn't taken into account. Extracted from the patch proposed by François Perrad in bug #2353. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Add new upstream Lua patches and rename all patches for consistencyGravatar Francois Perrad2010-08-246-0/+34
| | | | | | | | | | | | | | Several new upstream patches against the latest version of Lua have appeared on http://www.lua.org/bugs.html. This commit adds them to Buildroot, and also renames the other patches to have a coherent patch naming: lua-bugX, where X is the identifier of the bug as visible on http://www.lua.org/bugs.html. Note that bug 1 and 2 are not associated with patches, which explains why the first patch is labeled lua-bug3. Fixes bug #2365. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* lua: fix pkgconfig installationGravatar Peter Korsgaard2010-05-021-1/+1
| | | | | | | install -D needs the destination filename, not just it's directory, otherwise we end up with a pkgconfig file instead. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: Migrate to gentargets and improve itGravatar Gustavo Zacarias2010-05-018-69/+392
| | | | | | | | | | Closes #803 Based on initial patch by rvpaasen@t3i.nl [Peter: lua/luac needs liblua.so.* on target] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: only install headers if BR2_HAVE_DEVFILES is enabledGravatar Peter Korsgaard2009-10-031-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: Remove unnecessary dependencies on uclibc.Gravatar Will Newton2009-09-031-1/+1
| | | | | | | | A C library will have been built by the toolchain makefiles, so there is no need for packages to explicitly depend on uclibc. Signed-off-by: Will Newton <will.newton@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* lua: bump versionGravatar Peter Korsgaard2009-04-081-1/+1
| | | | Patch by Michael Roth <mroth@nessie.de>.
* readline: s/BR2_READLINE/BR2_PACKAGE_READLINE/Gravatar Peter Korsgaard2009-01-301-1/+1
| | | | Package configs should start with BR2_PACKAGE_.