summaryrefslogtreecommitdiffhomepage
path: root/pkg/deb (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-09-09Packages: bump wasmtime to 24.0.0 and wasi-sysroot to 24.0.Konstantin Pavlov1-6/+12
Wasm module is now not built for Amazon Linux 2, Debian 11 and Ubuntu 2.0.04, since it requires cmake version newer than what's available on those OSes. wasm-wasi-component is not affected.
2024-08-19Packaging: fix build-depends on multiarch debian systemsKonstantin Pavlov1-2/+5
It's possible to have two versions of the same package installed on debian-based multiarch systems - e.g. i386 alongside amd64. This means that when getting the package status through dpkg-query we'd get a duplicated string: % dpkg-query -f '$${db:Status-Status}' -W libssl-dev $installed$installed % dpkg -l | grep libssl-dev ii libssl-dev:amd64 3.0.11-1~deb12u2 amd64 Secure Sockets Layer toolkit - development files ii libssl-dev:i386 3.0.11-1~deb12u2 i386 Secure Sockets Layer toolkit - development files The fix is to explicitely check for the main architecture and, in case for noarch (or rather all-arch in debian terms) packages, check for special :all architecture as well.
2024-07-03Packages: don't redefine FORTIFY_SOURCE on UbuntuKonstantin Pavlov3-3/+18
The default on Ubuntu 24.04 and newer is now -D_FORTIFY_SOURCE=3 which clashes with our definition. We shouldnt be setting it for Ubuntus anyway since _FORTIFY_SOURCE=2 for older distros is already handled by the defaults in their gcc builds.
2024-07-03Packages: added Ubuntu 24.04 "noble" supportKonstantin Pavlov1-0/+14
2024-07-03Packages: clean up EOL debian-based distributionsKonstantin Pavlov11-487/+0
2024-05-20Packaging: fix build-depends detection on debian-based systemsKonstantin Pavlov1-2/+2
dpkg-query -W will show information about the package if any other package references it, even when the queried package is not installed. The fix is to query for an actual status of a needed build dependency.
2024-05-20Packaging: added missing build dependencies to MakefilesKonstantin Pavlov1-1/+1
Forgotten in bf3d5759e and 260494626.
2024-02-22Packages: Pass CFLAGS to compile wasm modules on all packaging targetsKonstantin Pavlov1-2/+2
This extends the approach used for debian-based packages in 3f805bc64e28 to rpm as well. Notable change for both deb and rpm packaging is to use CFLAGS as defined in the build/Makefile, and not pass them from the environment which might not be there (as is the case for rpm). While at it, stop passing CFLAGS in the install phase, as it should no longer invoke builds (see d54af163c46b). The rpm part was overlooked in 7a6405566c0, since testing was not done on the platforms where problem manifested itself, notably Amazon Linux 2023 and Fedora 38+.
2024-02-21Packages: added wasm-wasi-component module packaging for deb-based distrosKonstantin Pavlov1-3/+3
We need to redefine CFLAGS to drop missing-prototypes as warning since third-party code such as wasmtime fails to build from source when building a debian package. This happens only for packages because we use DPKG_EXPORT_BUILDFLAGS=1 propagating build flags to the environment, so cargo build picks it up as well. Since we have no control over third-party code, the easiest solution is to disable this warning.
2024-02-20Updated copyright notice.Andrei Zeliankou3-18/+36
2024-02-09Packages: added Ubuntu 23.10 "mantic" support.Konstantin Pavlov5-0/+165
2023-08-22Packages: specify runstatedir and logdir explicitely.Konstantin Pavlov1-0/+2
2023-08-22Packages: added libunit-wasm and headers to deb packaging.Konstantin Pavlov4-4/+15
2023-08-22Packages: added wasm module packaging for deb-based distros.Konstantin Pavlov3-0/+57
2023-06-07Packages: added Debian 12 "bookworm" support.Konstantin Pavlov2-1/+14
2023-05-24Updated copyright notice.Andrei Zeliankou3-12/+21
2023-05-03Packages: added Ubuntu 23.04 "lunar" support.Konstantin Pavlov5-0/+163
2023-05-08Docs: moved uintd.8 to man8/ subdirectory.Alejandro Colomar2-3/+3
Reviewed-by: Artem Konev <a.konev@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-04-06Packages: use groupadd/useradd on Debian-based operating systems.Konstantin Pavlov1-5/+4
addgroup/adduser will no longer be installed by default in the "minbase". Also, moving to lower-level utilities saves us one runtime dependency.
2023-03-30Packages: added unitc and setup-unit.Konstantin Pavlov3-1/+6
2023-03-29Auto: mirroring installation structure in build tree.Alejandro Colomar2-7/+7
This makes the build tree more organized, which is good for adding new stuff. Now, it's useful for example for adding manual pages in man3/, but it may be useful in the future for example for extending the build system to run linters (e.g., clang-tidy(1), Clang analyzer, ...) on the C source code. Previously, the build tree was quite flat, and looked like this (after `./configure && make`): $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── echo ├── libnxt.a ├── nxt_auto_config.h ├── nxt_version.h ├── unitd └── unitd.8 1 directory, 9 files And after this patch, it looks like this: $ tree -I src build build ├── Makefile ├── autoconf.data ├── autoconf.err ├── bin │ └── echo ├── include │ ├── nxt_auto_config.h │ └── nxt_version.h ├── lib │ ├── libnxt.a │ └── unit │ └── modules ├── sbin │ └── unitd ├── share │ └── man │ └── man8 │ └── unitd.8 └── var ├── lib │ └── unit ├── log │ └── unit └── run └── unit 17 directories, 9 files It also solves one issue introduced in 5a37171f733f ("Added default values for pathnames."). Before that commit, it was possible to run unitd from the build system (`./build/unitd`). Now, since it expects files in a very specific location, that has been broken. By having a directory structure that mirrors the installation, it's possible to trick it to believe it's installed, and run it from there: $ ./configure --prefix=./build $ make $ ./build/sbin/unitd Fixes: 5a37171f733f ("Added default values for pathnames.") Reported-by: Liam Crilly <liam@nginx.com> Reviewed-by: Konstantin Pavlov <thresh@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Andrei Zeliankou <zelenkov@nginx.com> Cc: Zhidao Hong <z.hong@f5.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-03-29Renamed --libstatedir to --statedir.Alejandro Colomar1-1/+1
In BSD systems, it's usually </var/db> or some other dir under </var> that is not </var/lib>, so $statedir is a more generic name. See hier(7). Reported-by: Andrei Zeliankou <zelenkov@nginx.com> Reported-by: Zhidao Hong <z.hong@f5.com> Reviewed-by: Konstantin Pavlov <thresh@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Liam Crilly <liam@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
2023-02-06Packages: get rid of deprecated configure options.Konstantin Pavlov4-8/+8
2022-12-07Packages: added njs support.Konstantin Pavlov3-5/+17
2022-11-16Packages: added Ubuntu 22.10 "kinetic" support.Konstantin Pavlov3-0/+101
2022-11-04Packages: relaxed dependencies between modules and base package.Konstantin Pavlov3-1/+3
This allows us to update base or single modules packages without updating the whole set.
2022-06-20Packages: cleanup targets that are not supported anymore.Konstantin Pavlov16-522/+0
2022-06-20Packages: dropped /etc/unit directory.Konstantin Pavlov1-1/+0
It's never used.
2022-05-26Packaging: Go: use GO111MODULE=auto in build instructions.Konstantin Pavlov1-1/+1
2022-05-16Packages: ship README.md and CONTRIBUTING.md.Konstantin Pavlov4-5/+9
2022-05-05Packages: added Ubuntu 22.04 "jammy" support.Konstantin Pavlov1-0/+14
2022-02-15Updated copyright notice.Valentin Bartenev4-17/+40
2021-12-02Packages: added systemd service for debug binary.Andrei Belov2-1/+16
2021-12-01Packages: adjusted debhelper minimal version for Debian/Ubuntu.Andrei Belov3-6/+6
Forgotten in 199a11eceb3c. While here, Standards-Version increased to 4.1.4 (matches Ubuntu 18.04 as the oldest supported distro).
2021-11-09Packages: fixed dependency checks on multi-arch Debian/Ubuntu.Andrei Belov1-1/+1
2021-10-21Packages: removed support for EOL'ed Debian/Ubuntu distros.Andrei Belov3-102/+3
While here, default debhelper compat level bumped to 11 (this is the version installed out of the box on Ubuntu 18.04 "bionic" which is the oldest one from supported distros).
2021-10-21Packages: added Ubuntu 21.10 "impish" support.Andrei Belov6-3/+167
2021-08-17Packages: added Debian 11 "bullseye" support.Andrei Belov2-1/+13
2021-05-27Packages: added Ubuntu 21.04 "hirsute" support.Andrei Belov8-1/+250
2021-04-21Packages: switched to common address for package maintainers.Andrei Belov4-3/+9
2021-03-24Packages: added man page on debian-based systems.Konstantin Pavlov2-2/+4
2021-01-18Bumping year in copyright notice.Valentin Bartenev1-8/+8
2020-12-28Packages: fixed building for Ubuntu 16.04 "xenial".Andrei Belov2-0/+79
Changes introduced in a27532e3a17b effectively broke building of the unit package due to missed dh_installsystemd script in older debhelper 9.x. Once Ubuntu 16.04 reach EOL, the following actions should be made: - this commit should be reverted; - minimal debhelper version should be increased to 11.
2020-12-24Packages: fixed an ability to override package version.Andrei Belov1-1/+2
This was broken since 00d8049418cf.
2020-12-23Packages: set the "--user" value to "nobody" for build-stage tests.Andrei Belov1-2/+2
This allows tests to pass well in cases when the default user specified in the ./configure parameters does not exist in the building environment.
2020-12-17Packages: run non-privileged processes under "unit" user.Andrei Belov15-15/+37
2020-11-24Packages: added pcre2 to build depends.Konstantin Pavlov2-2/+5
While at it, propagate unit build depends to modules.
2020-11-24Packages: dropped support for non-systemd distributions.Konstantin Pavlov2-75/+1
2020-12-16Packages: eliminated debuild warning about debian/rules.Andrei Belov1-0/+1
2020-12-16Packages: the NOTICE file added to debian binaries.Andrei Belov1-1/+2
This resolves the following lintian error: https://lintian.debian.org/tags/missing-notice-file-for-apache-license.html While here, changed upstream changelog name to conform with the policy: https://lintian.debian.org/tags/wrong-name-for-upstream-changelog.html