Liangbin Lian
4bb9af48ca
lua: lnum: fix strtoul based number parsing
...
Lua's LNUM patch currently doesn't parse properly certain numbers as
it's visible from the following simple tests.
On x86_64 host (stock Lua 5.1.5, expected output):
$ /usr/bin/lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'
2147483648
8796093022208
4294967296
On x86_64 host:
$ staging_dir/hostpkg/bin/lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'
-2147483648
0
0
On x86_64 target:
$ lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'
-2147483648
0
0
On ath79 target:
$ lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'
-2147483648
8796093022208
4294967296
It's caused by two issues fixed in this patch, first issue is caused by
unhadled strtoul overflow and second one is caused by the cast of
unsigned to signed Lua integer when parsing from hex literal.
Run tested on:
* Zidoo Z9S with RTD1296 CPU (aarch64_cortex-a53)
* qemu/x86_64
* qemu/armvirt_64
* ath79
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
[commit subject/message touches, fixed From to match SOB, fixed another
unhandled case in luaO_str2i, host Lua, package bump]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
5 years ago
Jo-Philipp Wich
0e70f69a35
treewide: revise library packaging
...
- Annotate versionless libraries (such as libubox, libuci etc.) with a fixed
ABI_VERSION resembling the source date of the last incompatible change
- Annotate packages shipping versioned library objects with ABI_VERSION
- Stop shipping unversioned library symlinks for packages with ABI_VERSION
Ref: https://openwrt.org/docs/guide-developer/package-policies#shared_libraries
Ref: https://github.com/KanjiMonster/maintainer-tools/blob/master/check-abi-versions.pl
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years ago
Paul Wassi
3c79bb5606
package/utils/lua: cleanup source mirrors
...
Remove inactive mirrors from the sources list.
Signed-off-by: Paul Wassi <p.wassi@gmx.at>
6 years ago
Matthias Schiffer
77beaf2ec9
package: replace $(STAGING_DIR)/host with $(STAGING_DIR_HOSTPKG)
...
Cleanup to prepare for changing STAGING_DIR_HOSTPKG. The actual change of
STAGING_DIR_HOSTPKG (i.e., moving the host packages back into a common, not
target-specific directory) will be done after the first LEDE release, but
the cleanup will also be useful for projects like Gluon.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years ago
Felix Fietkau
720b99215d
treewide: clean up download hashes
...
Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Jo-Philipp Wich
24a7ccb056
treewide: replace jow@openwrt.org with jo@mein.io
...
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years ago
Felix Fietkau
64da662a88
toolchain/glibc: remove obsolete versions
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48780
9 years ago
Felix Fietkau
808803f6ae
lua: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST)
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48405
9 years ago
Luka Perkov
75078acd93
cosmetic: remove trailing whitespaces
...
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 47197
9 years ago
John Crispin
b1e19ee445
lua: fix eglibc reference
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 45013
10 years ago
Nicolas Thill
f4417f7ad8
package/*: replace occurences of 'ln -sf' to '$(LN)'
...
Signed-off-by: Nicolas Thill <nico@openwrt.org>
SVN-Revision: 43205
10 years ago
John Crispin
4ebf19b48f
packages: clean up the package folder
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37007
11 years ago
Hamish Guthrie
81a3d9ba31
licensing: Add licensing metadata to many packages Two new variables are introduces to many packages, namely PKG_LICENSE and PKG_LICENSE_FILES - there may be more than one license applied to packages, and these are listed in the PKG_LICENSE variable and separated by spaces. All relevant license files are also added to the PKG_LICENSE_FILES variable, also space separated.
...
The licensing metadata is put into the bin/<platform>/packages/Packages file
for later parsing. A script for that is on it's way!
SVN-Revision: 33861
12 years ago
Felix Fietkau
cd471b762f
lua: enable parallel builds
...
SVN-Revision: 33716
12 years ago
Jo-Philipp Wich
109cf29629
lua: update to v5.1.5, refresh patches
...
SVN-Revision: 33707
12 years ago
Jo-Philipp Wich
d1d1ae994b
claim maintainership for resolveip and lua
...
SVN-Revision: 33694
12 years ago
Jo-Philipp Wich
f3e4c15229
lua: remove posix from Lua core, almost nothing uses it - saves 9k compressed
...
SVN-Revision: 26822
13 years ago
Jo-Philipp Wich
59cf671160
lua: switch to double precision for floats
...
SVN-Revision: 23284
14 years ago
Jo-Philipp Wich
fe6b17f6ad
lua: drop refcounting patch in preparation for 10.03, it has unresolved issues resulting in random vm crashes
...
SVN-Revision: 20617
15 years ago
Jo-Philipp Wich
a0d2c65033
lua: the variable expansion to detect the host os does not work with GNU Make 3.81, replace it with a nested ifeq
...
SVN-Revision: 18193
15 years ago
Felix Fietkau
4cef53b4e4
lua: fix a typo
...
SVN-Revision: 18190
15 years ago
Felix Fietkau
3dcdf925c7
lua: re-enable host builds with some more fixes
...
SVN-Revision: 18189
15 years ago
Felix Fietkau
6db489f1b0
lua: use float instead of double, reduces the gc data structure size by 4 byte => luci processes use 10% less memory
...
SVN-Revision: 18159
15 years ago
Jo-Philipp Wich
b18a60e1ac
lua: introduce soft memory limits that trigger a gc run but do not result in an oom error
...
SVN-Revision: 17016
15 years ago
Jo-Philipp Wich
03db00a803
package/lua: implement memory limits, scripts can use get_memory_limit() and set_memory_limit() to cap the maximum ram usage
...
SVN-Revision: 16753
15 years ago
Nicolas Thill
c2e3ae221d
lua: install lua.pc pkgconfig file as well ( closes : #5132 )
...
SVN-Revision: 15848
15 years ago
Nicolas Thill
53836068b4
change occurences of LUA to Lua (from http://www.lua.org/about.html : Please do not write it as "LUA", which is both ugly and confusing [...] So, please, write "Lua" right!)
...
SVN-Revision: 15412
16 years ago
Jo-Philipp Wich
98e70367c9
lua: revert r15108 & r15109
...
SVN-Revision: 15256
16 years ago
Felix Fietkau
34939cad39
get rid of $Id$ - it has never helped us and it has broken too many patches ;)
...
SVN-Revision: 15242
16 years ago
Jo-Philipp Wich
69c1c6ed28
lua: add zlib build dependency, fix inaccuracy in gzip loader
...
SVN-Revision: 15109
16 years ago
Jo-Philipp Wich
27b7e29e13
lua: add support for loading gzip compressed source files, bump package revision
...
SVN-Revision: 15108
16 years ago
Felix Fietkau
ddcfaeb1e5
move host build in packages into a separate namespace: package/<name>/host/<target> this allows dependencies between host and target packages, and saves unnecessary host builds for packages that contain both variants
...
SVN-Revision: 14905
16 years ago
Felix Fietkau
0d56c7c638
add back the old host patches for lua to improve portability
...
SVN-Revision: 14631
16 years ago
Felix Fietkau
25d318e815
merge host build of lua from tools/ into package/lua/Makefile
...
SVN-Revision: 14622
16 years ago
Felix Fietkau
4a21b1be1a
fix lua compile with eglibc selected and utmp support disabled
...
SVN-Revision: 14298
16 years ago
Nicolas Thill
d186cdbfd0
lua changes: - fix shared lib generation - don't ship liblua.so dev lib in liblua package - remove unsupported 'all' make target during build - misc cleanup - bump release number
...
SVN-Revision: 13179
16 years ago
Steven Barth
c1ef612776
Embed luaposix and bitlib into Lua core library
...
SVN-Revision: 12696
16 years ago
Steven Barth
4b7249183c
Updated Lua to 5.1.4
...
SVN-Revision: 12383
16 years ago
Felix Fietkau
e9ea28b0af
use $(FPIC) in a few places where it matters
...
SVN-Revision: 12225
16 years ago
Florian Fainelli
890c213508
x86_64 also needs -fPIC to create lua shared libraries
...
SVN-Revision: 12008
16 years ago
Steven Barth
a1031eeb23
lua: Remove -fPIC for non-powerpc platforms
...
SVN-Revision: 11985
16 years ago
Steven Barth
76215afdec
lua: Fixed some cross-platform issues for PPC (and probably other architectures)
...
SVN-Revision: 11608
16 years ago
Felix Fietkau
554ddcf755
fix liblua symlink installation
...
SVN-Revision: 11245
16 years ago
Steven Barth
f3bc063753
Added missing header reference to InstallDev target
...
SVN-Revision: 11241
16 years ago
Felix Fietkau
ffc0827b65
fix lua compile configuration error
...
SVN-Revision: 11047
17 years ago
Felix Fietkau
19cb0b3693
fix lua cflags
...
SVN-Revision: 10971
17 years ago
Felix Fietkau
77760bba21
remove lua's dependency on libreadline and libncurses
...
SVN-Revision: 10817
17 years ago
Felix Fietkau
1563615bed
move lua from packages/ to trunk in anticipation of upcoming stuff ;)
...
SVN-Revision: 10806
17 years ago