mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-01 19:55:29 +00:00
raster/vector: EAN/UPC: fix calculation of image/vector height to
allow for heights smaller than `textoffset` when have add-on (buffer overflow for raster, outside vector height for vector) raster: EAN/UPC: make sure don't overwrite add-on stuff when line-copying guard descenders by limiting copy width ZBarcode_Encode_Segs: allow for multiple (stacked) rows when setting absolute minimum height; state stacked symbols max in error message DBAR_EXP: check length on encoding method 6 before trying to parse 3-digit currency string with `z_to_int()` CLI: stop looping over data args when have error; suppress taint warning by using fixed `malloc()` size for `arg_opts` instead of `argc` general: use `vsnprintf()` instead of `vsprintf()` if not C89 ULTRACODE: don't call `ult_generate_codewords()` if `length` 0 from fragment processing (avoids `assert()`) clang-tidy -> 23 & suppress some warnings test suite: fuzz: leave Z_FUZZ_DEBUG to compiler, fix comment general: some minor code-formatting on touched files README.deb -> README.debian (avoid confusion with actual ".deb") BWIPP: update to latest
This commit is contained in:
60
README.debian
Normal file
60
README.debian
Normal file
@@ -0,0 +1,60 @@
|
||||
% README.debian 2026-03-26
|
||||
% Tested on Ubuntu 24.04 LTS
|
||||
% vim: set ts=4 sw=4 et :
|
||||
|
||||
(Note for normal building of zint on Debian systems, see "README.linux".)
|
||||
|
||||
This is the README for the "debian" directory that is included to enable creating a local Debian dpkg ".deb" file.
|
||||
|
||||
(The official Debian package is at https://salsa.debian.org/debian/zint)
|
||||
|
||||
Prerequisites are being on a Debian-based Linux system and the usual stuff for building zint (see "README.linux").
|
||||
|
||||
To create a local package, first clone the latest source:
|
||||
|
||||
git clone https://git.code.sf.net/p/zint/code zint
|
||||
|
||||
Then create an archive:
|
||||
|
||||
cd zint
|
||||
git archive -o /tmp/zint.tar.gz HEAD
|
||||
cd ..
|
||||
|
||||
Create a new directory (it doesn't matter where):
|
||||
|
||||
mkdir zint-deb
|
||||
|
||||
Then untar the source archive into a sub-directory of the new directory:
|
||||
|
||||
cd zint-deb
|
||||
mkdir zint-2.16.0.9-src
|
||||
cd zint-2.16.0.9-src
|
||||
tar xf /tmp/zint.tar.gz
|
||||
cd ..
|
||||
tar cvzf zint_2.16.0.9.orig.tar.gz zint-2.16.0.9-src
|
||||
|
||||
Note the very specific naming of the tarball and the use of an underscore: "zint_<ver>.orig.tar.gz".
|
||||
|
||||
Then run dpkg-buildpackage in the source sub-directory:
|
||||
|
||||
cd zint-2.16.0.9-src
|
||||
dpkg-buildpackage -us -uc
|
||||
cd ..
|
||||
|
||||
If this works, there should be four ".deb" files (amongst other stuff) in the zint-deb directory, namely:
|
||||
|
||||
libzint2.16_2.16.0.9-1_<arch>.deb
|
||||
libzint-dev_2.16.0.9-1_<arch>.deb
|
||||
zint_2.16.0.9-1_<arch>.deb
|
||||
zint-qt_2.16.0.9-1_<arch>.deb
|
||||
|
||||
where "<arch>" is e.g. "amd64" on an Intel system.
|
||||
|
||||
The ".deb" files can then be installed on "<arch>" systems, starting with the "libzint" ones first, e.g.
|
||||
|
||||
sudo dpkg -i libzint2.16_2.16.0.9-1_amd64.deb
|
||||
|
||||
You may be prompted by dpkg to add other packages first.
|
||||
|
||||
Note that the GS1 Syntax Engine is not yet supported by the included "debian" directory (nor by the official
|
||||
Debian package for that matter), which is an issue.
|
||||
Reference in New Issue
Block a user