wok rev 25490

Up foomatic-db-nonfree (20221115)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 17 11:49:10 2022 +0000 (17 months ago)
parents e1d0a02a021e
children 32f22d8fdc89
files diffpdf/receipt f3/receipt foomatic-db-nonfree/receipt libmatchbox/receipt libtirpc/receipt memtest/receipt memtest/stuff/unlzsa2.S
line diff
     1.1 --- a/diffpdf/receipt	Tue Nov 15 16:37:39 2022 +0000
     1.2 +++ b/diffpdf/receipt	Thu Nov 17 11:49:10 2022 +0000
     1.3 @@ -1,6 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="diffpdf"
     1.7 +HASH="b08ffc8a88426a1db4ff1d972011797732d149bc"
     1.8  VERSION="2.1.3"
     1.9  CATEGORY="utilities"
    1.10  SHORT_DESC="PDF files comparator."
    1.11 @@ -9,14 +10,15 @@
    1.12  WEB_SITE="https://gitlab.com/eang/diffpdf"
    1.13  
    1.14  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 -WGET_URL="http://www.qtrac.eu/$TARBALL"
    1.16 +WGET_URL="$WEB_SITE/-/archive/$HASH/diffpdf-$HASH.tar.gz"
    1.17  
    1.18  DEPENDS="poppler-qt4" 
    1.19  BUILD_DEPENDS="poppler-qt4-dev qmake Qt4-dev"
    1.20  
    1.21 +# What is the latest version available today?
    1.22  current_version()
    1.23  {
    1.24 -	wget -O - https://gitlab.com/eang/diffpdf/-/tags 2>/dev/null | \
    1.25 +	wget -O - $WEB_SITE/-/tags 2>/dev/null | \
    1.26  	sed '/diffpdf-v/!d;s|.*/diffpdf-v\([\.0-9]*\)\..*|\1|;q'
    1.27  }
    1.28  
     2.1 --- a/f3/receipt	Tue Nov 15 16:37:39 2022 +0000
     2.2 +++ b/f3/receipt	Thu Nov 17 11:49:10 2022 +0000
     2.3 @@ -6,14 +6,15 @@
     2.4  SHORT_DESC="An alternative to h2testw."
     2.5  MAINTAINER="paul@slitaz.org"
     2.6  LICENSE="GPL3"
     2.7 -WEB_SITE="http://oss.digirati.com.br/f3/"
     2.8 +WEB_SITE="https://github.com/AltraMayor/$PACKAGE"
     2.9  
    2.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.11 -WGET_URL="https://github.com/AltraMayor/$PACKAGE/archive/v$VERSION.tar.gz"
    2.12 +WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    2.13  
    2.14  DEPENDS=""
    2.15  BUILD_DEPENDS=""
    2.16  
    2.17 +# What is the latest version available today?
    2.18  current_version()
    2.19  {
    2.20  	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
     3.1 --- a/foomatic-db-nonfree/receipt	Tue Nov 15 16:37:39 2022 +0000
     3.2 +++ b/foomatic-db-nonfree/receipt	Thu Nov 17 11:49:10 2022 +0000
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="foomatic-db-nonfree"
     3.7 -VERSION="20221012" 
     3.8 +VERSION="20221115" 
     3.9  CATEGORY="system-tools"
    3.10  SHORT_DESC="database engine generates PPD files from the data in Foomatic's XML database"
    3.11  MAINTAINER="jozee@slitaz.org"
     4.1 --- a/libmatchbox/receipt	Tue Nov 15 16:37:39 2022 +0000
     4.2 +++ b/libmatchbox/receipt	Thu Nov 17 11:49:10 2022 +0000
     4.3 @@ -8,7 +8,7 @@
     4.4  LICENSE="LGPL2.1"
     4.5  WEB_SITE="https://www.yoctoproject.org/software-item/matchbox/"
     4.6  
     4.7 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
     4.8 +TARBALL="$PACKAGE-$VERSION.tar.gz"
     4.9  WGET_URL="http://git.yoctoproject.org/cgit/cgit.cgi/$PACKAGE/snapshot/$TARBALL"
    4.10  
    4.11  DEPENDS="pango"
     5.1 --- a/libtirpc/receipt	Tue Nov 15 16:37:39 2022 +0000
     5.2 +++ b/libtirpc/receipt	Thu Nov 17 11:49:10 2022 +0000
     5.3 @@ -6,7 +6,7 @@
     5.4  SHORT_DESC="Transport-Independent RPC library."
     5.5  MAINTAINER="pascal.bellard@slitaz.org"
     5.6  LICENSE="BSD"
     5.7 -WEB_SITE="https://sourceforge.net/projects/libtirpci/"
     5.8 +WEB_SITE="https://sourceforge.net/projects/libtirpc/"
     5.9  
    5.10  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    5.11  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     6.1 --- a/memtest/receipt	Tue Nov 15 16:37:39 2022 +0000
     6.2 +++ b/memtest/receipt	Thu Nov 17 11:49:10 2022 +0000
     6.3 @@ -30,7 +30,7 @@
     6.4  {
     6.5  	file=$1
     6.6  	shift
     6.7 -	for i in lzma lz4 lzsa1 lzsa2 ; do
     6.8 +	for i in lz4 lzsa1 lzsa2 lzma ; do
     6.9  		cp $stuff/*.S $stuff/pack .
    6.10  		sed "s/VERSION/$VERSION/;s|lzma1=|&nice=${1:-64},|" -i pack
    6.11  		while [ -n "$2" ]; do
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/memtest/stuff/unlzsa2.S	Thu Nov 17 11:49:10 2022 +0000
     7.3 @@ -0,0 +1,266 @@
     7.4 +// Lzsa2Decode:
     7.5 +#ifndef FLAT32
     7.6 +//   input   ds:si=inStream, es:di=outStream
     7.7 +//   output  outStream[], ds:si, es:di
     7.8 +	.code16
     7.9 +#define AX	%ax
    7.10 +#define BX	%bx
    7.11 +#define BP	%bp
    7.12 +#define SI	%si
    7.13 +#define DI	%di
    7.14 +#else
    7.15 +//   input   esi=inStream, edi=outStream
    7.16 +//   output  outStream[], ds:esi, es:edi
    7.17 +	.code32
    7.18 +#define AX	%eax
    7.19 +#define BX	%ebx
    7.20 +#define BP	%ebp
    7.21 +#define SI	%esi
    7.22 +#define DI	%edi
    7.23 +#endif
    7.24 +
    7.25 +MATCH_RUN_LEN		=	7
    7.26 +LITERALS_RUN_LEN	=	3
    7.27 +MIN_MATCH_SIZE		=	2
    7.28 +MIN_LITERALS_SIZE	=	0
    7.29 +
    7.30 +#define PACKED_ONLY			// assume no copy block, optional
    7.31 +//#define PARANOIA			// cover rare cases, optional
    7.32 + 
    7.33 +lzsa2main:
    7.34 +#ifdef PARANOIA
    7.35 +	cld
    7.36 +#endif
    7.37 +#ifndef RAW_FORMAT
    7.38 +# if defined(PARANOIA) && !defined(FLAT32) && !defined(FLAT16)
    7.39 +	xorw	%cx, %cx
    7.40 +	call	normalize
    7.41 +# endif
    7.42 +	lodsw
    7.43 +	cmpw	$0x9E7B, %ax	// magic
    7.44 +	jne	lzsa2main
    7.45 +	lodsb
    7.46 +	testb	$0x20, %al	// lzsa2
    7.47 +	je	lzsa2main
    7.48 +lzsa2block:			// uncompress chunk
    7.49 +# if !defined(FLAT32) && !defined(FLAT16)
    7.50 +	xorw	%cx, %cx
    7.51 +	call	normalize
    7.52 +# endif
    7.53 +	lodsw			// block size
    7.54 +	xchgw	%ax, %cx
    7.55 +	lodsb
    7.56 +# ifndef PACKED_ONLY
    7.57 +	orb	%al, %al
    7.58 +	jns	lzsa2compressed
    7.59 +#  if !defined(FLAT32) && !defined(FLAT16OUT)
    7.60 +	movw	%cx, %dx
    7.61 +	andb	$0x7F, %ch
    7.62 +	andw	$0x8000, %dx
    7.63 +copy32k:
    7.64 +	call	lzsa2movStr
    7.65 +	xchg	%dx, %cx
    7.66 +	incw	%cx
    7.67 +	loop	copy32k
    7.68 +#  else
    7.69 +	movsb			// copy block
    7.70 +copylp:
    7.71 +	movsb			// copy block
    7.72 +	loop	copylp		// handle 64K case
    7.73 +#  endif
    7.74 +	jmp	lzsa2block
    7.75 +lzsa2compressed:
    7.76 +	jne	lzsa2chunk	// 64Kb block
    7.77 +# endif
    7.78 +	jcxz	lzsa2quit	// bail if we hit EOD
    7.79 +# if !defined(FLAT16)
    7.80 +	movw	%cx, %dx
    7.81 +	xorw	%cx, %cx
    7.82 +	call	normalize
    7.83 +	addw	%si, %dx
    7.84 +	xchgw	%ax, %dx
    7.85 +# else
    7.86 +	movw	%si, %ax
    7.87 +	addw	%cx, %ax
    7.88 +# endif
    7.89 +	call	nothing
    7.90 +nothing:
    7.91 +	popw	%bx
    7.92 +	movw	%ax, %cs:maxsi+2-nothing(%bx)
    7.93 +#else
    7.94 +# if !defined(FLAT16)
    7.95 +	xorw	%cx, %cx
    7.96 +	call	normalize
    7.97 +# endif
    7.98 +#endif
    7.99 +	movb	$1, %dh		// no nibble stored
   7.100 +lzsa2chunk:			// uncompress chunk
   7.101 +	lodsb			// get token XYZ|LL|MMM
   7.102 +#if !defined(FLAT32) && !defined(FLAT16OUT)
   7.103 +	pushw	%ax
   7.104 +#else
   7.105 +	movb	%al, %bl	// keep token in bl
   7.106 +#endif
   7.107 +	shrb	$3, %al		// shift literals length into place
   7.108 +	movw	$LITERALS_RUN_LEN*256+MIN_LITERALS_SIZE, %cx
   7.109 +	call	lzsa2len	// %ch = LITERALS_RUN_LEN
   7.110 +#if !defined(FLAT32) && !defined(FLAT16OUT)
   7.111 +	call	lzsa2movLit	// copy %cx literals from %ds:%si to %es:%di
   7.112 +	popw	%bx
   7.113 +#else
   7.114 +	rep	movsb		// copy %cx literals from %ds:%si to %es:%di
   7.115 +#endif
   7.116 +#ifndef RAW_FORMAT
   7.117 +maxsi:
   7.118 +	cmpw	$0x1234, %si
   7.119 +	jae	lzsa2block	// bail if we hit EOD
   7.120 +#endif
   7.121 +#ifdef FLAT32
   7.122 +	orl	$-1, %eax	// set offset bits 31-8 to 1
   7.123 +#else
   7.124 +	movb	$-1, %ah	// set offset bits 15-8 to 1
   7.125 +#endif
   7.126 +// XYZ
   7.127 +	movb	%bl, %al
   7.128 +	testb	$0xC0, %al	//  check match offset mode in token (X bit)
   7.129 +	js	rep_match_or_large_offset
   7.130 +	jne	offset_9_bit
   7.131 +// 00Z 5-bit offset: read a nibble for offset bits 1-4 and use the inverted bit Z of the token as bit 0 of the offset.
   7.132 +//                   set bits 5-15 of the offset to 1.
   7.133 +	cmpb	$0x20, %al	// test bit 5
   7.134 +	call	getByteFromNibble
   7.135 +	jmp	get_match_length
   7.136 +offset_9_bit:
   7.137 +// 01Z 9-bit offset: read a byte for offset bits 0-7 and use the inverted bit Z for bit 8 of the offset.
   7.138 +//                   set bits 9-15 of the offset to 1.
   7.139 +	cmpb	$0x60, %al      // test bit 5 (knowing that bit 6 is also set)
   7.140 +	adcb	%ah, %ah	// clear bit 8 if Z bit is clear
   7.141 +	jmp	get_match_length_0
   7.142 +
   7.143 +getNibble:
   7.144 +	negb	%dh
   7.145 +	jns	gotnibble
   7.146 +	lodsb
   7.147 +	movb	%al, %dl
   7.148 +gotnibble:
   7.149 +	rolb	$4, %dl
   7.150 +	movb	%dl, %al
   7.151 +	andb	$0xF, %al
   7.152 +lzsa2quit:
   7.153 +	ret
   7.154 +
   7.155 +rep_match_or_large_offset:
   7.156 +	jpe	rep_match_or_16_bit
   7.157 +//10Z 13-bit offset: read a nibble for offset bits 9-12 and use the inverted bit Z for bit 8 of the offset,
   7.158 +//                   then read a byte for offset bits 0-7. set bits 13-15 of the offset to 1.
   7.159 +//                   substract 512 from the offset to get the final value.
   7.160 +	cmpb	$0xA0, %al	// test bit 5 (knowing that bit 7 is also set)
   7.161 +	call	getByteFromNibble
   7.162 +	subb	$2, %al		// substract 512
   7.163 +	jmp	get_match_length_1
   7.164 +rep_match_or_16_bit:
   7.165 +	testb	$0x20, %al	// test bit Z (offset bit 8)
   7.166 +	jne	repeat_match	// rep-match
   7.167 +//110 16-bit offset: read a byte for offset bits 8-15, then another byte for offset bits 0-7.
   7.168 +	lodsb			// Get 2-byte match offset
   7.169 +get_match_length_1:
   7.170 +	xchgb	%al, %ah
   7.171 +get_match_length_0:
   7.172 +	lodsb			// load match offset bits 0-7
   7.173 +get_match_length:
   7.174 +	xchgw	%ax, %bp	// bp: offset
   7.175 +repeat_match:
   7.176 +//111 repeat offset: reuse the offset value of the previous match command.
   7.177 +
   7.178 +	xchg	AX, BX		// %ax: original token
   7.179 +	movw	$MATCH_RUN_LEN*256+MIN_MATCH_SIZE, %cx
   7.180 +	call	lzsa2len
   7.181 +#ifdef RAW_FORMAT
   7.182 +	jz	lzsa2quit	// bail if we hit EOD
   7.183 +#endif
   7.184 +#if !defined(FLAT32) && !defined(FLAT16OUT)
   7.185 +	pushw	%ds
   7.186 +	pushw	%si
   7.187 +	movw	%di, %si
   7.188 +	addw	%bp, %si
   7.189 +	movw	%es, %ax
   7.190 +	jc	dxok
   7.191 +	subb	$0x10, %ah
   7.192 +dxok:
   7.193 +	movw	%ax, %ds
   7.194 +	call	lzsa2movStr	// copy string
   7.195 +	popw	%si
   7.196 +	popw	%ds
   7.197 +#else
   7.198 +	xchg	AX, SI		// save %si	
   7.199 +	lea	(BP,DI), SI
   7.200 +	rep movsb	%es:(SI), %es:(DI)
   7.201 +	xchg	AX, SI		// restore %si	
   7.202 +#endif
   7.203 +	jmp	lzsa2chunk
   7.204 +
   7.205 +getByteFromNibble:
   7.206 +	pushfw
   7.207 +	call	getNibble	// get nibble for offset bits 0-3
   7.208 +	popfw
   7.209 +	rclb	$1, %al
   7.210 +	orb	$0xE0, %al	// set offset bits 7-5 to 1
   7.211 +	ret
   7.212 +
   7.213 +lzsa2len:			// get length in %ecx
   7.214 +	andb	%ch, %al
   7.215 +	cbw			// clear %ah
   7.216 +	cmpb	%al, %ch
   7.217 +	jne	lzsa2minNumber	// S=0-2, L=0-6
   7.218 +	call	getNibble
   7.219 +	cmp	$0xF, %al
   7.220 +	jne	lzsa2noExtraByte
   7.221 +	lodsb
   7.222 +	addb	$0xF, %cl
   7.223 +lzsa2noExtraByte:
   7.224 +	addb	%ch, %cl
   7.225 +lzsa2minNumber:
   7.226 +	addb	%cl, %al
   7.227 +	jnc	lzsa2gotNumber  // 0-255
   7.228 +#if 0
   7.229 +	je	lzsa2BigNumber
   7.230 +	movb	$-1, %ah
   7.231 +	subb	%al, %ah	// S=-256-767, L=-256-1791
   7.232 +	lodsb	
   7.233 +	.byte	0xB1		// mask lodsb with movb $0xAD, %cl
   7.234 +lzsa2BigNumber:
   7.235 +#endif
   7.236 +	lodsw			// 0-65535
   7.237 +lzsa2gotNumber:
   7.238 +	xchgw	%ax, %cx
   7.239 +	ret
   7.240 +
   7.241 +#if !defined(FLAT32) && !defined(FLAT16OUT)
   7.242 +# if defined(PARANOIA)
   7.243 +lzsa2movlp:
   7.244 +	decw	%ch
   7.245 +	rep movsb
   7.246 +	incw	%ch
   7.247 +# endif
   7.248 +normalize:
   7.249 +lzsa2movStr:
   7.250 +	movw	%si, %ax
   7.251 +	andw	$0xF, %si
   7.252 +	shrw	$4, %ax
   7.253 +	movw	%ds, %bx
   7.254 +	addw	%ax, %bx
   7.255 +	movw	%bx, %ds
   7.256 +lzsa2movLit:
   7.257 +	movw	%di, %ax
   7.258 +	andw	$0xF, %di
   7.259 +	shrw	$4, %ax
   7.260 +	movw	%es, %bx
   7.261 +	addw	%ax, %bx
   7.262 +	movw	%bx, %es
   7.263 +# if defined(PARANOIA)
   7.264 +	cmpb	$0xFF, %ch	// catch FFFX case
   7.265 +	je	lzsa2movlp
   7.266 +# endif
   7.267 +	rep movsb
   7.268 +	ret
   7.269 +#endif