]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Removed example64 and minigzip64 since large file support is now natively supported.
authorNathan Moinvaziri <nathan@nathanm.com>
Fri, 29 May 2020 01:52:39 +0000 (18:52 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 8 Jun 2020 19:14:07 +0000 (21:14 +0200)
CMakeLists.txt
Makefile.in
configure
test/Makefile.in

index ef2e3b548f2592fe620a6b8d96ea5de7ae316bcb..e3a292c049760b169af02be3a024760cf1942d99 100644 (file)
@@ -997,24 +997,6 @@ if(ZLIB_ENABLE_TESTS)
     add_executable(makecrct tools/makecrct.c)
     target_include_directories(makecrct PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
 
-    if(HAVE_OFF64_T)
-        add_executable(example64 test/example.c)
-        configure_test_executable(example64)
-        target_link_libraries(example64 zlib)
-        set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
-        set(EXAMPLE64_COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:example64>)
-        add_test(NAME example64 COMMAND ${EXAMPLE64_COMMAND})
-
-        add_executable(minigzip64 test/minigzip.c)
-        configure_test_executable(minigzip64)
-        if(NOT DEFINED BUILD_SHARED_LIBS)
-            target_link_libraries(minigzip64 zlibstatic)
-        else()
-            target_link_libraries(minigzip64 zlib)
-        endif()
-        set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
-    endif()
-
     if(WITH_FUZZERS)
         set(FUZZERS checksum compress example_small example_large example_flush example_dict minigzip)
         file(GLOB ALL_SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*")
@@ -1126,10 +1108,6 @@ if(ZLIB_ENABLE_TESTS)
         endforeach()
     endforeach()
 
-    if(HAVE_OFF64_T)
-        minigzip_stdio_cmp(minigzip64 "offset64" "test/data/paper-100k.pdf")
-    endif()
-
     minigzip_stdio_cmp(minigzip "detect-text" "test/data/lcet10.txt" -A)       
     minigzip_stdio_cmp(minigzip "detect-binary" "test/data/paper-100k.pdf" -A)
 
index 74857d6893b18058ae6419bb882b0c70aaeae508..d93281c4359eff0cd0404cd84762af8f5f36f684 100644 (file)
@@ -139,8 +139,6 @@ static: example$(EXE) minigzip$(EXE) fuzzers makefixed$(EXE) maketrees$(EXE) mak
 
 shared: examplesh$(EXE) minigzipsh$(EXE)
 
-all64: example64$(EXE) minigzip64$(EXE)
-
 check: test
 
 .SECONDARY:
@@ -237,12 +235,6 @@ example.o:
 minigzip.o:
        $(CC) $(CFLAGS) -DWITH_GZFILEOP $(INCLUDES) -c -o $@ $(SRCDIR)/test/minigzip.c
 
-example64.o:
-       $(CC) $(CFLAGS) -DWITH_GZFILEOP -D_FILE_OFFSET_BITS=64 $(INCLUDES) -c -o $@ $(SRCDIR)/test/example.c
-
-minigzip64.o:
-       $(CC) $(CFLAGS) -DWITH_GZFILEOP -D_FILE_OFFSET_BITS=64 $(INCLUDES) -c -o $@ $(SRCDIR)/test/minigzip.c
-
 makefixed.o:
        $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/tools/makefixed.c
 
@@ -303,18 +295,6 @@ ifneq ($(STRIP),)
        $(STRIP) $@
 endif
 
-example64$(EXE): example64.o $(OBJG) $(STATICLIB)
-       $(CC) $(LDFLAGS) -o $@ example64.o $(OBJG) $(TEST_LIBS) $(LDSHAREDLIBC)
-ifneq ($(STRIP),)
-       $(STRIP) $@
-endif
-
-minigzip64$(EXE): minigzip64.o $(OBJG) $(STATICLIB)
-       $(CC) $(LDFLAGS) -o $@ minigzip64.o $(OBJG) $(TEST_LIBS) $(LDSHAREDLIBC)
-ifneq ($(STRIP),)
-       $(STRIP) $@
-endif
-
 makefixed$(EXE): makefixed.o $(OBJG) $(STATICLIB)
        $(CC) $(LDFLAGS) -o $@ makefixed.o $(OBJG) $(TEST_LIBS) $(LDSHAREDLIBC)
 ifneq ($(STRIP),)
@@ -404,7 +384,6 @@ clean:
        @if [ -f test/Makefile ]; then $(MAKE) -C test clean; fi
        rm -f *.o *.lo *~ \
           example$(EXE) minigzip$(EXE) examplesh$(EXE) minigzipsh$(EXE) \
-          example64$(EXE) minigzip64$(EXE) \
           checksum_fuzzer$(EXE) compress_fuzzer$(EXE) example_small_fuzzer$(EXE) example_large_fuzzer$(EXE) \
           example_flush_fuzzer$(EXE) example_dict_fuzzer$(EXE) minigzip_fuzzer$(EXE) \
           infcover makefixed$(EXE) maketrees$(EXE) makecrct$(EXE) \
index 5e20aa950014376806bc97a12e9142938f96188f..66380d0f69bb5fe46f75c92f610ec1d7ca9af18a 100755 (executable)
--- a/configure
+++ b/configure
@@ -656,8 +656,6 @@ EOF
 if try $CC -c $CFLAGS -D_LARGEFILE64_SOURCE=1 $test.c; then
   CFLAGS="${CFLAGS} -D_LARGEFILE64_SOURCE=1"
   SFLAGS="${SFLAGS} -D_LARGEFILE64_SOURCE=1"
-  ALL="${ALL} all64"
-  TEST="${TEST} test64"
   echo "Checking for off64_t... Yes." | tee -a configure.log
   echo "Checking for fseeko... Yes." | tee -a configure.log
 else
@@ -672,8 +670,6 @@ int main() {
 EOF
   if try $CC $CFLAGS -o $test $test.c $LDSHAREDLIBC; then
     echo "Checking for _off64_t... Yes." | tee -a configure.log
-    ALL="${ALL} all64"
-    TEST="${TEST} test64"
   else
     echo "Checking for _off64_t... No." | tee -a configure.log
   fi
@@ -1536,16 +1532,6 @@ for file in $(ls -1 $SRCDIR/*.c $SRCDIR/test/*.c $SRCDIR/test/fuzz/*.c $SRCDIR/$
     if grep -q "^$obj:" Makefile; then
         # Replace the existing line with a line with all dependences.
         $(replace_in_file "s#$obj:.*#$obj: \$(SRCDIR)/$short_name $includes#g" Makefile)
-
-        # Special case example64 and minigzip64.
-        case "$obj" in
-            example.o)
-                $(replace_in_file "s#example64.o:.*#example64.o: \$(SRCDIR)/$short_name $includes#g" Makefile)
-                ;;
-            minigzip.o)
-                $(replace_in_file "s#minigzip64.o:.*#minigzip64.o: \$(SRCDIR)/$short_name $includes#g" Makefile)
-                ;;
-        esac
     else
         # Append at the end of Makefile a new line with the header dependences.
         echo "$obj: \$(SRCDIR)/$short_name $includes" >> Makefile
index 79e79e0153c0aa7f752e9fcb66ec7d671b4b0016..1a75d69e16f4002441ccf52a91b933669a03df0e 100644 (file)
@@ -67,15 +67,6 @@ testshared: check_cross_dep
        fi
        @rm -f tmpsh_$$
 
-test64: check_cross_dep
-       @TMP64=tmp64_$$; \
-       if echo hello world | ${QEMU_RUN} ../minigzip64$(EXE) | ${QEMU_RUN} ../minigzip64$(EXE) -d && ${QEMU_RUN} ../example64$(EXE) $$TMP64; then \
-         echo '                *** zlib 64-bit test OK ***'; \
-       else \
-         echo '                *** zlib 64-bit test FAILED ***'; exit 1; \
-       fi
-       @rm -f tmp64_$$
-
 cvetests: testCVEinputs
 
 # Tests requiring zlib-ng to be built with --zlib-compat