<feed xmlns='http://www.w3.org/2005/Atom'>
<title>unit.git/auto/modules/ruby, branch archive/shiftTooManyBits</title>
<subtitle>Universal Web Application Server</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/'/>
<entry>
<title>Workarounded Clang bug triggered by Ruby.</title>
<updated>2022-04-28T18:02:30+00:00</updated>
<author>
<name>Alejandro Colomar</name>
<email>alx.manpages@gmail.com</email>
</author>
<published>2022-03-10T20:19:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=60a584cfab19d6c671b4aeebf32d0b36a4bc1b77'/>
<id>60a584cfab19d6c671b4aeebf32d0b36a4bc1b77</id>
<content type='text'>
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 &lt;https://github.com/nginx/unit/issues/653&gt;
Link: ruby bug &lt;https://bugs.ruby-lang.org/issues/18616&gt;
Link: LLVM bug &lt;https://github.com/llvm/llvm-project/issues/49958&gt;
Commit: LLVM: Add -fdeclspec &lt;d170c4b57a91adc74ca89c6d4af616a00323b12c&gt;
Commit: ruby: Use -fdeclspec &lt;0958e19ffb047781fe1506760c7cbd8d7fe74e57&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;https://github.com/nginx/unit/issues/653&gt;
Link: ruby bug &lt;https://bugs.ruby-lang.org/issues/18616&gt;
Link: LLVM bug &lt;https://github.com/llvm/llvm-project/issues/49958&gt;
Commit: LLVM: Add -fdeclspec &lt;d170c4b57a91adc74ca89c6d4af616a00323b12c&gt;
Commit: ruby: Use -fdeclspec &lt;0958e19ffb047781fe1506760c7cbd8d7fe74e57&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Isolation: mounting of procfs by default when using "rootfs".</title>
<updated>2020-10-29T20:30:53+00:00</updated>
<author>
<name>Tiago Natel de Moura</name>
<email>t.nateldemoura@f5.com</email>
</author>
<published>2020-10-29T20:30:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=0390cb3a61051dd93e206d50591aff5759cf42fc'/>
<id>0390cb3a61051dd93e206d50591aff5759cf42fc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Isolation: added "automount" option.</title>
<updated>2020-08-25T14:25:51+00:00</updated>
<author>
<name>Tiago Natel de Moura</name>
<email>t.nateldemoura@f5.com</email>
</author>
<published>2020-08-25T14:25:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=b65a8636bb5b2ee61c69660aa6f7edc7d909e632'/>
<id>b65a8636bb5b2ee61c69660aa6f7edc7d909e632</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ruby: fixed gem mount paths.</title>
<updated>2020-08-08T22:00:44+00:00</updated>
<author>
<name>Valentin Bartenev</name>
<email>vbart@nginx.com</email>
</author>
<published>2020-08-08T22:00:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=91280b4c0b3ec0721a8f3ba09a1cc9f5ca56c238'/>
<id>91280b4c0b3ec0721a8f3ba09a1cc9f5ca56c238</id>
<content type='text'>
The gem paths must depend on the specified interpreter.
Also, gemdir looks redundant as it's already included in Gem.default_path().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The gem paths must depend on the specified interpreter.
Also, gemdir looks redundant as it's already included in Gem.default_path().
</pre>
</div>
</content>
</entry>
<entry>
<title>Ruby: simplified commands in ./configure script.</title>
<updated>2020-08-08T22:00:44+00:00</updated>
<author>
<name>Valentin Bartenev</name>
<email>vbart@nginx.com</email>
</author>
<published>2020-08-08T22:00:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=317fabc83e7ef7c423a64388de67ea851115b1b9'/>
<id>317fabc83e7ef7c423a64388de67ea851115b1b9</id>
<content type='text'>
There is no reason to use printf instead of just print.

No functional changes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no reason to use printf instead of just print.

No functional changes.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ruby: removed unused variable from ./configure script.</title>
<updated>2020-08-08T22:00:44+00:00</updated>
<author>
<name>Valentin Bartenev</name>
<email>vbart@nginx.com</email>
</author>
<published>2020-08-08T22:00:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=7e1d800f08f365dd3be7cd614d0fac01ca16ad28'/>
<id>7e1d800f08f365dd3be7cd614d0fac01ca16ad28</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Configure: verifying the Ruby library path.</title>
<updated>2020-08-08T20:52:31+00:00</updated>
<author>
<name>Valentin Bartenev</name>
<email>vbart@nginx.com</email>
</author>
<published>2020-08-08T20:52:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=0d7a6885a32e01a1d6986f9b77a57f101cd3e8d9'/>
<id>0d7a6885a32e01a1d6986f9b77a57f101cd3e8d9</id>
<content type='text'>
An attempt to build a Ruby module for a custom Ruby installation that has the
same major version as the system Ruby may unexpectedly cause the use of the
system Ruby library.

This closes #449 issue on GitHub.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An attempt to build a Ruby module for a custom Ruby installation that has the
same major version as the system Ruby may unexpectedly cause the use of the
system Ruby library.

This closes #449 issue on GitHub.
</pre>
</div>
</content>
</entry>
<entry>
<title>Isolation: fixed the generation of mounts table.</title>
<updated>2020-07-31T11:21:21+00:00</updated>
<author>
<name>Tiago Natel de Moura</name>
<email>t.nateldemoura@f5.com</email>
</author>
<published>2020-07-31T11:21:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=b28b4459b0899cb8357df5f6c1e904fd1a34ebe3'/>
<id>b28b4459b0899cb8357df5f6c1e904fd1a34ebe3</id>
<content type='text'>
Since the introduction of rootfs feature, some language modules
can't be configured multiple times.

Now the configure generates a separate nxt_&lt;module&gt;_mounts.h for
each module compiled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the introduction of rootfs feature, some language modules
can't be configured multiple times.

Now the configure generates a separate nxt_&lt;module&gt;_mounts.h for
each module compiled.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added "rootfs" feature.</title>
<updated>2020-05-28T13:57:41+00:00</updated>
<author>
<name>Tiago Natel de Moura</name>
<email>t.nateldemoura@f5.com</email>
</author>
<published>2020-05-28T13:57:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=e2b53e16c60ba1e3bbbe59172c184e97f889326b'/>
<id>e2b53e16c60ba1e3bbbe59172c184e97f889326b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed "make tests" build without preceding "make".</title>
<updated>2019-10-02T16:11:10+00:00</updated>
<author>
<name>Max Romanov</name>
<email>max.romanov@nginx.com</email>
</author>
<published>2019-10-02T16:11:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/unit.git/commit/?id=9b4e45cafcc8f1f74bcfce3071866ee5eab176a5'/>
<id>9b4e45cafcc8f1f74bcfce3071866ee5eab176a5</id>
<content type='text'>
Currently almost all Unit object files depends on generated nxt_version.h.
This patch adds missing dependence and fixes running make with multiple
jobs.

This closes #318 issue on GitHub.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently almost all Unit object files depends on generated nxt_version.h.
This patch adds missing dependence and fixes running make with multiple
jobs.

This closes #318 issue on GitHub.
</pre>
</div>
</content>
</entry>
</feed>
