<feed xmlns='http://www.w3.org/2005/Atom'>
<title>unit.git/pkg/deb, branch 1.34.2-1</title>
<subtitle>Universal Web Application Server</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/'/>
<entry>
<title>Packages: enable otel support</title>
<updated>2024-12-18T19:01:11+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-12-13T03:40:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=6f9954bdc044add9eeeb65c2fb67d553b32e9214'/>
<id>6f9954bdc044add9eeeb65c2fb67d553b32e9214</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Packages: bump wasmtime to 24.0.0 and wasi-sysroot to 24.0.</title>
<updated>2024-09-09T16:55:32+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-09-05T20:22:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=9998918dbbc52c279b9c74cc34f6c67f6cdba1df'/>
<id>9998918dbbc52c279b9c74cc34f6c67f6cdba1df</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Packaging: fix build-depends on multiarch debian systems</title>
<updated>2024-08-19T19:27:38+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-06-17T20:08:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=5d32e500b7dc70ec831540ee00b1316336379060'/>
<id>5d32e500b7dc70ec831540ee00b1316336379060</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Packages: don't redefine FORTIFY_SOURCE on Ubuntu</title>
<updated>2024-07-03T23:12:36+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-05-20T19:03:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=6c04c7dc98a5179d24dec1f933b93fc6fd5b59df'/>
<id>6c04c7dc98a5179d24dec1f933b93fc6fd5b59df</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Packages: added Ubuntu 24.04 "noble" support</title>
<updated>2024-07-03T23:12:36+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-05-20T18:56:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=151305eb6ffa89b734af63e9b378686dc3d915eb'/>
<id>151305eb6ffa89b734af63e9b378686dc3d915eb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Packages: clean up EOL debian-based distributions</title>
<updated>2024-07-03T23:12:36+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-05-20T18:55:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=0bd18ecd715b3461b848ce31289349de8e765d9c'/>
<id>0bd18ecd715b3461b848ce31289349de8e765d9c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Packaging: fix build-depends detection on debian-based systems</title>
<updated>2024-05-20T19:11:37+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-05-17T23:49:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=f281207f9ea5e457111109729dcc9e6ab65aa573'/>
<id>f281207f9ea5e457111109729dcc9e6ab65aa573</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Packaging: added missing build dependencies to Makefiles</title>
<updated>2024-05-20T19:10:30+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-05-17T22:07:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=8fc16a77d511a4f0c00d0b0d24e575fe7673e4c8'/>
<id>8fc16a77d511a4f0c00d0b0d24e575fe7673e4c8</id>
<content type='text'>
Forgotten in bf3d5759e and 260494626.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Forgotten in bf3d5759e and 260494626.
</pre>
</div>
</content>
</entry>
<entry>
<title>Packages: Pass CFLAGS to compile wasm modules on all packaging targets</title>
<updated>2024-02-23T02:46:15+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-02-22T22:12:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=faa7e792428265a7c72ff0c692f31c04932d7dc0'/>
<id>faa7e792428265a7c72ff0c692f31c04932d7dc0</id>
<content type='text'>
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+.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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+.
</pre>
</div>
</content>
</entry>
<entry>
<title>Packages: added wasm-wasi-component module packaging for deb-based distros</title>
<updated>2024-02-22T01:45:54+00:00</updated>
<author>
<name>Konstantin Pavlov</name>
<email>thresh@nginx.com</email>
</author>
<published>2024-02-22T00:40:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=3f805bc64e287e8fa06d82c0e3c0904f0173dafe'/>
<id>3f805bc64e287e8fa06d82c0e3c0904f0173dafe</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
