|
|
233933 |
From f25a92028ecc2018953a6375bba43a21d3a93566 Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
233933 |
Date: Thu, 4 Apr 2019 16:18:51 +0530
|
|
|
233933 |
Subject: [PATCH 42/52] spec: (client|server) Builds are failing on rhel-6
|
|
|
233933 |
|
|
|
233933 |
Problem: 1) For sever-rpm gluster build is throwing an error
|
|
|
233933 |
undefined reference to `dlcose` on RHEL 6
|
|
|
233933 |
2) For server-rpm build is throwing reference for
|
|
|
233933 |
For Not found for rot-13.so and symlink-cache.so
|
|
|
233933 |
3) For client-rpms build is throwing an error
|
|
|
233933 |
File Not found for all files with exclude
|
|
|
233933 |
file in without_server check
|
|
|
233933 |
|
|
|
233933 |
Solution: 1) For server-rpm add LIB_DL link in Makefile
|
|
|
233933 |
and remove reference for rot.so and symlink-cache.so
|
|
|
233933 |
from glusterfs.spec.in
|
|
|
233933 |
2) Remove exclude files list as they are not
|
|
|
233933 |
being build
|
|
|
233933 |
|
|
|
233933 |
Label: DOWNSTREAM ONLY
|
|
|
233933 |
Change-Id: I2b41604cbc8525b91231b0c5caee588c5d5d6b08
|
|
|
233933 |
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/166962
|
|
|
233933 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
233933 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
glusterfs.spec.in | 54 -----------------------------------
|
|
|
233933 |
xlators/mgmt/glusterd/src/Makefile.am | 2 +-
|
|
|
233933 |
2 files changed, 1 insertion(+), 55 deletions(-)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
|
|
233933 |
index df8d116..7c7f7c0 100644
|
|
|
233933 |
--- a/glusterfs.spec.in
|
|
|
233933 |
+++ b/glusterfs.spec.in
|
|
|
233933 |
@@ -1097,72 +1097,18 @@ exit 0
|
|
|
233933 |
%{_tmpfilesdir}/gluster.conf
|
|
|
233933 |
%endif
|
|
|
233933 |
%if ( 0%{?_without_extra_xlators:1} )
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/encryption/rot-13.so
|
|
|
233933 |
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quiesce.so
|
|
|
233933 |
%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/playground/template.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/testing/performance/symlink-cache.so
|
|
|
233933 |
%endif
|
|
|
233933 |
%if ( 0%{?_without_regression_tests:1} )
|
|
|
233933 |
%exclude %{_datadir}/glusterfs/run-tests.sh
|
|
|
233933 |
%exclude %{_datadir}/glusterfs/tests
|
|
|
233933 |
%endif
|
|
|
233933 |
%if 0%{?_without_server:1}
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/gluster-rsyslog-5.8.conf
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/gluster-rsyslog-7.2.conf
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/glusterd.vol
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/glusterfs-georep-logrotate
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/glusterfs-logrotate
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/group-db-workload
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/group-distributed-virt
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/group-gluster-block
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/group-metadata-cache
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/group-nl-cache
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/group-virt.example
|
|
|
233933 |
-%exclude %{_sysconfdir}/glusterfs/logger.conf.example
|
|
|
233933 |
-%exclude %{_sysconfdir}/rsyslog.d/gluster.conf.example
|
|
|
233933 |
-%exclude %{_prefix}/bin/glusterfind
|
|
|
233933 |
-%exclude %{_prefix}/lib/firewalld/services/glusterfs.xml
|
|
|
233933 |
-%exclude %{_prefix}/lib/systemd/system/glusterd.service
|
|
|
233933 |
-%exclude %{_prefix}/lib/systemd/system/glusterfssharedstorage.service
|
|
|
233933 |
-%exclude %{_prefix}/lib/tmpfiles.d/gluster.conf
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/arbiter.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bit-rot.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/bitrot-stub.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/index.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/leases.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/locks.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/marker.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/posix-locks.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quota.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/quotad.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/sdfs.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/selinux.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/snapview-server.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/thin-arbiter.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/trash.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/upcall.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mgmt/glusterd.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/performance/decompounder.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/protocol/server.so
|
|
|
233933 |
-%exclude %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/storage/posix.so
|
|
|
233933 |
-%exclude %{_libexecdir}/glusterfs/*
|
|
|
233933 |
-%exclude %{_sbindir}/conf.py
|
|
|
233933 |
-%exclude %{_sbindir}/gcron.py
|
|
|
233933 |
-%exclude %{_sbindir}/gf_attach
|
|
|
233933 |
-%exclude %{_sbindir}/gfind_missing_files
|
|
|
233933 |
-%exclude %{_sbindir}/glfsheal
|
|
|
233933 |
-%exclude %{_sbindir}/gluster
|
|
|
233933 |
-%exclude %{_sbindir}/gluster-setgfid2path
|
|
|
233933 |
-%exclude %{_sbindir}/glusterd
|
|
|
233933 |
-%exclude %{_sbindir}/snap_scheduler.py
|
|
|
233933 |
%if ( 0%{?_with_systemd:1} )
|
|
|
233933 |
%exclude %{_datadir}/glusterfs/scripts/control-cpu-load.sh
|
|
|
233933 |
%exclude %{_datadir}/glusterfs/scripts/control-mem.sh
|
|
|
233933 |
%endif
|
|
|
233933 |
-%exclude %{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
|
|
|
233933 |
-%exclude %{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh
|
|
|
233933 |
-%exclude %{_datadir}/glusterfs/scripts/stop-all-gluster-processes.sh
|
|
|
233933 |
-%exclude %{_sharedstatedir}/glusterd/*
|
|
|
233933 |
%endif
|
|
|
233933 |
|
|
|
233933 |
%files api
|
|
|
233933 |
diff --git a/xlators/mgmt/glusterd/src/Makefile.am b/xlators/mgmt/glusterd/src/Makefile.am
|
|
|
233933 |
index 6d09e37..c8dd8e3 100644
|
|
|
233933 |
--- a/xlators/mgmt/glusterd/src/Makefile.am
|
|
|
233933 |
+++ b/xlators/mgmt/glusterd/src/Makefile.am
|
|
|
233933 |
@@ -6,7 +6,7 @@ xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/mgmt
|
|
|
233933 |
glusterd_la_CPPFLAGS = $(AM_CPPFLAGS) \
|
|
|
233933 |
-DFILTERDIR=\"$(libdir)/glusterfs/$(PACKAGE_VERSION)/filter\" \
|
|
|
233933 |
-DXLATORDIR=\"$(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator\"
|
|
|
233933 |
-glusterd_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
|
|
|
233933 |
+glusterd_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS) $(LIB_DL)
|
|
|
233933 |
glusterd_la_SOURCES = glusterd.c glusterd-handler.c glusterd-sm.c \
|
|
|
233933 |
glusterd-op-sm.c glusterd-utils.c glusterd-rpc-ops.c \
|
|
|
233933 |
glusterd-store.c glusterd-handshake.c glusterd-pmap.c \
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|