Compare commits

...

15 Commits

Author SHA1 Message Date
Hagit Segev
9c09791bb1 release: prepare for 4.2.4 2021-03-02 14:52:48 +02:00
Hagit Segev
e351b009da release: prepare for 4.2.3 2021-01-04 19:51:30 +02:00
Pekka Enberg
8eccf5b2dd Merge "Fix JMX startup after offline installation" from Amos
"Currently after offline installation, the scylla-jmx fails to start.
 This pull request fixes issues with openjdk version detection and
 working directory configuration to make scylla-jmx start.

 Fixes: scylladb/scylla#7098 by [PATCH] install.sh: check both openjdk-8 and openjdk-11

 Fixes: #129 by [PATCH] nonroot.conf: set WorkingDirectory to empty"

Reviewed-by: Takuya ASADA <syuu@scylladb.com>
* 'openjdk' of git://github.com/amoskong/scylla-jmx:
  install.sh: check both openjdk-8 and openjdk-11
  nonroot.conf: set WorkingDirectory to empty

(cherry picked from commit 12ab6aaeb8)
2020-12-15 17:36:58 +02:00
Hagit Segev
317ae5773d release: prepare for 4.2.2 2020-12-13 20:34:25 +02:00
Yaron Kaikov
034df703c2 release: prepare for 4.2.1 2020-11-08 12:41:23 +02:00
Yaron Kaikov
7c1bad7bf6 release: prepare for 4.2.0 2020-10-25 09:12:58 +02:00
Hagit Segev
e9bac53971 release: prepare for 4.2.rc5 2020-09-30 20:41:00 +03:00
Yaron Kaikov
ade4edaa20 dist/debian: Remove conflict tag for Java 11
We current require Java 8 to install the scylla-jmx package on Debian.
As Debian 10 defaults to Java 11, let's remove the conflict flag and add
Java 11 to the dependencies list.

Refs: scylladb/scylla#7207
(cherry picked from commit d5d1efd188)
2020-09-10 12:18:37 +03:00
Yaron Kaikov
6604a0b476 release: prepare for 4.2.rc4 2020-09-07 14:56:50 +03:00
Hagit Segev
f391c3381a release: prepare for 4.2.rc3 2020-08-19 14:39:25 +03:00
Yaron Kaikov
01614cef70 release: prepare for 4.2.rc2 2020-08-03 16:50:55 +03:00
Avi Kivity
b0340c03a7 dist: debian: do not require root during package build
Debian package builds provide a root environment for the installation
scripts, since that's what typical installation scripts expect. To
avoid providing actual root, a "fakeroot" system is used where syscalls
are intercepted and any effect that requires root (like chown) is emulated.

However, fakeroot sporadically fails for us, aborting the package build.
Since our install scripts don't really require root (when operating in
the --packaging mode), we can just tell dpkg-buildpackage that we don't
need fakeroot. This ought to fix the sporadic failures.

As a side effect, package builds are faster.

Follows scylla.git's b608af870b0a1ad88b91a72bddeff0c321877f9e.

Refs scylladb/scylla#6655.

(cherry picked from commit 626fd75173)
2020-07-30 16:43:31 +03:00
Hagit Segev
56e79713c7 release: prepare for 4.2.rc1 2020-07-08 23:01:27 +03:00
Takuya ASADA
5cb031fc03 dist/debian: apply generated package version for .orig.tar.gz file
Same as scylladb/scylla#6752,
we currently does not able to apply version number fixup for .orig.tar.gz file,
even we applied correct fixup on debian/changelog, becuase it just reading
SCYLLA-VERSION-FILE.
We should parse debian/{changelog,control} instead.

Fixes #120

(cherry picked from commit 5820992a8e)
2020-07-06 19:09:58 +03:00
Hagit Segev
77d6f5e3e7 release: prepare for 4.2.rc0 2020-06-26 13:06:23 +03:00
4 changed files with 13 additions and 12 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
PRODUCT=scylla
VERSION=666.development
VERSION=4.2.4
if test -f version
then

View File

@ -89,12 +89,12 @@ if [ "$ID" = "debian" ] && [ ! -f /usr/share/keyrings/ubuntu-archive-keyring.gpg
sudo apt-get install -y ubuntu-archive-keyring
fi
RELOC_PKG_FULLPATH=$(readlink -f $RELOC_PKG)
RELOC_PKG_BASENAME=$(basename $RELOC_PKG)
SCYLLA_VERSION=$(cat scylla-jmx/SCYLLA-VERSION-FILE)
SCYLLA_RELEASE=$(cat scylla-jmx/SCYLLA-RELEASE-FILE)
RELOC_PKG=$(readlink -f $RELOC_PKG)
ln -fv $RELOC_PKG_FULLPATH ../$PRODUCT-jmx_$SCYLLA_VERSION-$SCYLLA_RELEASE.orig.tar.gz
cp -al scylla-jmx/debian debian
mv scylla-jmx/debian debian
PKG_NAME=$(dpkg-parsechangelog --show-field Source)
# XXX: Drop revision number from version string.
# Since it always '1', this should be okay for now.
PKG_VERSION=$(dpkg-parsechangelog --show-field Version |sed -e 's/-1$//')
ln -fv $RELOC_PKG ../"$PKG_NAME"_"$PKG_VERSION".orig.tar.gz
debuild -rfakeroot -us -uc

View File

@ -4,11 +4,11 @@ Homepage: http://scylladb.com
Section: database
Priority: optional
Standards-Version: 3.9.5
Rules-Requires-Root: no
Package: %{product}-jmx
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, openjdk-8-jre-headless | openjdk-8-jre | oracle-java8-set-default | adoptopenjdk-8-hotspot-jre, %{product}-server
Conflicts: openjdk-11-jre-headless, openjdk-11-jre, oracle-java11-set-default
Depends: ${shlibs:Depends}, ${misc:Depends}, openjdk-8-jre-headless | openjdk-8-jre | oracle-java8-set-default | adoptopenjdk-8-hotspot-jre | openjdk-11-jre-headless | openjdk-11-jre |oracle-java11-set-default , %{product}-server
Description: Scylla JMX server binaries
Scylla is a highly scalable, eventually consistent, distributed,
partitioned row DB.

View File

@ -78,12 +78,12 @@ if ! $packaging; then
has_java=false
if [ -x /usr/bin/java ]; then
javaver=$(/usr/bin/java -version 2>&1|head -n1|cut -f 3 -d " ")
if [[ "$javaver" =~ ^\"1.8.0 ]]; then
if [[ "$javaver" =~ ^\"1.8.0 || "$javaver" =~ ^\"11.0. ]]; then
has_java=true
fi
fi
if ! $has_java; then
echo "Please install openjdk-8 before running install.sh."
echo "Please install openjdk-8 or openjdk-11 before running install.sh."
exit 1
fi
fi
@ -133,6 +133,7 @@ ExecStart=
ExecStart=$rprefix/jmx/scylla-jmx \$SCYLLA_JMX_PORT \$SCYLLA_API_PORT \$SCYLLA_API_ADDR \$SCYLLA_JMX_ADDR \$SCYLLA_JMX_FILE \$SCYLLA_JMX_LOCAL \$SCYLLA_JMX_REMOTE \$SCYLLA_JMX_DEBUG
User=
Group=
WorkingDirectory=
EOS
if [ ! -d ~/.config/systemd/user/scylla-jmx.service.d ]; then
mkdir -p ~/.config/systemd/user/scylla-jmx.service.d