Skip to content

Commit 12438e9

Browse files
committed
released 0.9.6
fix #11 fix #12
1 parent 3f944fe commit 12438e9

File tree

14 files changed

+62
-37
lines changed

14 files changed

+62
-37
lines changed

Makefile.am

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
SUBDIRS = lzma/C src
1+
SUBDIRS =
2+
if ENABLE_7ZIP
3+
SUBDIRS += lzma/C
4+
endif
5+
SUBDIRS += src
26

37
man1_MANS = man/ugrep-indexer.1
48

Makefile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ PRE_UNINSTALL = :
8787
POST_UNINSTALL = :
8888
build_triplet = @build@
8989
host_triplet = @host@
90+
@ENABLE_7ZIP_TRUE@am__append_1 = lzma/C
9091
subdir = .
9192
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9293
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_brotlilib.m4 \
@@ -193,7 +194,7 @@ am__define_uniq_tagged_files = \
193194
unique=`for i in $$list; do \
194195
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
195196
done | $(am__uniquify_input)`
196-
DIST_SUBDIRS = $(SUBDIRS)
197+
DIST_SUBDIRS = lzma/C src
197198
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
198199
README.md ar-lib compile config.guess config.sub depcomp \
199200
install-sh missing
@@ -350,7 +351,7 @@ target_alias = @target_alias@
350351
top_build_prefix = @top_build_prefix@
351352
top_builddir = @top_builddir@
352353
top_srcdir = @top_srcdir@
353-
SUBDIRS = lzma/C src
354+
SUBDIRS = $(am__append_1) src
354355
man1_MANS = man/ugrep-indexer.1
355356
EXTRA_DIST = README.md LICENSE.txt CONTRIBUTING.md CODE_OF_CONDUCT.md
356357
all: config.h

bin/win32/ugrep-indexer.exe

0 Bytes
Binary file not shown.

bin/win64/ugrep-indexer.exe

512 Bytes
Binary file not shown.

configure

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ LIBOBJS
653653
PTHREAD_LIBS
654654
PTHREAD_CFLAGS
655655
EXTRA_CFLAGS
656+
ENABLE_7ZIP_FALSE
657+
ENABLE_7ZIP_TRUE
656658
PLATFORM
657659
host_os
658660
host_vendor
@@ -7808,6 +7810,14 @@ printf "%s\n" "yes" >&6; }
78087810
fi
78097811

78107812
fi
7813+
if test "x$with_7zip" = "xyes"; then
7814+
ENABLE_7ZIP_TRUE=
7815+
ENABLE_7ZIP_FALSE='#'
7816+
else
7817+
ENABLE_7ZIP_TRUE='#'
7818+
ENABLE_7ZIP_FALSE=
7819+
fi
7820+
78117821

78127822

78137823
PTHREAD_CFLAGS=""
@@ -7959,6 +7969,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
79597969
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
79607970
Usually this means the macro was only invoked conditionally." "$LINENO" 5
79617971
fi
7972+
if test -z "${ENABLE_7ZIP_TRUE}" && test -z "${ENABLE_7ZIP_FALSE}"; then
7973+
as_fn_error $? "conditional \"ENABLE_7ZIP\" was never defined.
7974+
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7975+
fi
79627976
79637977
: "${CONFIG_STATUS=./config.status}"
79647978
ac_write_fail=0

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ else
7676
fi
7777

7878
fi
79+
AM_CONDITIONAL([ENABLE_7ZIP],[test "x$with_7zip" = "xyes"])
7980

8081
AC_SUBST(EXTRA_CFLAGS)
8182
AC_SUBST([PTHREAD_CFLAGS], [""])

lzma/7zls.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
@copyright (c) BSD-3 License - see LICENSE.txt
3535
*/
3636

37+
/* to build and run 7zls:
38+
cc -o 7zls 7zls.c C/libviiz.a
39+
./7zls ../tests/archive.7z
40+
*/
41+
3742
#include <stdlib.h>
3843
#include <stdio.h>
3944
#include <string.h>

lzma/C/7zCrc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ UInt32 Z7_FASTCALL CrcUpdateT1(UInt32 v, const void *data, size_t size, const UI
8484
#endif
8585
#endif
8686
#endif
87-
#elif (defined(__clang__) && (__clang_major__ >= 3)) \
88-
|| (defined(__GNUC__) && (__GNUC__ > 4))
87+
#elif ( (defined(__clang__) && (__clang_major__ >= 3)) || \
88+
(defined(__GNUC__) && (__GNUC__ > 4) ) ) && \
89+
(__ARM_ARCH >= 8)
8990
#if !defined(__ARM_FEATURE_CRC32)
9091
#define __ARM_FEATURE_CRC32 1
9192
#if defined(__clang__)

lzma/C/Makefile.in

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ build_triplet = @build@
9090
host_triplet = @host@
9191
subdir = lzma/C
9292
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93-
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_boost_regex.m4 \
94-
$(top_srcdir)/m4/ax_check_brotlilib.m4 \
93+
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_brotlilib.m4 \
9594
$(top_srcdir)/m4/ax_check_bz2lib.m4 \
9695
$(top_srcdir)/m4/ax_check_bzip3lib.m4 \
9796
$(top_srcdir)/m4/ax_check_lz4lib.m4 \
9897
$(top_srcdir)/m4/ax_check_lzmalib.m4 \
99-
$(top_srcdir)/m4/ax_check_pcre2.m4 \
10098
$(top_srcdir)/m4/ax_check_zlib.m4 \
10199
$(top_srcdir)/m4/ax_check_zstdlib.m4 \
102100
$(top_srcdir)/m4/ax_cxx_compile_stdcxx.m4 \
@@ -212,17 +210,13 @@ AUTOCONF = @AUTOCONF@
212210
AUTOHEADER = @AUTOHEADER@
213211
AUTOMAKE = @AUTOMAKE@
214212
AWK = @AWK@
215-
BASH_COMPLETION_CFLAGS = @BASH_COMPLETION_CFLAGS@
216-
BASH_COMPLETION_DIR = @BASH_COMPLETION_DIR@
217-
BASH_COMPLETION_LIBS = @BASH_COMPLETION_LIBS@
218213
CC = @CC@
219214
CCDEPMODE = @CCDEPMODE@
220215
CFLAGS = @CFLAGS@
221216
CPPFLAGS = @CPPFLAGS@
222217
CSCOPE = @CSCOPE@
223218
CTAGS = @CTAGS@
224219
CXX = @CXX@
225-
CXXCPP = @CXXCPP@
226220
CXXDEPMODE = @CXXDEPMODE@
227221
CXXFLAGS = @CXXFLAGS@
228222
CYGPATH_W = @CYGPATH_W@
@@ -234,10 +228,6 @@ ECHO_T = @ECHO_T@
234228
ETAGS = @ETAGS@
235229
EXEEXT = @EXEEXT@
236230
EXTRA_CFLAGS = @EXTRA_CFLAGS@
237-
FISH_COMPLETION_CFLAGS = @FISH_COMPLETION_CFLAGS@
238-
FISH_COMPLETION_DIR = @FISH_COMPLETION_DIR@
239-
FISH_COMPLETION_LIBS = @FISH_COMPLETION_LIBS@
240-
GREP_PATH = @GREP_PATH@
241231
HAVE_CXX11 = @HAVE_CXX11@
242232
INSTALL = @INSTALL@
243233
INSTALL_DATA = @INSTALL_DATA@
@@ -260,22 +250,14 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
260250
PACKAGE_URL = @PACKAGE_URL@
261251
PACKAGE_VERSION = @PACKAGE_VERSION@
262252
PATH_SEPARATOR = @PATH_SEPARATOR@
263-
PKG_CONFIG = @PKG_CONFIG@
264-
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
265-
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
266253
PLATFORM = @PLATFORM@
267254
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
268255
PTHREAD_LIBS = @PTHREAD_LIBS@
269256
RANLIB = @RANLIB@
270-
SED = @SED@
271257
SET_MAKE = @SET_MAKE@
272258
SHELL = @SHELL@
273-
SIMD_AVX2_FLAGS = @SIMD_AVX2_FLAGS@
274-
SIMD_AVX512BW_FLAGS = @SIMD_AVX512BW_FLAGS@
275-
SIMD_FLAGS = @SIMD_FLAGS@
276259
STRIP = @STRIP@
277260
VERSION = @VERSION@
278-
ZSH_COMPLETION_DIR = @ZSH_COMPLETION_DIR@
279261
abs_builddir = @abs_builddir@
280262
abs_srcdir = @abs_srcdir@
281263
abs_top_builddir = @abs_top_builddir@

lzma/C/README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ LZMA SDK is placed in the public domain.
66

77
LZMA SDK by Igor Pavlov.
88

9+
Updated to apply YOKOTA Hiroshi's patches:
10+
https://salsa.debian.org/debian/7zip/-/blob/master/debian/patches/0002-Disable-hardware-acceleration-support-on-armel.patch?ref_type=heads
11+
912
Included in this directory is a new C API to simplify decompression:
1013

1114
- viizip.h declarations, see below (hides implementation details)

0 commit comments

Comments
 (0)