# HG changeset patch # User Pascal Bellard # Date 1539103830 -7200 # Node ID c344508ff4ebdcdba1bcda9bf6b10dd771de901f # Parent 623f02d7e6c887ea90e0e11b1e9c830c7a5a3641 Add python-websocket-client diff -r 623f02d7e6c8 -r c344508ff4eb linld/receipt --- a/linld/receipt Sat Oct 06 18:50:19 2018 +0200 +++ b/linld/receipt Tue Oct 09 18:50:30 2018 +0200 @@ -38,8 +38,17 @@ cp TAZBOOT/TAZBOOT.COM tazboot.com objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \ linld.com > linld.lst - upx -5 --8086 linld.com - upx -5 --8086 tazboot.com + for f in linld.com tazboot.com ; do + cp $f tmp.com + for i in $(seq 1 9); do + upx -$i --8086 tmp.com + [ $(stat -c "%s" $f) -gt $(stat -c "%s" tmp.com) ] && + cp tmp.com $f + upx -d tmp.com + done > /dev/null 2>&1 + rm tmp.com + done + upx -l linld.com tazboot.com cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S objcopy -O binary tobzimage.o tobzimage.bin cp $stuff/tobzimage . diff -r 623f02d7e6c8 -r c344508ff4eb linld/stuff/src/_BEG.ASM --- a/linld/stuff/src/_BEG.ASM Sat Oct 06 18:50:19 2018 +0200 +++ b/linld/stuff/src/_BEG.ASM Tue Oct 09 18:50:30 2018 +0200 @@ -50,7 +50,7 @@ ; clear bss ;*************************************************************** mov si,offset _bss_start - mov bx, 0F000h ; cld ; cli + mov bx, 0F000h ; cld ; cli & empty string clearbss: mov [si],bl ; clear bss + heap + sp inc si @@ -68,40 +68,33 @@ add dh,bh ; NS=386+, S+NC=286, S+C=86/186 ifndef NO386 mov bx,offset msg_badcpu - js no_vcpi ;it is not a 386+ + js godie ;it is not a 386+ else - js endcpu ;it is not a 386+ + js endcpu86 ;it is not a 386+ endif p386 - ifdef EXTRA - pushfd - pop dx - pop ax - mov bl,al - xor al,20h ; toggle CPUID feature bit 21 - push ax - push dx - popfd - pushfd - pop dx - pop ax - xor al,bl ; clear C - je @@check_vm ; CPUID feature bit changed ? - mov eax,80000001h ; Extended Processor Info and Feature Bits - cpuid - mov [_cpu_features],edx -@@check_vm: - endif ; Check for vm smsw ax ;SMSW cannot be trapped! :-) and al,1 ;MSW_PE ; We're in vm - jz check_rm_paging + jnz check_vcpi + +check_rm_paging: +; It's a 386 in real mode, chk for paging (crazy but possible) + mov eax,cr0 + inc eax ;CR0_PG to S + jns endcpu386 +no_vcpi: + p8086 + extrn die:near +godie: + call near die ;*************************************************************** ; checks for vcpi ;*************************************************************** label check_vcpi near + p386 push ds ; Check whether it is safe to call 67h (we trust only known EMM managers) push si @@ -142,29 +135,35 @@ test ah,ah jnz no_vcpi is386vcpi: - inc [byte _vcpi] extrn prepare_vcpi:near call prepare_vcpi ; get_vcpi_interface() || die("VCPI: low 640k: need 1:1 mapping"); ;extrn _get_vcpi_interface:near ;call _get_vcpi_interface mov bx,offset msg_badmapping - jz endcpu -no_vcpi: - p8086 - ;;pop dx ;$ handle - ;;mov ax,4500h ; DEALLOCATE PAGES - ;;int 67h - extrn die:near -godie: - call near die -check_rm_paging: -; It's a 386 in real mode, chk for paging (crazy but possible) - p386 - mov eax,cr0 - inc eax ;CR0_PG to S - js no_vcpi -endcpu: + jnz no_vcpi + inc [byte bx+_vcpi-msg_badmapping] +endcpu386: + ifdef EXTRA + pushfd + pop dx + pop ax + mov bl,al + xor al,20h ; toggle CPUID feature bit 21 + push ax + push dx + popfd + pushfd + pop dx + pop ax + xor al,bl ; clear C + je @@no_cpuid ; CPUID feature bit changed ? + mov eax,80000001h ; Extended Processor Info and Feature Bits + cpuid + mov [_cpu_features],edx +@@no_cpuid: + endif +endcpu86: p8086 ;*************************************************************** diff -r 623f02d7e6c8 -r c344508ff4eb python-websocket-client/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-websocket-client/receipt Tue Oct 09 18:50:30 2018 +0200 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="python-websocket-client" +SOURCE="websocket_client" +VERSION="0.53.0" +CATEGORY="development" +SHORT_DESC="WebSocket client for Python. hybi13 is supported." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="LGPL2.1" +WEB_SITE="https://github.com/websocket-client/websocket-client.git" +TARBALL="$SOURCE-$VERSION.tar.gz" +WGET_URL="https://files.pythonhosted.org/packages/fb/1f/9acd71b77e66fafb19cfb023e50cbb7ed2c3be3c72db999162bd36c518c4/$TARBALL" + +DEPENDS="python" +BUILD_DEPENDS="setuptools" + +# Rules to configure and make the package. +compile_rules() +{ + python setup.py install --prefix=/usr --root=$DESTDIR +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $install/usr/share/doc + cp $src/README* $install/usr/share/doc + cp -a $install/usr $fs/ +}