1
0
mirror of https://github.com/kspalaiologos/bzip3.git synced 2026-10-23 14:48:53 +03:00

468 Commits

Author SHA1 Message Date
Kamila Szewczyk
8a146ef0a5 Update libbz3.c 2022-11-01 11:51:42 +01:00
Doug Coleman
b95b070374 fix compiler warnings, %ld to %llu (#71) 2022-10-31 18:46:12 +01:00
Kamila Szewczyk
b4e15dc706 split the documentation into many files 1.2.0 2022-10-30 08:10:11 +01:00
Kamila Szewczyk
532677aaae Update NEWS 2022-10-29 23:12:12 +02:00
Kamila Szewczyk
d01483d406 Set rpath in the Makefile (#69)
* set rpath in the makefile

* Remove the $(DESTDIR) part

Co-authored-by: Caleb Maclennan <caleb@alerque.com>

Co-authored-by: Caleb Maclennan <caleb@alerque.com>
2022-10-29 23:02:16 +02:00
Kamila Szewczyk
9b5a0acd3e proper use of bz3_bound, gitignore built manpages 2022-10-29 17:16:39 +02:00
Kamila Szewczyk
6560313e24 export the UTF8ToString method in emscripten build 2022-10-29 10:44:48 +02:00
Kamila Szewczyk
343c7587bb Static linux builds by default 2022-10-28 15:02:44 +02:00
Kamila Szewczyk
f48e6eb181 Update BENCHMARKS.md 2022-10-27 16:00:31 +02:00
Caleb Maclennan
4db04403ef Add version info and proper cross-linking to man pages (#68)
* Extend autotools package name tranformation support to man pages

* Extend autotools to support build dates without breaking reproducable builds

* Add program version and date to man pages

* Remove extranious spaces so man pages cross-link
2022-10-27 14:21:32 +02:00
Caleb Maclennan
5eab953be1 Add new verbose flag to man page and use in CI (#67)
* Use new verbose flag in CI runner

* Add new verbose flag to man page
2022-10-27 11:04:22 +02:00
Kamila Szewczyk
f25cc45a63 WIP on #64 (#66) 2022-10-27 10:21:15 +02:00
Kamila Szewczyk
528946ac71 v1.2.0 staging news 2022-10-26 18:41:21 +02:00
Kamila Szewczyk
cda5581ea4 mention the -z flag and update the thanks section in the manpage 2022-10-26 18:38:20 +02:00
Petr Pisar
ede284afb8 Dynamically link a library to the tool if not disabled (#65)
If a dynamic library is built (--enable-shared --disable-static-exe),
the library object files were unnecessarily statically linked to the
tool, duplicating the libbz3.c code among the tool and the library:

$ ls -l bzip3 .libs/libbzip3.so.0.0.0
-rwxr-xr-x. 1 test test 171096 Oct 26 15:13 bzip3
-rwxr-xr-x. 1 test test 147408 Oct 26 15:13 .libs/libbzip3.so.0.0.0

and the tool was not linked to the library at all:

$ scanelf -n bzip3
 TYPE   NEEDED FILE
ET_EXEC libc.so.6 bzip3

The cause were an unconditional listing of libbz3.c among bzip3 tool
sources, a typo in a bzip3_LDADD variable name, wrong evaluation of
--disable-static-exe option, and an absence of ENABLE_STATIC
aplication in Makefile.am.

This patch fixes all these issues on the assumption that an absence of
--{enable,disable}-static-exe option means --disable-static-exe. That
assumption is based on a help string of the option. It is a norm that
the help string variant displays the nondefault variant:

$ ls -l .libs/bzip3 .libs/libbzip3.so.0.0.0
-rwxr-xr-x. 1 test test  35856 Oct 26 15:44 .libs/bzip3
-rwxr-xr-x. 1 test test 147408 Oct 26 15:42 .libs/libbzip3.so.0.0.0

$ scanelf -n .libs/bzip3
 TYPE   NEEDED FILE
ET_EXEC libbzip3.so.0,libc.so.6 .libs/bzip3
2022-10-26 18:36:28 +02:00
Petr Pisar
d7f15e5a60 Version bzip3 library (#61)
A public-facing library should be versioned because it enables
a dynamic linker to recognize when the libary changes ABI and that the
consuming application needs to be rebuilt.

This patch employed libtool versioning. See '(libtool)Updating version info'
info page for more details how to manage the -version-info numbers.
2022-10-26 17:39:55 +02:00
Kamila Szewczyk
b3b744e752 Implement #63 2022-10-26 17:18:28 +02:00
Kamila Szewczyk
259d865827 add a copyright note about UB patches 1.1.8 2022-10-25 17:18:42 +02:00
Kamila Szewczyk
ec2709f53f add the libsais license to EXTRA_DIST 2022-10-25 17:11:42 +02:00
Kamila Szewczyk
3e8b6e6269 add libsais license 2022-10-25 17:10:52 +02:00
Kamila Szewczyk
b1a0ee92e2 gitignore fuzz 2022-10-25 13:41:17 +02:00
Kamila Szewczyk
f2a2ba4654 Merge remote-tracking branch 'origin/master' 2022-10-25 10:34:27 +02:00
Kamila Szewczyk
6e6acf9e2f minimum length check 2022-10-25 10:34:22 +02:00
Kamila Szewczyk
6f042bdb7b update command name in fuzzing instructions. 2022-10-25 10:18:54 +02:00
Kamila Szewczyk
e14bcbf27d Update PORTING.md 2022-10-25 10:16:53 +02:00
Kamila Szewczyk
d9a3ef0470 update package name in pkgconfig... 2022-10-25 10:12:19 +02:00
Kamila Szewczyk
f4e83a81a9 update the porting tips 2022-10-24 22:46:11 +02:00
Kamila Szewczyk
b27b6592d3 Build status badge 1.1.7 2022-10-23 16:44:13 +02:00
Kamila Szewczyk
c07972934a High-level API (#58) 2022-10-23 12:47:18 +02:00
Kamila Szewczyk
1f8165b30f libbz3: version call 2022-10-22 20:39:10 +02:00
Kamila Szewczyk
593cd2ba93 more unambiguous linux handling 2022-10-22 20:10:14 +02:00
Kamila Szewczyk
22c6ce4d92 rename unbzip3 to bunzip3 (#57) 2022-10-18 12:56:33 +02:00
YukariWaffle
800beb74ab Improved IO error checking (#55)
* Error reporting on write errors. Very minor cleanup. Better corrupt file detection.

* Forgot to check one fread

* Exit on read error or unexpected eof
2022-10-11 21:05:52 +02:00
Kamila Szewczyk
cac4d8599e LTO is no longer needed. 2022-10-06 12:12:37 +02:00
Kamila Szewczyk
f35fadc016 wrestling with libtool: -all-static to LIBS 1.1.6 2022-10-05 16:45:13 +02:00
Kamila Szewczyk
3a8f55e510 Don't override autodetected flags 2022-10-05 15:54:03 +02:00
Kamila Szewczyk
f29b4cb283 v1.1.6 release notes 2022-10-05 15:41:09 +02:00
Kamila Szewczyk
72f6a39ca1 Merge remote-tracking branch 'origin/master' 2022-10-04 14:29:03 +02:00
Kamila Szewczyk
11df3fc3e7 more heuristics in common.h, hopefully fix #50 2022-10-04 14:28:54 +02:00
Kamila Szewczyk
3374c90c4b Fix #45 2022-10-04 14:22:00 +02:00
Kamila Szewczyk
8d2fb0545c a flag for static builds of the executable 2022-10-04 14:20:58 +02:00
Kamila Szewczyk
4c99a5e3a4 Remove the BSD build from Github Actions ...
... seems to be an issue with the action itself making the compilation fail every time for a hard to pinpoint reason.
2022-10-04 11:50:59 +02:00
Kamila Szewczyk
6388152a2b visibility control macros 2022-10-04 11:46:31 +02:00
Kamila Szewczyk
0b4bc63c5a fix #53 2022-10-03 17:14:19 +02:00
Kamila Szewczyk
684857f7fd Update NEWS 2022-09-25 17:39:35 +02:00
Kamila Szewczyk
db906127ec Update NEWS 2022-09-25 17:36:44 +02:00
Kamila Szewczyk
2bd7c48f01 newlines after error messages 2022-09-11 15:42:24 +02:00
niXman
054fe8a31e flockfile/funlockfile for WIN32 (#52) 2022-09-11 12:12:53 +02:00
Caleb Maclennan
fe48bc8591 Package unbzip3 man page (#49) 2022-09-05 09:39:37 +02:00
Kamila Szewczyk
07ca4fa4c2 apply suggested fix to #46 2022-09-05 09:00:45 +02:00