Compare commits
No commits in common. "c9" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
SOURCES/libnxz-0.64.tar.gz
|
||||
libnxz-*.tar.[gx]z
|
||||
*.rpm
|
||||
|
@ -1 +0,0 @@
|
||||
d52ea7fd1023dd524a8f11794e8fd9d48e932bbc SOURCES/libnxz-0.64.tar.gz
|
319
209.patch
Normal file
319
209.patch
Normal file
@ -0,0 +1,319 @@
|
||||
From 4b5e3a97a3db9bd6844ca17c0877f10409e5feba Mon Sep 17 00:00:00 2001
|
||||
From: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
|
||||
Date: Wed, 24 Jan 2024 15:44:22 -0300
|
||||
Subject: [PATCH 1/3] Remove unused macros
|
||||
|
||||
These 2 macros are note being used in the project.
|
||||
Defining them may conflict with zlib-ng compat mode.
|
||||
|
||||
Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
|
||||
---
|
||||
lib/nx_crc.c | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/lib/nx_crc.c b/lib/nx_crc.c
|
||||
index 91415a7c..8b885969 100644
|
||||
--- a/lib/nx_crc.c
|
||||
+++ b/lib/nx_crc.c
|
||||
@@ -45,8 +45,6 @@
|
||||
typedef size_t z_size_t;
|
||||
|
||||
#undef NOBYFOUR
|
||||
-#define ZEXPORT
|
||||
-#define ZEXTERN extern
|
||||
#define ZSWAP32(q) bswap_32(q)
|
||||
|
||||
|
||||
|
||||
From 42fe31482ab37d16c81314daa1306803cc312eaf Mon Sep 17 00:00:00 2001
|
||||
From: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
|
||||
Date: Wed, 24 Jan 2024 15:45:40 -0300
|
||||
Subject: [PATCH 2/3] Fix the error after a malloc issue in gzopen
|
||||
|
||||
When malloc fails, err must be set to a value that is different to Z_OK
|
||||
or 0.
|
||||
This also guarantees that gzopen() returns Z_NULL instead of NULL.
|
||||
|
||||
Fixes #207.
|
||||
|
||||
Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
|
||||
---
|
||||
lib/nx_gzlib.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/lib/nx_gzlib.c b/lib/nx_gzlib.c
|
||||
index 5db03f4b..258d10dc 100644
|
||||
--- a/lib/nx_gzlib.c
|
||||
+++ b/lib/nx_gzlib.c
|
||||
@@ -142,7 +142,7 @@ gzFile __gzopen(const char* path, int fd, const char *mode, int force_nx)
|
||||
|
||||
state = malloc(sizeof(struct gz_state));
|
||||
if (state == NULL)
|
||||
- return NULL;
|
||||
+ return Z_NULL;
|
||||
memset(state, 0, sizeof(struct gz_state));
|
||||
|
||||
if (path == NULL){
|
||||
@@ -192,7 +192,7 @@ gzFile __gzopen(const char* path, int fd, const char *mode, int force_nx)
|
||||
if (err == Z_OK) {
|
||||
state->buf = malloc(BUF_LEN);
|
||||
if (state->buf == NULL) {
|
||||
- err=Z_NULL;
|
||||
+ err=Z_MEM_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -200,7 +200,7 @@ gzFile __gzopen(const char* path, int fd, const char *mode, int force_nx)
|
||||
free(state);
|
||||
if (err == Z_STREAM_ERROR)
|
||||
errno = EINVAL;
|
||||
- return NULL;
|
||||
+ return Z_NULL;
|
||||
}
|
||||
|
||||
file = (gzFile) state;
|
||||
|
||||
From dc5c2859a71ccb7351cbc3b605637a2ece03b7ac Mon Sep 17 00:00:00 2001
|
||||
From: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
|
||||
Date: Wed, 24 Jan 2024 15:49:03 -0300
|
||||
Subject: [PATCH 3/3] Include standard C headers in adler32 and crc32 tests
|
||||
|
||||
These tests require that STDC is defined in order to include standard C
|
||||
headers.
|
||||
|
||||
Fixes #208.
|
||||
|
||||
Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
|
||||
---
|
||||
test/Makefile.am | 2 ++
|
||||
test/Makefile.in | 73 +++++++++++++++++++++++++++++++++++++-----------
|
||||
2 files changed, 58 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/test/Makefile.am b/test/Makefile.am
|
||||
index 97c8f581..e3022be7 100644
|
||||
--- a/test/Makefile.am
|
||||
+++ b/test/Makefile.am
|
||||
@@ -31,10 +31,12 @@ check_PROGRAMS = $(test_exe) $(selector_tests) $(other_tests)
|
||||
check_SCRIPTS = $(test_scripts)
|
||||
|
||||
test_adler32_SOURCES = test_adler32.c
|
||||
+test_adler32_CFLAGS = -DSTDC
|
||||
|
||||
test_buf_error_SOURCES = test_buf_error.c test_utils.c
|
||||
|
||||
test_crc32_SOURCES = test_crc32.c
|
||||
+test_crc32_CFLAGS = -DSTDC
|
||||
|
||||
test_deflate_SOURCES = test_deflate.c \
|
||||
test_utils.c \
|
||||
diff --git a/test/Makefile.in b/test/Makefile.in
|
||||
index c54e23dc..1fdea958 100644
|
||||
--- a/test/Makefile.in
|
||||
+++ b/test/Makefile.in
|
||||
@@ -115,7 +115,7 @@ am__EXEEXT_1 = test_adler32$(EXEEXT) test_buf_error$(EXEEXT) \
|
||||
am__EXEEXT_2 = test_stress$(EXEEXT) test_deflate$(EXEEXT) \
|
||||
test_inflate$(EXEEXT) test_dict$(EXEEXT) test_gz$(EXEEXT)
|
||||
am__EXEEXT_3 = test_zeroinput$(EXEEXT)
|
||||
-am_test_adler32_OBJECTS = test_adler32.$(OBJEXT)
|
||||
+am_test_adler32_OBJECTS = test_adler32-test_adler32.$(OBJEXT)
|
||||
test_adler32_OBJECTS = $(am_test_adler32_OBJECTS)
|
||||
test_adler32_LDADD = $(LDADD)
|
||||
am__DEPENDENCIES_1 =
|
||||
@@ -124,15 +124,21 @@ AM_V_lt = $(am__v_lt_@AM_V@)
|
||||
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||
am__v_lt_0 = --silent
|
||||
am__v_lt_1 =
|
||||
+test_adler32_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_adler32_CFLAGS) \
|
||||
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
am_test_buf_error_OBJECTS = test_buf_error.$(OBJEXT) \
|
||||
test_utils.$(OBJEXT)
|
||||
test_buf_error_OBJECTS = $(am_test_buf_error_OBJECTS)
|
||||
test_buf_error_LDADD = $(LDADD)
|
||||
test_buf_error_DEPENDENCIES = ../lib/libnxz.la $(am__DEPENDENCIES_1)
|
||||
-am_test_crc32_OBJECTS = test_crc32.$(OBJEXT)
|
||||
+am_test_crc32_OBJECTS = test_crc32-test_crc32.$(OBJEXT)
|
||||
test_crc32_OBJECTS = $(am_test_crc32_OBJECTS)
|
||||
test_crc32_LDADD = $(LDADD)
|
||||
test_crc32_DEPENDENCIES = ../lib/libnxz.la $(am__DEPENDENCIES_1)
|
||||
+test_crc32_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_crc32_CFLAGS) \
|
||||
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
am__dirstamp = $(am__leading_dot)dirstamp
|
||||
am_test_deflate_OBJECTS = test_deflate.$(OBJEXT) test_utils.$(OBJEXT) \
|
||||
deflate/0.$(OBJEXT) deflate/compress.$(OBJEXT) \
|
||||
@@ -211,8 +217,9 @@ am__v_at_1 =
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__maybe_remake_depfiles = depfiles
|
||||
-am__depfiles_remade = ./$(DEPDIR)/test_adler32.Po \
|
||||
- ./$(DEPDIR)/test_buf_error.Po ./$(DEPDIR)/test_crc32.Po \
|
||||
+am__depfiles_remade = ./$(DEPDIR)/test_adler32-test_adler32.Po \
|
||||
+ ./$(DEPDIR)/test_buf_error.Po \
|
||||
+ ./$(DEPDIR)/test_crc32-test_crc32.Po \
|
||||
./$(DEPDIR)/test_deflate.Po ./$(DEPDIR)/test_dict.Po \
|
||||
./$(DEPDIR)/test_gz.Po ./$(DEPDIR)/test_inflate.Po \
|
||||
./$(DEPDIR)/test_inflatesyncpoint.Po \
|
||||
@@ -301,8 +308,6 @@ am__define_uniq_tagged_files = \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | $(am__uniquify_input)`
|
||||
-ETAGS = etags
|
||||
-CTAGS = ctags
|
||||
am__tty_colors_dummy = \
|
||||
mgn= red= grn= lgn= blu= brg= std=; \
|
||||
am__color_tests=no
|
||||
@@ -485,6 +490,7 @@ am__set_TESTS_bases = \
|
||||
bases='$(TEST_LOGS)'; \
|
||||
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
|
||||
bases=`echo $$bases`
|
||||
+AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
|
||||
RECHECK_LOGS = $(TEST_LOGS)
|
||||
am__EXEEXT_4 = test_stress.auto test_deflate.auto test_inflate.auto \
|
||||
test_dict.auto test_gz.auto
|
||||
@@ -516,7 +522,7 @@ TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
|
||||
$(TEST_LOG_FLAGS)
|
||||
DIST_SUBDIRS = $(SUBDIRS)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \
|
||||
- $(top_srcdir)/test-driver
|
||||
+ $(top_srcdir)/test-driver README.md
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
am__relativize = \
|
||||
dir0=`pwd`; \
|
||||
@@ -560,6 +566,8 @@ CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
+CSCOPE = @CSCOPE@
|
||||
+CTAGS = @CTAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
@@ -584,8 +592,10 @@ ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
+ETAGS = @ETAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
+FILECMD = @FILECMD@
|
||||
GREP = @GREP@
|
||||
GZIP = @GZIP@
|
||||
INSTALL = @INSTALL@
|
||||
@@ -713,8 +723,10 @@ selector_tests = test_stress test_deflate test_inflate test_dict test_gz
|
||||
other_tests = test_zeroinput
|
||||
check_SCRIPTS = $(test_scripts)
|
||||
test_adler32_SOURCES = test_adler32.c
|
||||
+test_adler32_CFLAGS = -DSTDC
|
||||
test_buf_error_SOURCES = test_buf_error.c test_utils.c
|
||||
test_crc32_SOURCES = test_crc32.c
|
||||
+test_crc32_CFLAGS = -DSTDC
|
||||
test_deflate_SOURCES = test_deflate.c \
|
||||
test_utils.c \
|
||||
deflate/0.c \
|
||||
@@ -790,7 +802,7 @@ clean-checkPROGRAMS:
|
||||
|
||||
test_adler32$(EXEEXT): $(test_adler32_OBJECTS) $(test_adler32_DEPENDENCIES) $(EXTRA_test_adler32_DEPENDENCIES)
|
||||
@rm -f test_adler32$(EXEEXT)
|
||||
- $(AM_V_CCLD)$(LINK) $(test_adler32_OBJECTS) $(test_adler32_LDADD) $(LIBS)
|
||||
+ $(AM_V_CCLD)$(test_adler32_LINK) $(test_adler32_OBJECTS) $(test_adler32_LDADD) $(LIBS)
|
||||
|
||||
test_buf_error$(EXEEXT): $(test_buf_error_OBJECTS) $(test_buf_error_DEPENDENCIES) $(EXTRA_test_buf_error_DEPENDENCIES)
|
||||
@rm -f test_buf_error$(EXEEXT)
|
||||
@@ -798,7 +810,7 @@ test_buf_error$(EXEEXT): $(test_buf_error_OBJECTS) $(test_buf_error_DEPENDENCIES
|
||||
|
||||
test_crc32$(EXEEXT): $(test_crc32_OBJECTS) $(test_crc32_DEPENDENCIES) $(EXTRA_test_crc32_DEPENDENCIES)
|
||||
@rm -f test_crc32$(EXEEXT)
|
||||
- $(AM_V_CCLD)$(LINK) $(test_crc32_OBJECTS) $(test_crc32_LDADD) $(LIBS)
|
||||
+ $(AM_V_CCLD)$(test_crc32_LINK) $(test_crc32_OBJECTS) $(test_crc32_LDADD) $(LIBS)
|
||||
deflate/$(am__dirstamp):
|
||||
@$(MKDIR_P) deflate
|
||||
@: > deflate/$(am__dirstamp)
|
||||
@@ -882,9 +894,9 @@ mostlyclean-compile:
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_adler32.Po@am__quote@ # am--include-marker
|
||||
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_adler32-test_adler32.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_buf_error.Po@am__quote@ # am--include-marker
|
||||
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_crc32.Po@am__quote@ # am--include-marker
|
||||
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_crc32-test_crc32.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_deflate.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_dict.Po@am__quote@ # am--include-marker
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_gz.Po@am__quote@ # am--include-marker
|
||||
@@ -938,6 +950,34 @@ am--depfiles: $(am__depfiles_remade)
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
+test_adler32-test_adler32.o: test_adler32.c
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_adler32_CFLAGS) $(CFLAGS) -MT test_adler32-test_adler32.o -MD -MP -MF $(DEPDIR)/test_adler32-test_adler32.Tpo -c -o test_adler32-test_adler32.o `test -f 'test_adler32.c' || echo '$(srcdir)/'`test_adler32.c
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_adler32-test_adler32.Tpo $(DEPDIR)/test_adler32-test_adler32.Po
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_adler32.c' object='test_adler32-test_adler32.o' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_adler32_CFLAGS) $(CFLAGS) -c -o test_adler32-test_adler32.o `test -f 'test_adler32.c' || echo '$(srcdir)/'`test_adler32.c
|
||||
+
|
||||
+test_adler32-test_adler32.obj: test_adler32.c
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_adler32_CFLAGS) $(CFLAGS) -MT test_adler32-test_adler32.obj -MD -MP -MF $(DEPDIR)/test_adler32-test_adler32.Tpo -c -o test_adler32-test_adler32.obj `if test -f 'test_adler32.c'; then $(CYGPATH_W) 'test_adler32.c'; else $(CYGPATH_W) '$(srcdir)/test_adler32.c'; fi`
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_adler32-test_adler32.Tpo $(DEPDIR)/test_adler32-test_adler32.Po
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_adler32.c' object='test_adler32-test_adler32.obj' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_adler32_CFLAGS) $(CFLAGS) -c -o test_adler32-test_adler32.obj `if test -f 'test_adler32.c'; then $(CYGPATH_W) 'test_adler32.c'; else $(CYGPATH_W) '$(srcdir)/test_adler32.c'; fi`
|
||||
+
|
||||
+test_crc32-test_crc32.o: test_crc32.c
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_crc32_CFLAGS) $(CFLAGS) -MT test_crc32-test_crc32.o -MD -MP -MF $(DEPDIR)/test_crc32-test_crc32.Tpo -c -o test_crc32-test_crc32.o `test -f 'test_crc32.c' || echo '$(srcdir)/'`test_crc32.c
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_crc32-test_crc32.Tpo $(DEPDIR)/test_crc32-test_crc32.Po
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_crc32.c' object='test_crc32-test_crc32.o' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_crc32_CFLAGS) $(CFLAGS) -c -o test_crc32-test_crc32.o `test -f 'test_crc32.c' || echo '$(srcdir)/'`test_crc32.c
|
||||
+
|
||||
+test_crc32-test_crc32.obj: test_crc32.c
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_crc32_CFLAGS) $(CFLAGS) -MT test_crc32-test_crc32.obj -MD -MP -MF $(DEPDIR)/test_crc32-test_crc32.Tpo -c -o test_crc32-test_crc32.obj `if test -f 'test_crc32.c'; then $(CYGPATH_W) 'test_crc32.c'; else $(CYGPATH_W) '$(srcdir)/test_crc32.c'; fi`
|
||||
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_crc32-test_crc32.Tpo $(DEPDIR)/test_crc32-test_crc32.Po
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='test_crc32.c' object='test_crc32-test_crc32.obj' libtool=no @AMDEPBACKSLASH@
|
||||
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_crc32_CFLAGS) $(CFLAGS) -c -o test_crc32-test_crc32.obj `if test -f 'test_crc32.c'; then $(CYGPATH_W) 'test_crc32.c'; else $(CYGPATH_W) '$(srcdir)/test_crc32.c'; fi`
|
||||
+
|
||||
test_reset2-test_reset.o: test_reset.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_reset2_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_reset2-test_reset.o -MD -MP -MF $(DEPDIR)/test_reset2-test_reset.Tpo -c -o test_reset2-test_reset.o `test -f 'test_reset.c' || echo '$(srcdir)/'`test_reset.c
|
||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/test_reset2-test_reset.Tpo $(DEPDIR)/test_reset2-test_reset.Po
|
||||
@@ -1206,7 +1246,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
|
||||
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
|
||||
fi; \
|
||||
echo "$${col}$$br$${std}"; \
|
||||
- echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
|
||||
+ echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
|
||||
echo "$${col}$$br$${std}"; \
|
||||
create_testsuite_report --maybe-color; \
|
||||
echo "$$col$$br$$std"; \
|
||||
@@ -1471,7 +1511,6 @@ test_zeroinput.nx.log: test_zeroinput.nx
|
||||
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
|
||||
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
|
||||
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
|
||||
-
|
||||
distdir: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
||||
|
||||
@@ -1580,9 +1619,9 @@ clean-am: clean-checkPROGRAMS clean-generic clean-libtool clean-local \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-recursive
|
||||
- -rm -f ./$(DEPDIR)/test_adler32.Po
|
||||
+ -rm -f ./$(DEPDIR)/test_adler32-test_adler32.Po
|
||||
-rm -f ./$(DEPDIR)/test_buf_error.Po
|
||||
- -rm -f ./$(DEPDIR)/test_crc32.Po
|
||||
+ -rm -f ./$(DEPDIR)/test_crc32-test_crc32.Po
|
||||
-rm -f ./$(DEPDIR)/test_deflate.Po
|
||||
-rm -f ./$(DEPDIR)/test_dict.Po
|
||||
-rm -f ./$(DEPDIR)/test_gz.Po
|
||||
@@ -1650,9 +1689,9 @@ install-ps-am:
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-recursive
|
||||
- -rm -f ./$(DEPDIR)/test_adler32.Po
|
||||
+ -rm -f ./$(DEPDIR)/test_adler32-test_adler32.Po
|
||||
-rm -f ./$(DEPDIR)/test_buf_error.Po
|
||||
- -rm -f ./$(DEPDIR)/test_crc32.Po
|
||||
+ -rm -f ./$(DEPDIR)/test_crc32-test_crc32.Po
|
||||
-rm -f ./$(DEPDIR)/test_deflate.Po
|
||||
-rm -f ./$(DEPDIR)/test_dict.Po
|
||||
-rm -f ./$(DEPDIR)/test_gz.Po
|
6
README.md
Normal file
6
README.md
Normal file
@ -0,0 +1,6 @@
|
||||
# libnxz
|
||||
|
||||
[libnxz](https://github.com/libnxz/power-gzip) is a zlib-compatible library
|
||||
that uses the NX GZIP Engine available on POWER9 or newer processors in order
|
||||
to provide a faster zlib/gzip compression without using the general-purpose
|
||||
cores.
|
@ -1,90 +0,0 @@
|
||||
# Keep the *.la file around
|
||||
# See https://fedoraproject.org/wiki/Changes/RemoveLaFiles
|
||||
%global __brp_remove_la_files %nil
|
||||
|
||||
Name: libnxz
|
||||
Version: 0.64
|
||||
Release: 1%{?dist}
|
||||
Summary: Zlib implementation for POWER processors
|
||||
License: ASL 2.0 or GPLv2+
|
||||
Url: https://github.com/libnxz/power-gzip
|
||||
BuildRequires: zlib-devel
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
# Be explicit about the soname in order to avoid unintentional changes.
|
||||
%global soname libnxz.so.0
|
||||
|
||||
ExclusiveArch: ppc64le
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
%description
|
||||
libnxz is a zlib-compatible library that uses the NX GZIP Engine available on
|
||||
POWER9 or newer processors in order to provide a faster zlib/gzip compression
|
||||
without using the general-purpose cores.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains header files for developing application that
|
||||
use %{name}.
|
||||
|
||||
%package static
|
||||
Summary: Static library for %{name} development
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
The %{name}-static package contains static libraries for developing
|
||||
application that use %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n power-gzip-%{version}
|
||||
|
||||
%build
|
||||
%configure --enable-zlib-api
|
||||
%make_build
|
||||
|
||||
%check
|
||||
# libnxz tests only work on P9 servers or newer, with Linux >= 5.8.
|
||||
# This combination is not guaranteed to have at build time. Check if
|
||||
# NX GZIP engine device is available before deciding to run the tests.
|
||||
if [[ -w "/dev/crypto/nx-gzip" ]]; then
|
||||
make check
|
||||
fi
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%pre
|
||||
%{_sbindir}/groupadd -r -f nx-gzip
|
||||
|
||||
%files
|
||||
%{_libdir}/%{soname}
|
||||
%{_libdir}/libnxz.so.0.%{version}
|
||||
%license %{_docdir}/%{name}/APACHE-2.0.txt
|
||||
%license %{_docdir}/%{name}/gpl-2.0.txt
|
||||
%doc README.md
|
||||
|
||||
%files devel
|
||||
%{_includedir}/libnxz.h
|
||||
%{_libdir}/libnxz.so
|
||||
|
||||
%files static
|
||||
%{_libdir}/libnxz.a
|
||||
%{_libdir}/libnxz.la
|
||||
|
||||
%changelog
|
||||
* Thu Apr 06 2023 Jakub Čajka <jcajka@redhat.com> - 0.64-1
|
||||
- update to 0.64
|
||||
- Resolves: RHBZ#2177335
|
||||
|
||||
* Mon Aug 29 2022 Jakub Čajka <jcajka@redhat.com> - 0.63-2
|
||||
- bump for gating
|
||||
- Related: RHBZ#2101334
|
||||
|
||||
* Fri Jul 29 2022 Jakub Čajka <jcajka@redhat.com> - 0.63-1
|
||||
- initial package import
|
||||
- Resolves: RHBZ#2101334
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.beaker-tier1.functional}
|
151
libnxz.spec
Normal file
151
libnxz.spec
Normal file
@ -0,0 +1,151 @@
|
||||
# Keep the *.la file around
|
||||
# See https://fedoraproject.org/wiki/Changes/RemoveLaFiles
|
||||
%global __brp_remove_la_files %nil
|
||||
|
||||
Name: libnxz
|
||||
Version: 0.64
|
||||
Release: 8%{?dist}
|
||||
Summary: Zlib implementation for POWER processors
|
||||
License: Apache-2.0 OR GPL-2.0-or-later
|
||||
Url: https://github.com/libnxz/power-gzip
|
||||
BuildRequires: zlib-devel
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
# Fixes for GCC 14 and zlib-ng compat usage
|
||||
Patch0: %{url}/pull/209.patch
|
||||
|
||||
# Be explicit about the soname in order to avoid unintentional changes.
|
||||
%global soname libnxz.so.0
|
||||
|
||||
ExclusiveArch: ppc64le
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: systemd-rpm-macros
|
||||
|
||||
# udev rules for nx-gzip dev
|
||||
Requires: powerpc-utils-core > 1.3.10-2
|
||||
|
||||
%description
|
||||
libnxz is a zlib-compatible library that uses the NX GZIP Engine available on
|
||||
POWER9 or newer processors in order to provide a faster zlib/gzip compression
|
||||
without using the general-purpose cores.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains header files for developing application that
|
||||
use %{name}.
|
||||
|
||||
%package static
|
||||
Summary: Static library for %{name} development
|
||||
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
The %{name}-static package contains static libraries for developing
|
||||
application that use %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n power-gzip-%{version}
|
||||
|
||||
%build
|
||||
%configure --enable-zlib-api
|
||||
%make_build
|
||||
|
||||
%check
|
||||
# libnxz tests only work on P9 servers or newer, with Linux >= 5.8.
|
||||
# This combination is not guaranteed to have at build time. Check if
|
||||
# NX GZIP engine device is available before deciding to run the tests.
|
||||
if [[ -w "/dev/crypto/nx-gzip" ]]; then
|
||||
make check
|
||||
fi
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%pre
|
||||
%{_sbindir}/groupadd -r -f nx-gzip
|
||||
|
||||
%files
|
||||
%{_libdir}/%{soname}
|
||||
%{_libdir}/libnxz.so.0.%{version}
|
||||
%license %{_docdir}/%{name}/APACHE-2.0.txt
|
||||
%license %{_docdir}/%{name}/gpl-2.0.txt
|
||||
%doc README.md
|
||||
|
||||
%files devel
|
||||
%{_includedir}/libnxz.h
|
||||
%{_libdir}/libnxz.so
|
||||
|
||||
%files static
|
||||
%{_libdir}/libnxz.a
|
||||
%{_libdir}/libnxz.la
|
||||
|
||||
%changelog
|
||||
* Wed Nov 13 2024 Jakub Čajka <jcajka@redhat.com> - 0.64-8
|
||||
- Bump release
|
||||
- Related: RHEL-64018
|
||||
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.64-7
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.64-6
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Aug 26 2022 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 0.64-1
|
||||
- Update to libnxz 0.64.
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.63-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jun 20 2022 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> - 0.63-4
|
||||
- Fix an issue that caused premature fallback to software.
|
||||
|
||||
* Tue Jun 14 2022 Jakub Čajka <jcajka@redhat.com> - 0.63-3
|
||||
- Move udev rule to the powerpc-utils-core
|
||||
|
||||
* Thu Apr 14 2022 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> - 0.63-2
|
||||
- Backport fixes from upstream.
|
||||
- Create the nx-gzip group and add udev rules.
|
||||
|
||||
* Fri Mar 04 2022 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> - 0.63-1
|
||||
- Update to libnxz 0.63.
|
||||
- Fix the soname to the right string.
|
||||
- Properly list the dual-licensing scenario of the project.
|
||||
|
||||
* Wed Jan 26 2022 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com> - 0.62-4
|
||||
- Fix issue with GCC 12.
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.62-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Dec 03 2021 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 0.62-2
|
||||
- Enable tests if the NX GZIP engine is available.
|
||||
|
||||
* Mon Aug 16 2021 Raphael Moreira Zinsly <rzinsly@linux.ibm.com> - 0.62-1
|
||||
- Update version.
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.61-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.61-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Nov 10 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 0.61-2
|
||||
- Fix release version and match with changelog.
|
||||
|
||||
* Tue Oct 27 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 0.61-0
|
||||
- Initial packaging
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (libnxz-0.64.tar.gz) = a0f8db14c00efb2e008d54bbd567e1073603fd9245140f729b1789b41224bb1c8e8865c18aa03e23a9c0df300b13fdbb580c36036af61d6d5ea11e5bc170ba3d
|
8
whatever.fmf
Normal file
8
whatever.fmf
Normal file
@ -0,0 +1,8 @@
|
||||
summary: Basic smoke test
|
||||
discover:
|
||||
- name: internal
|
||||
how: fmf
|
||||
ref: master
|
||||
url: git://pkgs.devel.redhat.com/tests/libnxz
|
||||
execute:
|
||||
how: tmt
|
Loading…
Reference in New Issue
Block a user