Problems:
--------
$ make rpms
[...]
warning: bogus date in %changelog: Sun Apr 3 2019
error: %changelog not in descending chronological order
make: *** [rpms] Error 1
/usr/bin/install -c -m 644 gluster-block.logrotate \
/data/gluster-block/build/rpmbuild/BUILDROOT/gluster-block-0.3-1.x86_64/etc/logrotate.d/gluster-block;
/usr/bin/install: cannot stat 'gluster-block.logrotate': No such file or directory
Solution:
--------
Correct the date in the changelog and update the date to when the
PR is merged.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Usually, the daemon creates the log directory.
But when it fails to start, and the log directory
has not been pre-created, then the client will
segfault instead of logging useful errors.
Change-Id: I55b5c9fcd2a9a97dba47e87a826606d48f8ac8bd
Signed-off-by: Michael Adam <obnox@redhat.com>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This patch:
* install wait-for-bricks.sh (source install and rpm install)
* change install path of gluster-block-caps.info
* increase the systemd unit start timeout from default(1min 30sec) to 10min
depends on #98
Tested-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Problem
gluster-blockd supports systemd officially but many legacy distros
want to use initd
Resolve
includes initd scripts for non-systemd distros
Change-Id: I8495e8d9abbef6d26ac7dc8dbbe6d07e7713f537
Signed-off-by: Ji-Hyeon Gim <potatogim@gluesys.com>
While looking into packaging gluster-block for Fedora, I noticed that
'git' is used to determine the version. The downloads from GitHub are
not archives that have been created with 'make dist', and hence
./autogen.sh is still needed to be run.
./autogen.sh generates all the needed bits, including the ./configure
script that tries to figure out the version. If ./configure runs in a
non-git directory, no version can be found.
In order to solve this, I'm adding a VERSION file in the root of the
project. If this file exists, it is used to fetch the version, instead
of trying to run git. The basic usage for RPM packaging in distributions
can then be:
echo %{version} > VERSION
./autogen.sh
%configure
Note that the VERSION file is not needed for building from a git
repository. However, this file can get packaged in the 'make dist'
tarball so that building from the tarball does not require git.
Change-Id: Ied378c7071ee4a108a1e946dccbb7f223b7aeb9f
Updates: #25
Signed-off-by: Niels de Vos <ndevos@redhat.com>
In case ./configure detects that the environment is using systemd, the
"make install" step will copy the gluster-block.service file to the
right location. However, the RPMs do not include this file by default,
so adding a "--with systemd" to rpmbuild/mock is needed (until there is
some form of auto-detection in the .spec).
Change-Id: Id64fa664f5b2a3d3c4675b2ad7a54d415a54281a
Signed-off-by: Niels de Vos <ndevos@redhat.com>
There is no need to copy all the files everywhere, this can be
controlled with --define options to rpmbuild.
Also add a "make srpm" target for building the source RPM that can then
be built with 'mock' or uploaded to build systems from different
distributions.
Change-Id: Ib66bfe9b981fd9bf12f997d416ff3b9f53da90d8
Signed-off-by: Niels de Vos <ndevos@redhat.com>
- tcmu-runner and targetcli are not build dependencies
- use pkg-config to get libgfapi build parameters
- cleanup .spec file
Change-Id: Ib1451f7a375438cd2e78ae4137d1d02e01516fbd
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Till now we had simple makefile for checking dependencies and building.
Using libtoolz will give more control on dependency checks and
flexibility.
This patch also introduce rpm build feature.
Compiling:
$ ./autogen.sh
$ ./configure
$ make -j
$ make install
Building RPMS:
$ make rpms
Running:
$ systemctl start gluster-blockd.service
Using CLI:
$ gluster-block help
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>