Project

General

Profile

Actions

Bug #14844

closed

rpm package building fails if the build machine has lttng and babeltrace development packages installed locally

Added by runsisi hust about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
hammer, infernalis
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

OS:

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.2.1511 (Core) 
Release:        7.2.1511
Codename:       Core

with lttng and babeltrace development packages installed:
[runsisi@hust ~]$ rpm -qa | grep lttng
lttng-ust-2.7.1-1.el7.x86_64
lttng-ust-devel-2.7.1-1.el7.x86_64
[runsisi@hust ~]$ rpm -qa | grep babeltrace
babeltrace-devel-1.3.1-1.el7.x86_64
babeltrace-1.3.1-1.el7.x86_64

when building the latest rpm package for ceph, i.e. 10.0.2 from tarball or the latest git version, following errors occurrs:
error: Installed (but unpackaged) file(s) found:
   /usr/bin/rbd-replay-prep
   /usr/lib64/libos_tp.so
   /usr/lib64/libos_tp.so.1
   /usr/lib64/libos_tp.so.1.0.0
   /usr/lib64/libosd_tp.so
   /usr/lib64/libosd_tp.so.1
   /usr/lib64/libosd_tp.so.1.0.0
   /usr/lib64/librados_tp.so
   /usr/lib64/librados_tp.so.2
   /usr/lib64/librados_tp.so.2.0.0
   /usr/lib64/librbd_tp.so
   /usr/lib64/librbd_tp.so.1
   /usr/lib64/librbd_tp.so.1.0.0

RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/bin/rbd-replay-prep
   /usr/lib64/libos_tp.so
   /usr/lib64/libos_tp.so.1
   /usr/lib64/libos_tp.so.1.0.0
   /usr/lib64/libosd_tp.so
   /usr/lib64/libosd_tp.so.1
   /usr/lib64/libosd_tp.so.1.0.0
   /usr/lib64/librados_tp.so
   /usr/lib64/librados_tp.so.2
   /usr/lib64/librados_tp.so.2.0.0
   /usr/lib64/librbd_tp.so
   /usr/lib64/librbd_tp.so.1
   /usr/lib64/librbd_tp.so.1.0.0

the ceph.spec.in only enables lttng/babeltrace for RHEL/CentOS 6:

%if 0%{?fedora} || 0%{?rhel} == 6 || 0%{?suse_version} == 1315
%global _with_lttng 1
%endif

while the configure.ac auto enables lttng/babeltrace if it detects:
AS_IF([test "x$with_lttng" = "xno"], [use_lttng=no],
      [test "x$with_lttng" = "xyes"], [use_lttng=yes],
      [test "x$have_good_lttng_gen_tp" = "xyes"], [use_lttng=yes; AC_MSG_NOTICE([lttng auto-enabled])],
      [use_lttng=no; AC_MSG_NOTICE([lttng auto-disabled])])
AM_CONDITIONAL([WITH_LTTNG], test x"$use_lttng" = x"yes")

and
AS_IF([test "x$with_babeltrace" = "xno"], [use_babeltrace=no],
      [test "x$with_babeltrace" = "xyes"], [use_babeltrace=yes],
      [test "x$ac_cv_header_babeltrace_ctf_events_h$ac_cv_header_babeltrace_babeltrace_h$have_good_babeltrace" = "xyesyesyes"], [use_babeltrace=yes; AC_MSG_NOTICE([babeltrace auto-enabled])],
      [use_babeltrace=no; AC_MSG_NOTICE([babeltrace auto-disabled])])
AM_CONDITIONAL([WITH_BABELTRACE], test x"$use_babeltrace" = x"yes")

so, we should either disable the auto enabled lttng/babeltrace detection or build with-lttng on RHEL/CentOS 7


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #15382: hammer: rpm package building fails if the build machine has lttng and babeltrace development packages installed locallyResolvedLoïc DacharyActions
Copied to Ceph - Backport #15498: infernalis: rpm package building fails if the build machine has lttng and babeltrace development packages installed locallyResolvedActions
Actions

Also available in: Atom PDF