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