History log of /unit/auto/modules/ (Results 1 – 25 of 110)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
2242:d83646816b4616-Nov-2022 Konstantin Pavlov

Propagated NXT_RUBY_CFLAGS to Ruby checks.

This fixes an issue addressed in 651f5a37f5b8 on FreeBSD 12.

The problem manifested itself as:

configuring Ruby module
checking for -fdeclspec ... found

Propagated NXT_RUBY_CFLAGS to Ruby checks.

This fixes an issue addressed in 651f5a37f5b8 on FreeBSD 12.

The problem manifested itself as:

configuring Ruby module
checking for -fdeclspec ... found
checking for Ruby library ... not found
checking for Ruby library in /usr/local/lib ... not found

./configure: error: no Ruby found.

show more ...

2228:f403dc1e3ec127-Oct-2022 Andrew Clayton

Fixed main() prototypes in auto tests.

Future releases of GCC are planning to remove[0] default support for
some old features that were removed from C99 but GCC still accepts.

We can test for these

Fixed main() prototypes in auto tests.

Future releases of GCC are planning to remove[0] default support for
some old features that were removed from C99 but GCC still accepts.

We can test for these changes by using the following -Werror=
directives

-Werror=implicit-int
-Werror=implicit-function-declaration
-Werror=int-conversion
-Werror=strict-prototypes
-Werror=old-style-definition

Doing so revealed an issue with the auto/ tests in that the test
programs always define main as

int main()

rather than

int main(void)

which results in a bunch of errors like

build/autotest.c:3:23: error: function declaration isn't a prototype [-Werror=strict-prototypes]
3 | int main() {
| ^~~~
build/autotest.c: In function 'main':
build/autotest.c:3:23: error: old-style function definition [-Werror=old-style-definition]

The fix was easy, it only required fixing the main prototype with

find -type f -exec sed -i 's/int main() {/int main(void) {/g' {} \;

Regardless of these upcoming GCC changes, this is probably a good thing
to do anyway for correctness.

[0]: https://fedoraproject.org/wiki/Changes/PortingToModernC

Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CJXKTLXJUPZ4F2C2VQOTNMEA5JAUPMBD/>
Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6SGHPHPAXKCVJ6PUZ57WVDQ5TDBVIRMF/>
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>

show more ...

2218:ed81ed291d0b02-Jun-2022 Remi Collet

PHP: Fixed php_module_startup() call for PHP 8.2.

PHP 8.2 changed the prototype of the function, removing the last
parameter.

Signed-off-by: Remi Collet <remi@remirepo.net>
Cc: Timo Stark <t.stark@

PHP: Fixed php_module_startup() call for PHP 8.2.

PHP 8.2 changed the prototype of the function, removing the last
parameter.

Signed-off-by: Remi Collet <remi@remirepo.net>
Cc: Timo Stark <t.stark@nginx.com>
Cc: George Peter Banyard <girgias@php.net>
Tested-by: Andy Postnikov <apostnikov@gmail.com>
Acked-by: Andy Postnikov <apostnikov@gmail.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>

show more ...

Revision tags: 1.28.0-1, 1.28.0, 1.27.0-1, 1.27.0
2080:651f5a37f5b810-Mar-2022 Alejandro Colomar

Workarounded Clang bug triggered by Ruby.

Add -fdeclspec to NXT_RUBY_CFLAGS for Clang, if it's available.

Clang incorrectly reports 1 for __has_declspec_attribute(x) in
some cases, such as MacOS or

Workarounded Clang bug triggered by Ruby.

Add -fdeclspec to NXT_RUBY_CFLAGS for Clang, if it's available.

Clang incorrectly reports 1 for __has_declspec_attribute(x) in
some cases, such as MacOS or Cygwin. That causes ruby code to
break. ruby added -fdeclspec to their CFLAGS in 2019 to
workaround this bug, since it enables __declspec() and therefore,
the compiler behavior matches what it reports.

Since we don't know what are all the architectures that trigger
the clang bug, let's add the flag for all of them (especially
since it should be harmless).

Add this workaround only at the time of configuring the ruby
module. This way we don't clutter the global NXT_CFLAGS with an
unnecessary flag.

Link: unit bug <https://github.com/nginx/unit/issues/653>
Link: ruby bug <https://bugs.ruby-lang.org/issues/18616>
Link: LLVM bug <https://github.com/llvm/llvm-project/issues/49958>
Commit: LLVM: Add -fdeclspec <d170c4b57a91adc74ca89c6d4af616a00323b12c>
Commit: ruby: Use -fdeclspec <0958e19ffb047781fe1506760c7cbd8d7fe74e57>

show more ...

2062:ede07f84045b10-Jan-2022 Max Romanov

Tests: using modules in Go.

Revision tags: 1.26.1-1, 1.26.1, 1.26.0-1, 1.26.0, 1.25.0-1, 1.25.0
1938:418e225f58e412-Aug-2021 Max Romanov

Java: upgrading third-party components.

1931:747666e4bec309-Aug-2021 Max Romanov

Java: upgrading third-party components.

1898:7158c417a71115-Jun-2021 Max Romanov

Node.js: improving and test packaging.

The patch removes the "files" section from package.json to avoid future issues
with missing files. For package testing purposes, 'npm pack' is used instead
of

Node.js: improving and test packaging.

The patch removes the "files" section from package.json to avoid future issues
with missing files. For package testing purposes, 'npm pack' is used instead
of plain 'tar' to simulate packaging more accurately.

show more ...

Revision tags: 1.24.0-1, 1.24.0
1880:00dc6b21190625-May-2021 Max Romanov

Go: fixing tests for Go 1.16.

In Go 1.16, the module-aware mode is enabled by default; to fall back to
previous behavior, the GO111MODULE environment variable should be set to
'auto'.

Details: http

Go: fixing tests for Go 1.16.

In Go 1.16, the module-aware mode is enabled by default; to fall back to
previous behavior, the GO111MODULE environment variable should be set to
'auto'.

Details: https://golang.org/doc/go1.16

show more ...

Revision tags: 1.23.0-1, 1.23.0
1831:da356521859a25-Mar-2021 Valentin Bartenev

Node.js: used distinct placeholder for version in "package.json".

This makes the "sed" instruction simpler and more portable, as the previous
variant didn't work well on BSD systems due to the "\s"

Node.js: used distinct placeholder for version in "package.json".

This makes the "sed" instruction simpler and more portable, as the previous
variant didn't work well on BSD systems due to the "\s" metacharacter.

Thanks to Sergey A. Osokin <osa@FreeBSD.org.ru> for spotting this issue.

Also, this should prevent accidentally creating a version 1.0.0 package.

show more ...

1830:aa339694598025-Mar-2021 Max Romanov

Node.js: fixing module global installation.

Globally installed modules require a globally installed libunit.
The "binding_pub.gyp" file is the correct version, otherwise linked module
may have unres

Node.js: fixing module global installation.

Globally installed modules require a globally installed libunit.
The "binding_pub.gyp" file is the correct version, otherwise linked module
may have unresolved symbols because libunit is not linked.

show more ...

1816:91b04f5068f522-Mar-2021 "Sergey A. Osokin"

Java: upgrading third-party components.

Revision tags: 1.22.0-1, 1.22.0, 1.21.0-1, 1.21.0
1696:27cef28d012610-Nov-2020 Max Romanov

Java: fixing isolation mounts for Alpine musl.

Thanks to @wujjpp.

This closes #490 PR on GitHub.

1677:ccd5c695b73902-Nov-2020 Max Romanov

Java: upgrading 3rd-party components.

1673:883f2f79c2f629-Oct-2020 Tiago Natel de Moura

Isolation: mounting of procfs by default when using "rootfs".

1655:72319d05588926-Oct-2020 Valentin Bartenev

Configure: using comma instead of space for passing -rpath value.

This variant will be more interoperable across various systems
and it's already used in Ruby module.

Otherwise, configure tests fai

Configure: using comma instead of space for passing -rpath value.

This variant will be more interoperable across various systems
and it's already used in Ruby module.

Otherwise, configure tests fail on NetBSD with:

gcc: Missing argument for -Wl,-rpath

show more ...

Revision tags: 1.20.0-1, 1.20.0
1624:e46b1b42254501-Oct-2020 Max Romanov

Python: ASGI server introduced.

This closes #461 issue on GitHub.

1622:773f29e2607209-Sep-2020 Tiago Natel de Moura

PHP: fixed "rootfs" isolation dependency on system mounts.

1592:9727c9b61f1c14-Sep-2020 Max Romanov

Python: split module initialization from WSGI implementation.

This is required for futher ASGI implementation.

1591:f5812964401013-Sep-2020 Max Romanov

Python: source file moved to 'python' sub-directory.

No functional changes. Get ready for an increase in file number.

1585:e941d77852d125-Aug-2020 Tiago Natel de Moura

Isolation: added "automount" option.

Now it's possible to disable default bind mounts of
languages by setting:

{
"isolation": {
"automount": {
"language_deps": fal

Isolation: added "automount" option.

Now it's possible to disable default bind mounts of
languages by setting:

{
"isolation": {
"automount": {
"language_deps": false
}
}
}

In this case, the user is responsible to provide a "rootfs"
containing the language libraries and required files for
the application.

show more ...

1583:0d343e154c4625-Aug-2020 Tiago Natel de Moura

PHP: added bind mounts for extensions directory.

Revision tags: 1.19.0-1, 1.19.0
1540:624bb8f866b008-Aug-2020 Valentin Bartenev

Ruby: fixed gem mount paths.

The gem paths must depend on the specified interpreter.
Also, gemdir looks redundant as it's already included in Gem.default_path().

1539:33581f92318008-Aug-2020 Valentin Bartenev

Ruby: simplified commands in ./configure script.

There is no reason to use printf instead of just print.

No functional changes.

1538:18eb0282c85908-Aug-2020 Valentin Bartenev

Ruby: removed unused variable from ./configure script.

12345