Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi, Installing drbd-utils into CentOS 7 system fails. [root at drbd0 ~]# git clone git://git.drbd.org/drbd-utils.git [root at drbd0 ~]# cd drbd-utils [root at drbd0 drbd-utils]# ./autogen.sh [root at drbd0 drbd-utils]# ./configure [root at drbd0 drbd-utils]# gmake tarball rpm [root at drbd0 drbd-utils]# rpm -ivh /root/rpmbuild/RPMS/x86_64/drbd-utils-8.9.4-1.el7.centos.x86_64.rpm Preparing... ################################# [100%] file /usr/sbin/drbdadm conflicts between attempted installs of drbd-utils-8.9.4-1.el7.centos.x86_64 and drbd-utils-8.9.4-1.el7.centos.x86_64 file /usr/sbin/drbdmeta conflicts between attempted installs of drbd-utils-8.9.4-1.el7.centos.x86_64 and drbd-utils-8.9.4-1.el7.centos.x86_64 file /usr/sbin/drbdsetup conflicts between attempted installs of drbd-utils-8.9.4-1.el7.centos.x86_64 and drbd-utils-8.9.4-1.el7.centos.x86_64 the modifing spec file as below slove the problem. [root at drbd0 drbd-utils]# git diff diff --git a/configure.ac b/configure.ac index c9012d4..6a83655 100644 --- a/configure.ac +++ b/configure.ac @@ -265,7 +265,7 @@ case "$DISTRO" in dnl Fedora/Red Hat packaging guidelines mandate that packages dnl belonging to the "minimal build system" should not be dnl listed in BuildRequires - RPM_BUILDREQ_DEFAULT="flex" + RPM_BUILDREQ_DEFAULT="flex libxslt" RPM_REQ_CHKCONFIG_POST="Requires(post): chkconfig" RPM_REQ_CHKCONFIG_PREUN="Requires(preun): chkconfig" AC_MSG_NOTICE([configured for Red Hat (includes Fedora, RHEL, CentOS).]) diff --git a/drbd.spec.in b/drbd.spec.in index 3f97463..547743d 100644 --- a/drbd.spec.in +++ b/drbd.spec.in @@ -31,6 +31,9 @@ # conditionals may not contain "-" nor "_", hence "bashcompletion" %bcond_without bashcompletion %bcond_without sbinsymlinks +%if %{rhel} == 7 +%undefine with_sbinsymlinks +%endif # --with xen is ignored on any non-x86 architecture %bcond_without xen %bcond_without 83support Regards -- Hiroshi Fujishima