Commit Graph

323 Commits

Author SHA1 Message Date
Jean-Sébastien Pédron 545a1ee68f
packaging/generic-unix: Fix the way we path files list to tar(1)
If we use xargs(1) to call tar(1), we are limited by the number of
arguments we can put on the command line. Since we switch to use
directories to "package" plugins instead of .ez archives, the number of
files exploded. This led to incomplete generic-unix archives (i.e. some
plugins and CLI scripts were missing for instance).

Now, the list of files is written to a manifest, exactly like we do it
to create the source archive.
2020-08-11 16:28:24 +02:00
Michael Klishin c7ac344747
Include full MPL 2.0 text into debian/copyright 2020-07-17 16:12:05 +03:00
Michael Klishin 858ef574c0
Switch to MPL 2.0 2020-07-17 16:10:14 +03:00
Jean-Sébastien Pédron 9022b9ce0c
scripts/rabbitmq-script-wrapper: Don't mess with console redirection
Console output is handled in the SysV init scripts consistently (no more
differences between the Debian and RPM packages). See the previous
commit.

This fixes an issue for users who used to define $RABBITMQ_LOG_BASE in
the environment and called this script directly (i.e. not using the SysV
init scripts). Before commit 4b7048205d
(which made it to RabbitMQ 3.8.4), `rabbitmq-script-wrapper` took
$RABBITMQ_LOG_BASE from rabbitmq-env(8) or the environment. After the
mentionned commit, $RABBITMQ_LOG_BASE was hard-coded to setup console
redirection (in the case of Debian only) because rabbitmq-env(8) didn't
have the variable anymore and thus was not sourced.

For those users, it meant they couldn't override $RABBITMQ_LOG_BASE in
the environment and call this script, even if they wanted to change the
location of RabbitMQ actual log files.

Now that console redirection is handled by the SysV init scripts, we can
get rid of that code in `rabbitmq-script-wrapper`.

Fixes rabbitmq/rabbitmq-server-release#131.
2020-06-08 15:43:02 +02:00
Jean-Sébastien Pédron aef4872ea0
packaging: Use $RABBITMQ_SERVER_CONSOLE_OUTPUT_DIR to configure stdout/stderr redirections
Historically we were using $RABBITMQ_LOG_BASE to configure the
redirection. The variable default value was set in rabbitmq-env(8) which
made it to the SysV init scripts because they sourced it in the past.

This was removed in commit 4b7048205d as
part of the transition to rabbit_env/rabbitmq_prelaunch to handle the
environment in the Erlang code (see rabbitmq/rabbitmq-server#2180).
Instead, the value of $RABBITMQ_LOG_BASE was hard-coded. Unfortunately,
this caused a regression because users couldn't configure it from
rabbitmq-env.conf anymore (only /etc/default/rabbitmq-server).

Anyway, the semantic was slightly incorrect: $RABBITMQ_LOG_BASE is used
in the configuration of log files RabbitMQ is responsible for. Console
redirection is the responsibility of the SysV init scripts and the
package which creates the directory and set ownership.

This patch introduces a new $RABBITMQ_SERVER_CONSOLE_OUTPUT_DIR variable
which is specific to the SysV init scripts. For backward compatibility,
we still look at the value of $RABBITMQ_LOG_BASE if the user set it in
/etc/default/rabbitmq-server.

While here, align the Debian SysV init script behavior with the RPM
version of the script: console redirection is always configured in the
SysV init script, not in `rabbitmq-script-wrapper`. A subsequent commit
will take care of cleaning `rabbitmq-script-wrapper`.

The solution to redirect output when using start-stop-daemon(8) was
taking from the following post:
https://stackoverflow.com/questions/8251933/how-can-i-log-the-stdout-of-a-process-started-by-start-stop-daemon

References rabbitmq/rabbitmq-server-release#131.
2020-06-08 15:43:02 +02:00
Michael Klishin e2d9b5fd87
Debian control file: mark Erlang 23.0 as compatible 2020-05-19 21:56:22 +03:00
Nicolas Bock 3a7b6b2f63
Update debian/watch file to pull from GitHub
RabbitMQ is released on GitHub. Update the `debian/watch` file to
point to this location.

Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
2020-05-13 08:21:16 -06:00
Nicolas Bock 694540270c
Add timeout to rabbitmqctl wait statement
After starting the RabbitMQ server process, the startup script will
wait for the server to start by calling `rabbitmqctl wait` and will
time out after 10 s.

The startup time of the server depends on how quickly the Mnesia
database becomes available and the server will time out after
`mnesia_table_loading_retry_timeout` ms times
`mnesia_table_loading_retry_limit` retries. By default this wait is
30,000 ms times 10 retries, i.e. 300 s.

The mismatch between these two timeout values might lead to the
startup script failing prematurely while the server is still waiting
for the Mnesia tables.

This change introduces variable `RABBITMQ_STARTUP_TIMEOUT` and the
`--timeout` option into the startup script. The default value for this
timeout is set to 10 minutes (600 seconds).

This change also updates the systemd service file to match the timeout
values between the two service management methods.

Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
2020-04-17 06:20:57 -06:00
Jean-Sébastien Pédron 1cf3af5a79
Update copyright (year 2020) 2020-03-10 16:49:26 +01:00
Jean-Sébastien Pédron 3cce2b5b4d
Windows: Change organization from Pivotal to VMware 2020-03-10 16:47:06 +01:00
Jean-Sébastien Pédron c9f15a187f
Debian: Bump minimum required Elixir to 1.8.0
We also use this value during package building to pin the version of
Elixir (to make sure we use the correct one).
2020-03-09 09:48:34 +01:00
Jean-Sébastien Pédron 4e814bd478
RPM: Adapt build/runtime dependencies to the OpenSUSE Erlang package
The package is built and tested using the following community
repository:
https://build.opensuse.org/project/show/home:Ledest:erlang:22
2020-03-02 16:49:11 +01:00
Michael Klishin b0f49e1517
(c) bump 2019-12-29 05:50:35 +03:00
Jean-Sébastien Pédron 4b7048205d
packaging: Don't load rabbitmq-env from init scripts
This was used to define `$RABBITMQ_LOG_BASE`, but this variable is no
longer define there.

rabbitmq-env would also load `rabbitmq-env.conf` which could redefine
`$RABBITMQ_LOG_BASE`, but this is a corner case and doesn't fit
packaging well: packages already prepare a location for log files and
will clean this location up on removal.

Now, we set `$RABBITMQ_LOG_BASE` value in those scripts and get rid of
rabbitmq-env load.
2019-12-16 10:37:41 +01:00
Jean-Sébastien Pédron b6a206a394
packaging: Cleanup of Debian and RPM packages
... mostly around their dependencies.
2019-12-05 15:44:28 +01:00
Jean-Sébastien Pédron 038e8701b8
packaging: Remove standalone package 2019-12-05 15:44:24 +01:00
Jean-Sébastien Pédron 9148053c80
RPM: New targets to build RHEL8 packages
[#169092428]
2019-10-22 16:50:27 +02:00
Jean-Sébastien Pédron 49f7ea60c7
Remove rabbitmq.config.example from packages
It was removed from rabbitmq-server already.
2019-09-24 10:06:25 +02:00
Jean-Sébastien Pédron 292d8836a9
Install a new CLI, `rabbitmq-upgrade`
References rabbitmq/rabbitmq-cli#375.
2019-09-23 15:39:34 +02:00
Michael Klishin 83ea4478ad
Debian: support Erlang 22.x
but not 23.0. By being overly conservative with minor version numbers
we repeatedly run into the same problem:

 * A RabbitMQ release comes out and marks 22.1 as unsupported
 * Erlang/OTP 22.1 comes out the next day
 * Debian users cannot install this combination which the docs unintentionally
   recommend by using the "latest 22" apt compoonent.

Minor versions of 21.x and 22.x have been compatible with the original
major release, so let's switch to a more optimistic version range
unless we have evidence of incompatibilities in recent minor releases.
2019-09-17 18:51:55 +03:00
RabbitMQ CI 1da5df2957 Add package changelog entries for 3.8.0-rc.1 2019-09-08 20:26:34 +00:00
RabbitMQ CI 0ee7929049 Add package changelog entries for 3.8.0-beta.7 2019-08-20 19:44:41 +00:00
RabbitMQ CI 05afd370a7 Add package changelog entries for 3.8.0-beta.6 2019-08-04 00:18:14 +00:00
RabbitMQ CI 5e68ba6525 Add package changelog entries for 3.8.0-beta.5 2019-07-09 16:11:21 +00:00
Jean-Sébastien Pédron b206b3e4b6
packaging: Set `$XDG_*_HOME` variables on Make command lines
Exactly like we do it with `$HOME`, this is to exercices our hack to
make mix(1) work offline.

Starting with Elixir 1.9.0, mix(1) accepts a `$MIX_HOME` variable to
point it to its own central directory. If it's not defined, it uses
first the `$XDG_DATA_HOME` and `$XDG_CONFIG_HOME` Freedesktop.org
variables. Then it uses `$HOME`.

So here, we specify those two variables explicitely to make sure they do
not disturb the build process.
2019-06-27 12:27:55 +02:00
Jean-Sébastien Pédron 678c1d423e
packaging/generic-unix: Make tarball suffix configurable
It still defaults to `generic-unix`.
2019-06-26 17:54:22 +02:00
Jean-Sébastien Pédron 7062ac9512
packaging: Set `$HOME` on Make command lines
This is to exercices our hack to convince mix(1) to work offline. See
the comments in the Makefiles.
2019-06-26 16:54:51 +02:00
Jean-Sébastien Pédron 4a15ad52d4
packaging: Log Elixir version before compiling
... in addition to the Erlang version.
2019-06-25 18:18:34 +02:00
Robin Wallin e4bb947a3e
Consider exit code 69 as success again
This was first added in e5a2609fcb but then accidentally removed, it seems, in c641f7bb51
2019-06-10 13:01:44 +02:00
Jean-Sébastien Pédron 1a8a26ed97
Debian: Bump Erlang support upper limit to 22.0
In other words, Erlang 22.0 is supported, Erlang 22.1 is not.
2019-05-15 18:16:58 +02:00
RabbitMQ CI 51946c2baf Add package changelog entries for 3.8.0-beta.4 2019-05-10 14:13:38 +00:00
Michael Klishin 1b622c505f
Require Elixir 1.7.4 for building 2019-04-19 07:46:00 +03:00
Michael Klishin 360226f29a
Merge pull request #97 from spring-operator/polish-urls-remaining-master
URL Cleanup
2019-03-29 02:55:30 +03:00
Jean-Sébastien Pédron 3bedc70d92
Debian, RPM: Require Erlang 21.3 2019-03-21 16:45:05 +01:00
Spring Operator 19b22db1f4 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
   ([https](https://blog.listincomprehension.com/search/label/procket) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/TOML) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/subproc) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
   ([https](https://e2project.org) result AnnotatedConnectException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
   ([https](https://nitrogenproject.com/) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
   ([https](https://proper.softlab.ntua.gr) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
   ([https](https://yaws.hyber.org) result AnnotatedConnectException).
* http://httpredir.debian.org/debian (302) with 1 occurrences could not be migrated:
   ([https](https://httpredir.debian.org/debian) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
   ([https](https://choven.ca) result ConnectTimeoutException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
  https://fixtrading.org ([https](https://fixprotocol.org/) result SSLHandshakeException).
* http://nsis.sourceforge.net/Setting_Environment_Variables (301) with 1 occurrences migrated to:
  https://nsis.sourceforge.io/Setting_Environment_Variables ([https](https://nsis.sourceforge.net/Setting_Environment_Variables) result AnnotatedConnectException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
  https://erldb.org ([https](https://erldb.org) result UnknownHostException).
* http://www.rabbitmq.com/releases/rabbitmq-server/v (404) with 1 occurrences migrated to:
  https://www.rabbitmq.com/releases/rabbitmq-server/v ([https](https://www.rabbitmq.com/releases/rabbitmq-server/v) result 404).
* http://www.rabbitmq.com/releases/rabbitmq-server/v% (404) with 1 occurrences migrated to:
  https://www.rabbitmq.com/releases/rabbitmq-server/v% ([https](https://www.rabbitmq.com/releases/rabbitmq-server/v%) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://cloudi.org/ with 27 occurrences migrated to:
  https://cloudi.org/ ([https](https://cloudi.org/) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
  https://erlware.org/ ([https](https://erlware.org/) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
  https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
  https://ninenines.eu ([https](https://ninenines.eu) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
  https://www.actordb.com/ ([https](https://www.actordb.com/) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
  https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html) result 200).
* http://www.debian.org/doc/debian-policy/ with 2 occurrences migrated to:
  https://www.debian.org/doc/debian-policy/ ([https](https://www.debian.org/doc/debian-policy/) result 200).
* http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ with 1 occurrences migrated to:
  https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ ([https](https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/) result 200).
* http://www.rabbitmq.com/ with 2 occurrences migrated to:
  https://www.rabbitmq.com/ ([https](https://www.rabbitmq.com/) result 200).
* http://www.rabbitmq.com/debian/ with 3 occurrences migrated to:
  https://www.rabbitmq.com/debian/ ([https](https://www.rabbitmq.com/debian/) result 200).
* http://www.rabbitmq.com/monitoring.html with 2 occurrences migrated to:
  https://www.rabbitmq.com/monitoring.html ([https](https://www.rabbitmq.com/monitoring.html) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
  https://www.rebar3.org ([https](https://www.rebar3.org) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
  https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
  https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
  https://lasp-lang.org/ ([https](https://lasp-lang.org/) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
  https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec) result 301).
* http://www.debian-administration.org/articles/286 with 1 occurrences migrated to:
  https://www.debian-administration.org/articles/286 ([https](https://www.debian-administration.org/articles/286) result 301).
* http://www.erlang.org/download.html with 1 occurrences migrated to:
  https://www.erlang.org/download.html ([https](https://www.erlang.org/download.html) result 301).
* http://www.mozilla.org/MPL/ with 5 occurrences migrated to:
  https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
  https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli) result 301).
2019-03-20 03:22:38 -05:00
Jean-Sébastien Pédron e0947d3f77
RPM: Fix service restart after upgrade
Before this patch, the package handled the upgrade like this:
1.  It stopped the service in `%pre` so that the service doesn't run with
    an upgrade in progress.
2.  It used the `try-restart` command in `%postun` to restart the service.

`try-restart` only restarts the service if it is already running. This
makes sense when used alone: if the service was not running before
an upgrade, you don't want the service to be started in your back.
Unfortunately, this was broken because the service was stopped before
the upgrade, preventing `try-restart` to do its job. This led to a
service left stopped after an upgrade.

Now the new approach is the following one:
1.  It records in `/var/lib/rabbitmq` if the service is running in
    `%pre`.
2.  It stops the service in `%pre`.
3.  It restarts the service in `%post` if it finds the record made
    in step 1.

We use `restart` in step 3, not just `start`, just in case the service
was already restarted in the middle of the upgrade by e.g. a
configuration system.

Restart is handled in `%post`, not `%postun`, because it is also covers a
reinstall of the same version. This is ok because the only difference is
old now-unreferenced files which are still around in `%post` compared to
`%postun`.

While here, systemctl(1) is used in step 1 to stop the service when
relevant, instead of always relying on service(8).

Fixes #94.
2019-03-11 14:59:13 +01:00
RabbitMQ CI a8aa87e0a0 Add package changelog entries for 3.8.0-beta.3 2019-03-06 05:08:04 +00:00
Jean-Sébastien Pédron 3a366d9b09
Add rabbitmq-queues(8) to the list of scripts to install 2019-02-26 11:46:52 +01:00
Jean-Sébastien Pédron c87cfe80ab
Debian, RPM: Don't source `/etc/profile` in the `postinst` script
There is no point in doing so because that script is executed by a
command. And hopefully that command cannot pollute the user's
environment.

If the user wants to enable autocompletion, he has to do that from his
shell configuration anyway. It is probably the case by default on many
Unix systems.

Fixes rabbitmq/rabbitmq-server-release#93.
2019-02-20 19:11:55 +01:00
Michael Klishin d60ae2aeee
Debian: require OTP 21.2
See 14930de569.
2019-02-06 22:13:37 +03:00
Michael Klishin 14930de569
Require OTP 21.2
We agreed to require it for 3.8 GA a while ago
and already effectively Ra requires it.

Per discussion with @hairyhum.
2019-02-06 22:12:16 +03:00
RabbitMQ CI d84f639d5d Add package changelog entries for 3.8.0-beta.2 2019-01-31 10:16:50 +00:00
Michael Klishin 036a35f81b
Fedora/RPM: update service description 2019-01-25 13:54:11 +03:00
RabbitMQ CI 3788075d53 Add package changelog entries for 3.8.0-beta.1 2018-11-08 14:41:04 +00:00
Jean-Sébastien Pédron 4441c28a0e
packaging: Require Erlang 21.0
... in both Debian and RPM packages, now that the `quorum-queue` branch
is merged.
2018-10-30 11:02:07 +01:00
Luke Bakken d67f1bbbe8
Do not rename existing rabbitmq.conf file
`rabbitmq.conf` must be a very old way to specify environment variables because the installation moves it to `rabbitmq-env.conf` if found. This is a problem as the new sysctl-style config file is named `rabbitmq.conf`

Fixes #87
2018-10-12 07:02:54 -07:00
Jean-Sébastien Pédron f2326d82ba
packageing: Consider older releases in `update-changelog.sh`
... and don't create entries for them if asked. For instance, don't try
to add an entry for 3.6.15-beta.2 even if the last one is 3.6.16.

In the RPM version of this script, this was already the case. However,
there was a tiny bug: even if we parsed the changelog and passed that to
grep(1), we instructed grep(1) to look directly at the spec anyway.

[#160270896]
2018-09-21 12:30:42 +02:00
Michael Klishin 71c331b038
Merge pull request #84 from rabbitmq/lrb-set-open-files-limit-systemd
Use 32768 as the default open files limit
2018-09-14 21:11:55 +02:00
Luke Bakken ad99cb2524
Use template in rabbitmq-script-wrapper for RabbitMQ user and group 2018-09-13 11:13:42 -07:00
Luke Bakken dbedda8393
Use 32768 as the default open files limit
This is on systemd-based systems. Also added a comment on how to override LimitNOFILE
2018-09-07 15:18:36 -07:00
Jean-Sébastien Pédron f12ddea4e2
debian/control: Mark Erlang 22+ as incompatible
We don't know yet if it is actually the case, but this is a safety for
the day Erlang 22.0 will be released, so that users are not in trouble
before we validated that RabbitMQ works with the new release.

[#160088605]
2018-09-04 15:13:38 +02:00
Jean-Sébastien Pédron 5e37fd046a
debian/control: Replace erlang-nox by "leaf" packages
erlang-nox is a meta-package which pulls in most useful Erlang
applications for a developer. Unfortunately, it doesn't pin the version
of those packages. So for instance, erlang-nox 19.3 could pull in
erlang-base 21.0 without a warning.

This patch replaces this meta-package by all the "leaf" packages
RabbitMQ really depends on. By "really depends on", the list was reduced
compared to all the packages installed by erlang-nox, but it's still
conservative (i.e. it could probably be cleaned up further).

[#160232286]
2018-09-03 15:10:52 +02:00
Jean-Sébastien Pédron d769d1843f
packaging/standalone/Makefile: Copy `no_dot_erlang.boot` to the package
This boot script is required by escript(1).

[#160088605]
2018-08-29 18:46:28 +02:00
Jean-Sébastien Pédron 8414e596fe
debian/control: Remove package revision from version requirement
The requirement is used to determine which version to pin. Before it had
to match exactly an available package version.

Now the script improved and it will use this requirement as a pattern
instead to figure out which package matches it. That's why the revision
must be dropped.

[#159273314]
2018-07-24 17:31:08 +02:00
Luke Bakken 72fd1d1c6e
Delete cookie if present, then copy 2018-07-03 14:22:16 -07:00
Luke Bakken 3ca236512c
Copy from "new" location of .erlang.cookie file
https://www.rabbitmq.com/install-windows-manual.html#erlang-cookie

Fixes #81

packaging/windows: Look at Erlang 20.2+ cookie's location as well

While here, check if the cookie exists before copying it. This fixes an
uninformative error message in the installer output.

Use NSIS variable $SYSDIR
2018-07-03 12:27:34 -07:00
Jean-Sébastien Pédron 876f48472b
debian/control: Bump Elixir requirement to 1.6.6
This is the first verison of Elixir which officially supports Erlang
21.0.

[#157964874]
2018-06-25 13:15:12 +02:00
Michael Klishin 8470d3808e
Reflect the Elixir 1.6.0+ requirement in control file
Per discussion with @dumbbell.
2018-04-10 13:05:05 +03:00
Carl Hörberg 3e3255d063 Revert "Change to 2750"
This reverts commit 5df0873777.
2017-12-18 22:49:58 +01:00
Luke Bakken d630709ae7
Ensure files created by RabbitMQ are not world-readable. Add gid bit to /var/log/rabbitmq to ensure sub-directories and files are group-id "adm" 2017-12-18 08:20:58 -08:00
Carl Hörberg ead58795ef
Make adm group owner of /var/log/rabbitmq
Adm should be group owner of everything in /var/log according to Debian/Ubuntu guidelines. Makes it possible for users in the adm group to read logs without sudo:ing.
2017-12-18 08:20:58 -08:00
RabbitMQ CI a8f5d9df44 Add package changelog entries for 3.7.1-beta.1 2017-12-13 18:07:55 +00:00
Luke Bakken 99d3f6607f
Explicitly set our recommended open files limit
Comment out the value
2017-12-12 07:37:32 -08:00
RabbitMQ CI 000c83527e Add package changelog entries for 3.7.0 2017-11-29 16:52:39 +00:00
Daniil Fedotov d0d38ac449 Require Erlang 19.3 to install RabbitMQ on windows.
RabbitMQ will not start if erlang version is lower than 19.3.
Warn before installation starts.
2017-11-29 12:36:34 +00:00
Jean-Sébastien Pédron 661ec919dc
packaging: Bump minmum Erlang version to 19.3 in Debian & RPM packages
[#153052754, #153171868]
2017-11-27 12:46:48 +01:00
RabbitMQ CI 2755a5a5d1 Add package changelog entries for 3.7.0-rc.2 2017-11-16 17:50:24 +00:00
Michael Klishin c641f7bb51
Merge branch 'stable'
Conflicts:
	packaging/RPMS/Fedora/rabbitmq-server.service
	packaging/debs/Debian/debian/rabbitmq-server.service
2017-11-07 06:50:12 +02:00
Michael Klishin f1fb6d74ff
systemd does not support trailing comments, so don't use them
Closes rabbitmq/rabbitmq-server#1422.
2017-11-07 06:48:38 +02:00
Luke Bakken efb74c2bc9
Remove in-line comments from RPM systemd file because systemd complains about them 2017-10-30 06:53:40 -07:00
Luke Bakken 1bee575089
Use `rabbitmqctl shutdown` on RPM-based systems 2017-10-30 06:29:35 -07:00
Diana Corbacho 0d8fb609bf Use `rabbitmqctl shutdown` with systemd
[#151554248]
2017-10-30 12:38:23 +00:00
Jean-Sébastien Pédron 76bf86557f
Merge branch 'stable' 2017-10-17 19:04:36 +02:00
Jean-Sébastien Pédron cb7555f530
packaging/standalone: Include `rabbit` dependencies when creating the release script
Before this, this was working by chance because those dependencies were
brought by plugins. But if we build the package without any plugins, the
script complains about requires missing applications (kernel and
stdlib), and if we add hard-code them, it complains about other Erlang
applications not listed (sasl, mnesia, os_mon, ...).
2017-10-17 19:02:28 +02:00
Jean-Sébastien Pédron cdf340d3c7
Merge branch 'stable' 2017-10-17 17:46:53 +02:00
Jean-Sébastien Pédron c571ef2cc3
package/standalone: Remove rabbit_release.beam on cleanup 2017-10-17 17:46:22 +02:00
Luke Bakken 6785376923
Merge branch 'stable' 2017-09-29 10:16:09 -07:00
Luke Bakken e5a2609fcb
Add setting to consider exit code 69 as success
Fixes #51

See rabbitmq/rabbitmq-server#1381 for details.
2017-09-29 09:24:40 -07:00
cll 7ecae0ba48
Set the shell to /sbin/nologin for security 2017-09-26 11:18:31 +03:00
cll 17332c8408 Set the shell to /sbin/nologin for security 2017-09-25 16:04:51 +08:00
Michael Klishin 0f6085ef4c
Merge branch 'stable' 2017-09-20 14:38:22 -06:00
Luke Bakken c811fba5d9
Add settings to have systemd restart RMQ on failure 2017-09-20 09:57:38 -07:00
Luke Bakken 07ad84c66a
Add optional Restart and RestartSec configuration
See rabbitmq/rabbitmq-server#1359

This gives guidances for those users who wish to automatically restart RabbitMQ in the event of a failure. Tested by using the `Restart=on-failure` setting, then running `rabbitmqctl eval "erlang:halt(abort)."`
2017-09-19 15:54:57 -07:00
RabbitMQ CI c6cd7bc351 Add package changelog entries for 3.7.0-rc.1 2017-09-18 14:43:34 +00:00
Jean-Sébastien Pédron e81521f7b1
debian/dirs: Fix typo in /ets/profile.d; should be /etc
Ubuntu's Software Center reports a warning and Lintian reports the
following error:

    E: rabbitmq-server: non-standard-toplevel-dir ets/

Reported by Giuliano Franchetto on #rabbitmq IRC channel.
2017-09-14 17:46:50 +02:00
Jean-Sébastien Pédron f86423feeb
packaging: Set log directory permissions on fresh install
On a fresh install, we want to limit access to the log directory to the
owner and group. This is in case sensitive data are logged.

We don't enforce the permissions on upgrade because:
    1. We don't want to break exising installs by reducing
       permissions.
    2. The admin may want to setup different permissions.

References rabbitmq/rabbitmq-management#474.
[#150970897]
2017-09-12 15:56:36 +02:00
Jean-Sébastien Pédron 76e999049c
Merge branch 'stable' 2017-09-12 12:40:11 +02:00
Jean-Sébastien Pédron 2c4038a14c
packaging/RPMS/Fedora/scripts/update-changelog.sh: .spec is now optional
It then defaults to the one in the parent directory.

(cherry picked from commit c028327c2b)
2017-09-12 12:38:00 +02:00
RabbitMQ CI 196199d994 Add package changelog entries for 3.7.0-beta.20 2017-09-12 07:49:21 +00:00
Michael Klishin e71932d293 Commit package change logs 2017-09-11 17:22:21 +01:00
Jean-Sébastien Pédron c028327c2b
packaging/RPMS/Fedora/scripts/update-changelog.sh: .spec is now optional
It then defaults to the one in the parent directory.
2017-09-11 17:40:11 +02:00
Tianon Gravi 9086607688
Remove duplicate (and presumed invalid) "AVR32"
(cherry picked from commit 0c25ec5acf)
2017-09-08 16:36:20 +02:00
Tianon Gravi 243d9b5cc3
packaging/debs/apt-repository/distributions: Add more valid `Architectures`
See the first column of https://sources.debian.net/src/dpkg/stretch/data/cputable/ for where these values were sourced from.

(cherry picked from commit 6bfb41ab24)
2017-09-08 16:36:04 +02:00
Tianon Gravi 0c25ec5acf Remove duplicate (and presumed invalid) "AVR32" 2017-09-07 14:26:00 -07:00
Tianon Gravi 6bfb41ab24 packaging/debs/apt-repository/distributions: Add more valid `Architectures`
See the first column of https://sources.debian.net/src/dpkg/stretch/data/cputable/ for where these values were sourced from.
2017-09-06 15:14:43 -07:00
Jean-Sébastien Pédron 4b9d48a07d
packaging/RPMS: Do not sign sles11 packages
SLES 11 provides RPM 4.4 which fails to verify package signatures. It's
unclear what is the real cause, but all settings we tried were rejected
(v4/v3 signatures, MD5 or SHA1 digests).

So for now, disable package signing entirely for SLES 11.

[#150792874]

(cherry picked from commit c54728f51a)
2017-09-05 10:42:16 +02:00
Jean-Sébastien Pédron af28e658fd
Revert "packaging: Force GPG v3 signatures for the SLES 11 RPM package"
Using GPG v3/v4 signatures wasn't the problem. My test was wrong: the
tested package was not signed. So even a GPG v3 signature is refused by
RPM.

In fact, it looks like RPM 4.4 has issues with package signature
verifications. Perhaps related to the SHA1 digest (but using an MD4
digest doesn't solve the problem). The cause is unclear.

Only RPM 4.4 is available on SLES 11. So for now, revert this change.

This reverts commit dc783c737a.

(cherry picked from commit 703081cdc0)
2017-09-05 10:42:05 +02:00
Jean-Sébastien Pédron c54728f51a
packaging/RPMS: Do not sign sles11 packages
SLES 11 provides RPM 4.4 which fails to verify package signatures. It's
unclear what is the real cause, but all settings we tried were rejected
(v4/v3 signatures, MD5 or SHA1 digests).

So for now, disable package signing entirely for SLES 11.

[#150792874]
2017-09-05 10:02:34 +02:00
Jean-Sébastien Pédron 703081cdc0
Revert "packaging: Force GPG v3 signatures for the SLES 11 RPM package"
Using GPG v3/v4 signatures wasn't the problem. My test was wrong: the
tested package was not signed. So even a GPG v3 signature is refused by
RPM.

In fact, it looks like RPM 4.4 has issues with package signature
verifications. Perhaps related to the SHA1 digest (but using an MD4
digest doesn't solve the problem). The cause is unclear.

Only RPM 4.4 is available on SLES 11. So for now, revert this change.

This reverts commit dc783c737a.
2017-09-05 09:53:52 +02:00
Jean-Sébastien Pédron dc783c737a
packaging: Force GPG v3 signatures for the SLES 11 RPM package
It looks like RPM on SLES 11 fails to handle GPG v4 signatures, even
though it happily signed it:

    # rpm -K -vvv  ./rabbitmq-server-3.7.0~alpha.378-1.sles11.noarch.rpm
    ./rabbitmq-server-3.7.0~alpha.378-1.sles11.noarch.rpm:
        Header V4 RSA/SHA1 signature: BAD, key ID 6026dfca
        Header SHA1 digest: OK (895933d0ba5eca00759ebdfaa0d4e5d156ad0985)
        V4 RSA/SHA1 signature: BAD, key ID 6026dfca
        MD5 digest: OK (422c5b455a0f63055d5cd8701da8064b)

After forcing a GPG v3 signature, the signature check is successful:

    # rpm -v -K ./rabbitmq-server-3.6.12.rc2+1.gf3f347e.dirty-1.sles11.noarch.rpm
    ./rabbitmq-server-3.6.12.rc2+1.gf3f347e.dirty-1.sles11.noarch.rpm:
        Header SHA1 digest: OK (a9235a3ec1f7a893bd1fe2ec20c011542cfe88d4)
        MD5 digest: OK (fd555d5b73180efcb8232f1f0a5a8a61)

[#150792874]

(cherry picked from commit 051f230096)
2017-09-05 00:14:47 +02:00
Jean-Sébastien Pédron 051f230096
packaging: Force GPG v3 signatures for the SLES 11 RPM package
It looks like RPM on SLES 11 fails to handle GPG v4 signatures, even
though it happily signed it:

    # rpm -K -vvv  ./rabbitmq-server-3.7.0~alpha.378-1.sles11.noarch.rpm
    ./rabbitmq-server-3.7.0~alpha.378-1.sles11.noarch.rpm:
        Header V4 RSA/SHA1 signature: BAD, key ID 6026dfca
        Header SHA1 digest: OK (895933d0ba5eca00759ebdfaa0d4e5d156ad0985)
        V4 RSA/SHA1 signature: BAD, key ID 6026dfca
        MD5 digest: OK (422c5b455a0f63055d5cd8701da8064b)

After forcing a GPG v3 signature, the signature check is successful:

    # rpm -v -K ./rabbitmq-server-3.6.12.rc2+1.gf3f347e.dirty-1.sles11.noarch.rpm
    ./rabbitmq-server-3.6.12.rc2+1.gf3f347e.dirty-1.sles11.noarch.rpm:
        Header SHA1 digest: OK (a9235a3ec1f7a893bd1fe2ec20c011542cfe88d4)
        MD5 digest: OK (fd555d5b73180efcb8232f1f0a5a8a61)

[#150792874]
2017-09-05 00:03:41 +02:00
Jean-Sébastien Pédron db554ea736
Merge branch 'stable' 2017-09-01 17:54:55 +02:00
Jean-Sébastien Pédron f3f347e059
packaging: Rename `suse1012` to `sles11`
This matches the distribution name and version we want to target (i.e.
SLES 11). In the future, we might want to also create an SLES 12
package.

Also, enable the new package in the default build. Before this, the
default target (`all`) would call `package-rpm-opensuse`. So
`package-rpm-suse` and `package-rpm-opensuse1012` were unused.

While here, the RPM-specific targets were reworked a bit. Here is the
dependency tree:

    package
    `-- package-rpm
        |-- package-rpm-redhat
	|   |-- package-rpm-rhel6
	|   `-- package-rpm-rhel7
	`-- package-rpm-suse
	    |-- package-rpm-opensuse
	    `-- package-rpm-sles11

For some reason, package-rpm-fedora isn't called at all. I don't know
why, this needs to be investigated.
2017-09-01 17:51:45 +02:00
Michael Klishin b52a5ea144
Merge branch 'stable' 2017-08-29 18:00:31 -06:00
Gabriele Santomaggio a14e38003e Refactor script names 2017-08-29 21:33:21 +02:00
Gabriele Santomaggio 9274b5ab1c Change the packages name 2017-08-29 20:45:41 +02:00
Gabriele Santomaggio c53064dfbe Create two different packages for OpenSuse
Fixes https://github.com/rabbitmq/rabbitmq-server-release/issues/41

1 - support with systemd
2 - no systemd ( for old versions )
2017-08-29 14:08:51 +02:00
Luke Bakken c8b6b74a9c
Fixes for SELinux support
Use /sbin/runuser to execute script as the `rabbitmq` user as this command
does not cause issues with SELinux. See #32 for details.
2017-08-16 20:13:30 -07:00
Michael Klishin 00469eba2f
Merge branch 'stable' 2017-08-16 19:01:01 +03:00
Michael Klishin b2c830a76d Commit package change logs 2017-08-16 13:25:30 +01:00
Michael Klishin 16bedf2021
Merge branch 'stable' 2017-08-11 02:25:09 +03:00
Michael Klishin 268e907b0b Merge pull request #38 from rabbitmq/rabbitmq-server-1324
Configure shortcuts to run as admin.
2017-08-10 20:26:02 +03:00
Jean-Sébastien Pédron 182f773c92
debian/control: Revert the use of ${misc:Depends}
This reverts part of commit 851561953a.

We need to hard-code the dependency on init-system-helpers to support
Ubuntu 14.04.

(cherry picked from commit 12d2edad42)
2017-08-10 15:58:22 +02:00
Jean-Sébastien Pédron 12d2edad42
debian/control: Revert the use of ${misc:Depends}
This reverts part of commit 851561953a.

We need to hard-code the dependency on init-system-helpers to support
Ubuntu 14.04.
2017-08-10 15:57:35 +02:00
Jean-Sébastien Pédron f7641be403
debian/control: Use ${misc:Depends} instead of hard-coding dependencies
... which are added by debhelper. In this case, this is
init-system-helpers which is added by dh-systemd.

While here, bump the standard version to 3.9.6.

(cherry picked from commit 851561953a)
2017-08-10 15:02:01 +02:00
Jean-Sébastien Pédron 851561953a
debian/control: Use ${misc:Depends} instead of hard-coding dependencies
... which are added by debhelper. In this case, this is
init-system-helpers which is added by dh-systemd.

While here, bump the standard version to 3.9.6.
2017-08-10 14:59:10 +02:00
Markos Chandras 2d8de4c093
packaging: rpms: Add systemd support for openSUSE
Recent openSUSE releases have been migrated to systemd so use the
%{suse_version} macro to detect if we are building on openSUSE
so we can include the necessary systemd files and also perform the
needed systemd steps. This also defines the 'suse_version' to 1315
which is what openSUSE Leap 42.x use. This also drops the buggy rhel7
conditional for the sysvinit script and use another 'find' command
instead. The previous condition was wrong since it would also try
to include the sysvinit file on openSUSE and Fedora which do not
define the %rhel macro and as such the 0 < 7 conditional was always
true.

(cherry picked from commit 2211e5fe44)
2017-08-10 13:32:37 +02:00
Daniil Fedotov ea41a1cf6a Configure shortcuts to run as admin.
Shortcuts for `rabbitmq-service.bat` should run as admin
because system control tools require admin.
Also make shortcuts run a command prompt and do not exit if there
is an error, so the error can be seen by an operator.

Part of rabbitmq/rabbitmq-server#1324
[#149953545]
2017-08-08 17:26:27 +01:00
Jean-Sébastien Pédron c02877d6e8
Merge branch 'stable' 2017-08-03 16:42:21 +02:00
Jean-Sébastien Pédron 4ce314b062
packaging: Add scripts for format RabbitMQ version to match package constarints
I.e., for RPM and Debian, converts '-' to '~'.

[#131648373]
2017-08-03 16:39:33 +02:00
Jean-Sébastien Pédron 5c510175bd
packaging/debs/Debian/Makefile: Display Erlang version *after* installing it
In the old release build script, Erlang is already provided. However in
CI, Erlang is installed later in the Makefile recipe. Thus, display its
version only once we are sure Erlang is available.

(cherry picked from commit 5cb41b9434)
2017-08-03 11:23:48 +02:00
Jean-Sébastien Pédron 1195a9d014
packaging: Log the version of Erlang used to compile packages
This should help us diagnose situations where the version of Erlang used
to compile is greater than the minimum supported.

(cherry picked from commit 679518f911)
2017-08-03 11:23:33 +02:00
Jean-Sébastien Pédron 5cb41b9434
packaging/debs/Debian/Makefile: Display Erlang version *after* installing it
In the old release build script, Erlang is already provided. However in
CI, Erlang is installed later in the Makefile recipe. Thus, display its
version only once we are sure Erlang is available.
2017-08-03 11:13:49 +02:00
Jean-Sébastien Pédron 679518f911
packaging: Log the version of Erlang used to compile packages
This should help us diagnose situations where the version of Erlang used
to compile is greater than the minimum supported.
2017-08-03 10:42:47 +02:00
Jean-Sébastien Pédron d75d92ccd5
Merge branch 'stable' 2017-08-03 09:31:09 +02:00
Jean-Sébastien Pédron 3dc09be6a2
packaging/debs/apt-repository/distributions: Add `arm64` architecture 2017-08-03 09:29:43 +02:00
Jean-Sébastien Pédron 77f34b8897
packaging: Bump build/runtime requirement to Erlang 19.2
... for both Debian and RPM packages.

[#149744525]
2017-08-02 15:13:09 +02:00
Jean-Sébastien Pédron 4d777d2138
Merge branch 'stable' 2017-07-31 18:33:57 +02:00
Jean-Sébastien Pédron 2f50f82bf5
packaging/*/rabbitmq-server.service: Wait for RabbitMQ to stop in ExecStop
systemd considers that, when the ExecStop commands exit, the service is
stopped. If there are remaining processes in the cgroup, they are
killed.

Unfortunately, `rabbitmqctl stop` doesn't wait for the Erlang VM to
exit, it just notifies RabbitMQ to stop. Because it doesn't wait,
systemd kills other processes such as `erl_child_setup`. When this
happens, the Erlang VM crashes (because it can't reach `erl_child_setup`
anymore) and the service enters the failed state in systemd. Note the
"erl_child_setup closed" message in the following output:

    [root@ip-172-31-29-47 package-testing]# systemctl status rabbitmq-server
    ● rabbitmq-server.service - RabbitMQ broker
       Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Mon 2017-07-31 14:54:42 UTC; 1s ago
      Process: 26763 ExecStop=/usr/sbin/rabbitmqctl stop (code=exited, status=0/SUCCESS)
      Process: 26398 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=1/FAILURE)
     Main PID: 26398 (code=exited, status=1/FAILURE)
       Status: "Initialized"

    Jul 31 14:54:30 ip-172-31-29-47 rabbitmq-server[26398]: completed with 0 plugins.
    Jul 31 14:54:40 ip-172-31-29-47 systemd[1]: Stopping RabbitMQ broker...
    Jul 31 14:54:41 ip-172-31-29-47 rabbitmqctl[26763]: Stopping and halting node 'rabbit@ip-172-31-29-47'
    Jul 31 14:54:41 ip-172-31-29-47 rabbitmq-server[26398]: Gracefully halting Erlang VM
    Jul 31 14:54:41 ip-172-31-29-47 rabbitmq-server[26398]: erl_child_setup closed
    Jul 31 14:54:42 ip-172-31-29-47 rabbitmq-server[26398]: Crash dump is being written to: erl_crash.dump...done
    Jul 31 14:54:42 ip-172-31-29-47 systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
    Jul 31 14:54:42 ip-172-31-29-47 systemd[1]: Stopped RabbitMQ broker.
    Jul 31 14:54:42 ip-172-31-29-47 systemd[1]: Unit rabbitmq-server.service entered failed state.
    Jul 31 14:54:42 ip-172-31-29-47 systemd[1]: rabbitmq-server.service failed.

Now, we add a second ExecStop which simply waits for the Erlang VM PID
to disappear. This looks to fix the issue.

[#149807109]
2017-07-31 18:33:38 +02:00
Jean-Sébastien Pédron 6cd251c19a
debian/control: Depend on erlang-dev and elixir
erlang-dev was missing (but present in `stable` branch), so probably a
mismerge.

elixir was missing and we require it for RabbitMQ 3.7.x.

[#131645781]
2017-07-19 15:04:07 +02:00
Jean-Sébastien Pédron 95132fa0a7
Merge branch 'stable' 2017-07-19 14:56:22 +02:00
Jean-Sébastien Pédron 18263db71c
debian/control: Depend on erlang-src
We need a private header in `lib/ssl-*/src`.
2017-07-19 14:40:03 +02:00
Jean-Sébastien Pédron 44f2dddc83
debian/control: Try with erlang-nox 1:16.b.3-3
The erlang-* 1:16.b.3 packages family (note the absence of the package
revision) was only partially uploaded to the Erlang Solutions Debian
repository... For instance, we have erlang-nox 1:16.b.3 and 1:16.b.3-3,
but only erlang-base 1:16.b.3-3 :-/

[#131645781]
2017-07-19 14:27:29 +02:00
Jean-Sébastien Pédron 249fb6d1f6
debian/control: Add version restriction on erlang-dev and esl-erlang 2017-07-19 13:51:56 +02:00
Jean-Sébastien Pédron f466ed75e2
packaging/debs/Debian/Makefile: Install build dependencies
We use mk-build-deps(1) from the `devscripts` package to help us with
this. This helper script looks at `debian/control` and creates a
meta-package which depends on the build dependencies. Then we only have to
install it to get those dependencies.

We only do this if `$(INSTALL_BUILD_DEPS)` is set to `yes`. We want to
use this feature in CI, but not with the old build script where we cheat
a lot around Erlang and Elixir packages.

[#131645781]
2017-07-19 10:56:16 +02:00
Jean-Sébastien Pédron 838e365c75
packaging/debs/Debian/Makefile: Use cp(1) instead of rsync(1)
We don't need the full power of rsync(1) here and this removes a
dependency on a possibly non-default package.
2017-07-19 10:54:55 +02:00
Markos Chandras 2211e5fe44 packaging: rpms: Add systemd support for openSUSE
Recent openSUSE releases have been migrated to systemd so use the
%{suse_version} macro to detect if we are building on openSUSE
so we can include the necessary systemd files and also perform the
needed systemd steps. This also defines the 'suse_version' to 1315
which is what openSUSE Leap 42.x use. This also drops the buggy rhel7
conditional for the sysvinit script and use another 'find' command
instead. The previous condition was wrong since it would also try
to include the sysvinit file on openSUSE and Fedora which do not
define the %rhel macro and as such the 0 < 7 conditional was always
true.
2017-06-29 16:12:23 +01:00
Jean-Sébastien Pédron cf0d1f4ba5
Merge branch 'stable' 2017-06-26 13:01:41 +02:00
Gabriele Santomaggio 5df0873777 Change to 2750 2017-06-23 12:27:08 +02:00
Gabriele Santomaggio ada3834633 Add chmod g+s to rpm spec 2017-06-22 14:44:45 +02:00
Gabriele Santomaggio fecde3e918 Add chmod g+s to /etc/rabbitmq 2017-06-22 08:54:38 +02:00
Michael Klishin 64ce04298e
Merge branch 'stable' 2017-05-26 17:29:11 +03:00
Michael Klishin 62513438d9 Commit .deb and .rpm change logs 2017-05-25 12:57:46 +01:00
Michael Klishin c8ed53f6ed
Update man page filenames 2017-05-10 04:02:25 +03:00
Michael Klishin 63a423c83e
Merge branch 'stable' 2017-04-12 13:23:47 +03:00
Michael Klishin 46ffbfa350 Commit 3.6.9 package change logs 2017-04-12 10:30:09 +01:00
Jean-Sébastien Pédron 055164bc24
Merge branch 'stable' 2017-03-28 18:02:54 +02:00
Jean-Sébastien Pédron bd14baae96
packaging/windows: Try to compute a valid default `PRODUCTVERSION`
The `PRODUCTVERSION` must be four integers. So try to replace
everything following the first three integers in the the
semver-formatted `$(VERSION)` by `.0`. For instance if `$(VERSION)` is
`3.6.8+1.g1dcb221`, `PRODUCTVERSION` will be set to `3.6.8.0`.

This should make Windows installer builds successful out-of-the-box.

This is still possible to override this behavior by setting the
`$(PRODUCT_VERSION)` Make variable.

[#142391637]
2017-03-28 11:45:58 +02:00
Jean-Sébastien Pédron 106f94a8c1
packaging/debian: Fix Erlang dependency at runtime
The package already depended on Erlang 18.3 at build time, but not at
runtime (where Erlang R16B03 was still advertised).
2017-03-21 16:02:58 +01:00
Michael Klishin a6c5f1479e
Merge branch 'stable' 2017-03-17 19:11:37 +03:00