summaryrefslogtreecommitdiffhomepage
path: root/pkg (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-09-17pkg/docker: Update dockerfiles for 1.33.0Andrew Clayton17-51/+229
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-09-09Packages: bump wasmtime to 24.0.0 and wasi-sysroot to 24.0.Konstantin Pavlov8-21/+41
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-28Added .gitignore for pkg/contrib/tarballsKonstantin Pavlov1-0/+2
This directory is needed for contribs to function.
2024-08-28Remove .hgignore filesAndrew Clayton1-3/+0
Probably not needed now... Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-08-26Docker: leave artifacts when build targets succeedKonstantin Pavlov1-0/+2
2024-08-26Docker: introduce "slim" python imagesKonstantin Pavlov1-6/+14
Closes: https://github.com/nginx/unit/issues/1352
2024-08-26Docker: update Rust versionKonstantin Pavlov1-1/+1
2024-08-26Docker: bump Go versionsKonstantin Pavlov1-1/+1
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-10contrib: make sha512sum check compatible with FreeBSD 14+Konstantin Pavlov1-1/+1
FreeBSD introduced sha512sum binary in version 14, but with slightly incompatible flags as compared to Linux version. This change makes it work in both worlds.
2024-07-03Packages: removed CentOS 7 due to EOLKonstantin Pavlov4-28/+3
2024-07-03Packages: removed CentOS 6 leftoverKonstantin Pavlov1-4/+0
2024-07-03Packages: remove support for EOL Fedora versions (35-38)Konstantin Pavlov8-109/+4
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-07-02contrib: updated njs to 0.8.5Andrei Zeliankou2-2/+2
njs changed strings API so now instead of njs_vm_value_string_set() used njs_vm_value_string_create() as a drop-in replacement. Link: <https://github.com/nginx/njs/commit/5730d5ffe23a4965c001d873695d22005fcfa588>
2024-06-21Docker: updated Rust and rustup versionsKonstantin Pavlov1-4/+4
2024-06-21Docker: bump node and perl versionsKonstantin Pavlov1-2/+2
2024-06-21Packages: moved systemd service to forking on rpm-based distrosKonstantin Pavlov1-2/+3
Closes: https://github.com/nginx/unit/issues/915 Closes: https://github.com/nginx/unit/issues/1178
2024-06-18contrib: updated njs to 0.8.4Konstantin Pavlov3-3/+3
While at it, follow the njs move to github to fetch sources.
2024-06-18Docker: Bump containers to bookwormCostas Drongos1-1/+1
2024-06-18pkg/rpm: Remove deprecated rpm spec file itemsRemi Collet2-16/+0
The 'Group' and 'BuildRoot' tags have been declared as deprecated by the Fedora project. Also, to quote the Fedora Packaging Guidelines The contents of the buildroot SHOULD NOT be removed in the first line of %install. The %defattr directive in the %files list SHOULD ONLY be used when setting a non-default value, or to reset to the default value after having set a non-default value. Link: <https://fedoraproject.org/wiki/RPMGroups> Link: <https://fedoraproject.org/wiki/Phase_out_buildroot_tag_(draft)> Link: <https://fedoraproject.org/wiki/Archive:PackagingDrafts/BuildRoot> Link: <https://docs.fedoraproject.org/en-US/packaging-guidelines/#_tags_and_sections> [ Tweaked subject & added commit message - Andrew ] Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-05-20contrib: be quiet on unpackKonstantin Pavlov1-4/+4
The lists of files being unpacked are mostly useless but take a significant amount of lines and bytes in e.g. CI jobs. E.g. in rhel9 packaging job, it's 39680 lines just for the unpacking of wasmtime-v11.0.1-src, as compared to total 48945 lines of output.
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 Pavlov2-2/+2
Forgotten in bf3d5759e and 260494626.
2024-03-12NJS: loader should be registered using njs_vm_set_module_loader()Andrei Zeliankou2-2/+2
This change makes NJS module incompatible with NJS older than 0.8.3. Therefore, the configuration version check has been adjusted accordingly. This change was introduced in NJS 0.8.3 here: <https://hg.nginx.com/njs/rev/ad1a7ad3c715>
2024-02-27Generated Dockerfiles for Unit 1.32.0Andrei Zeliankou14-28/+28
2024-02-22Packages: Pass CFLAGS to compile wasm modules on all packaging targetsKonstantin Pavlov2-3/+3
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 rpm-based distrosKonstantin Pavlov1-3/+3
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-21Docker: Re-generate Dockerfile.wasmAndrew Clayton1-7/+8
This now includes support for the 'wasm-wasi-component' module. This targets the upcoming 1.32.0 release which is required by wasm-wasi-component. However of course the 1.32.0 tag doesn't exist yet, so there will be a small window where this image won't build. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-02-21Docker: Add wasm-wasi-component to the wasm targetAndrew Clayton1-3/+4
Thus $ make build-wasm will build _both_ the 'wasm' & 'wasm-wasi-component' modules. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-02-21Docker: Bump rust version to 1.76.0Andrew Clayton1-1/+2
The minimum version required to build wasmtime 17 which is required by wasm-wasi-component is 1.73.0 But no point not using the latest version. This also now needs the libclang-dev package installed, we install this via MODULE_PREBUILD_wasm. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2024-02-20Updated copyright notice.Andrei Zeliankou6-31/+61
2024-02-20Docker: Update versions of Go, Node, PHP, RubyDan Callahan16-21/+199
- Go: Drop 1.20, Add 1.22 - Node: Drop 18, Add 21 - PHP: Add 8.3 - Ruby: Add 3.3 Perl and Python are still up-to-date with upstream releases Regenerating the Dockerfiles also picks up the logging change from 183a1e9d634ae2fb129ce98f1ca8a16cbfdeac99
2024-02-20Docker: Shallow clone the Unit repoDan Callahan14-14/+14
Saves on the order of 10 MBs of transfer for each build. We call `rm -rf /usr/src/unit` later in this step, so the full repo has never appeared in our published images anyway.
2024-02-20Packages: fixed a path to python 3.12 example appKonstantin Pavlov1-1/+1
2024-02-20Docker: redirect logs to stderrKonstantin Pavlov1-1/+1
This allows to use /dev/stdout as application logs if users choose to do so. Closes: https://github.com/nginx/unit/issues/982
2024-02-19Docker: Switch python3.12 to using githubAndrei Zeliankou1-2/+2
Forgotten in <https://github.com/nginx/unit/commit/c3af21e970ca3c822004cfda7c5b56ec07d99da9>
2024-02-16Packages: Move dist target to git archiveKonstantin Pavlov1-4/+5
2024-02-16Docker: Switch to githubKonstantin Pavlov13-26/+26
2024-02-13Docker: Generated Dockerfile for Unit 1.31.1.tclesius1-0/+89
2024-02-13Docker: added python3.12 to versionstclesius1-1/+1
2024-02-09Packages: Added Fedora 39 support.Konstantin Pavlov5-2/+101
2024-02-09contrib: updated njs to 0.8.2.Konstantin Pavlov2-2/+2
2024-02-09contrib: Bump libunit-wasm to 0.3.0.Konstantin Pavlov1-2/+2
2024-02-09Packages: added Ubuntu 23.10 "mantic" support.Konstantin Pavlov5-0/+165
2024-01-16White space formatting fixesAndrei Zeliankou1-1/+1
Closes: <https://github.com/nginx/unit/pull/1062>
2023-10-17Generated Dockerfiles for Unit 1.31.1.1.31.1Andrei Zeliankou12-24/+24