On Scylla 3rdparty tools, we add /opt/scylladb/lib to LD_LIBRARY_PATH. We use same directory for relocatable binaries, including libc.so.6. Once we install both scylla-env package and relocatable version of scylla-server package, the loader tries to load libc from /opt/scylladb/lib then entire distribution become unusable. We may able to use Obsoletes or Conflict tag on .rpm/.deb to avoid install new Scylla package with scylla-env, but it's better & safer not to share same directory for different purpose. Fixes #3943 Signed-off-by: Takuya ASADA <syuu@scylladb.com> Message-Id: <20190128023757.25676-1-syuu@scylladb.com>
45 lines
1.1 KiB
Plaintext
Executable File
45 lines
1.1 KiB
Plaintext
Executable File
#!/usr/bin/make -f
|
|
|
|
export PYBUILD_DISABLE=1
|
|
jobs := $(shell echo $$DEB_BUILD_OPTIONS | sed -r "s/.*parallel=([0-9]+).*/-j\1/")
|
|
|
|
override_dh_auto_configure:
|
|
|
|
override_dh_auto_build:
|
|
|
|
override_dh_auto_clean:
|
|
|
|
override_dh_auto_install:
|
|
dh_auto_install
|
|
install -d $(CURDIR)/debian/scylla-server/usr/bin
|
|
ln -sf /opt/scylladb/bin/scylla $(CURDIR)/debian/scylla-server/usr/bin/scylla
|
|
ln -sf /opt/scylladb/bin/iotune $(CURDIR)/debian/scylla-server/usr/bin/iotune
|
|
|
|
override_dh_installinit:
|
|
{{#scylla}}
|
|
dh_installinit --no-start
|
|
{{/scylla}}
|
|
{{^scylla}}
|
|
dh_installinit --no-start --name scylla-server
|
|
{{/scylla}}
|
|
dh_installinit --no-start --name scylla-housekeeping-daily
|
|
dh_installinit --no-start --name scylla-housekeeping-restart
|
|
dh_installinit --no-start --name scylla-fstrim
|
|
dh_installinit --no-start --name node-exporter
|
|
|
|
override_dh_strip:
|
|
dh_strip -Xlibprotobuf.so.15 --dbg-package={{product}}-server-dbg
|
|
|
|
override_dh_makeshlibs:
|
|
|
|
override_dh_shlibdeps:
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms
|
|
chmod 755 $(CURDIR)/debian/{{product}}-server/opt/scylladb/libreloc/ld.so
|
|
|
|
override_dh_strip_nondeterminism:
|
|
|
|
%:
|
|
dh $@
|