Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Known issue: RPM package #100

Open
Leo-Yan opened this issue Jul 10, 2020 · 0 comments
Open

Known issue: RPM package #100

Leo-Yan opened this issue Jul 10, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Leo-Yan
Copy link
Contributor

Leo-Yan commented Jul 10, 2020

Need to prepare PRM package for automatic installation.

Did a brief investigation for LVM2, since LVM2 contains RPM spec file, which is used as RPM building configurations. So I can build LVM2 rpm packages successfully now. But found we need to establish dependency between LVM2's RPM and Seagate IDM lock manager's RPM.

TODO list:

  • Write IDM lock manager RPM spec and build RPM package; (1 day)
  • Resolve the dependency between LVM2 and IDM RPM package. (0.5 day)

The estimated workload is 1.5 days to 2 day for RP package.

Early trying changes for LVM2 spec:

diff --git a/spec/build.inc b/spec/build.inc
index d91c981..495c02d 100644
--- a/spec/build.inc
+++ b/spec/build.inc
@@ -29,6 +29,7 @@
 %if %{enable_lvmlockd}
 %enableif %{enable_lvmlockd_dlm} lvmlockd-dlm
 %enableif %{enable_lvmlockd_sanlock} lvmlockd-sanlock       
+%enableif %{enable_lvmlockd_idm} lvmlockd-idm
 %endif
 %enableif %{enable_python} python2-bindings
 %enableif %{enable_python3} python3-bindings
diff --git a/spec/packages.inc b/spec/packages.inc
index 14fc02c..42571bf 100644
--- a/spec/packages.inc
+++ b/spec/packages.inc
@@ -283,6 +283,9 @@ Requires: dlm-lib >= %{dlm_version}      
 %if %{enable_lvmlockd_sanlock}
 Requires: sanlock-lib >= %{sanlock_version}
 %endif
+%if %{enable_lvmlockd_idm}
+Requires: idm-lib >= %{idm_version}
+%endif
 Requires(post): systemd-units
 Requires(preun): systemd-units
 Requires(postun): systemd-units
diff --git a/spec/source.inc b/spec/source.inc
index 96c37f1..7592b56 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -18,6 +18,7 @@
 %global enable_dmfilemapd 0
 #%global enable_lvmlockd_dlm 0
 #%global enable_lvmlockd_sanlock 0
+#%global enable_lvmlockd_dlm 0

 %if %{enable_udev}
 %service lvmetad 1
@@ -54,6 +55,7 @@
  %global sanlock_version 3.3.0-1
  %global enable_lvmlockd_dlm 1
  %global enable_lvmlockd_sanlock 1
+ %global enable_lvmlockd_idm 1
  %if %{rhel}
   %ifarch i686 x86_64 s390x
    %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}

Will be decided by Tom/Daniel when is good to work on this.

Updated notes: We should estimate the workload for other distros based on later's requirement, e.g. SUSE, Debian, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants