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 #1

Updated by xie xingguo about 8 years ago

  • Assignee set to Kefu Chai

@Kefu Chai Chai
Would you mind having a look at this?

Actions #2

Updated by Kefu Chai about 8 years ago

  • Status changed from New to Fix Under Review
  • Priority changed from Normal to Low
Actions #3

Updated by Ken Dreyer about 8 years ago

I'd really like to get lttng and babeltrace into EPEL 7. This bug prompted me to go ahead and do builds for that.

babeltrace: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-8c74b0b27f
lttng-ust: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-200bd827c6

It's going to take a couple weeks for the packages to go through the epel-testing process in bodhi.fedoraproject.org. You can make it go faster by installing the packages now and logging into Bodhi and providing karma. When the updates hit the stable karma threshold (3 positive), then they will go to the EPEL 7 stable repository.

Actions #4

Updated by Kefu Chai about 8 years ago

Ken, thanks for your work! the packages install just fine in my centos7 box. 1 more karma needed for them.

Actions #5

Updated by Kefu Chai about 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions #6

Updated by Loïc Dachary about 8 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to hammer
Actions #7

Updated by Loïc Dachary about 8 years ago

  • Copied to Backport #15382: hammer: rpm package building fails if the build machine has lttng and babeltrace development packages installed locally added
Actions #8

Updated by Samuel Just about 8 years ago

  • Priority changed from Low to Urgent
  • Backport changed from hammer to hammer, infernalis

Messing up infernalis build?

Actions #9

Updated by Nathan Cutler about 8 years ago

  • Copied to Backport #15498: infernalis: rpm package building fails if the build machine has lttng and babeltrace development packages installed locally added
Actions #10

Updated by Dan Mick about 8 years ago

I pushed a fix to infernalis
https://github.com/ceph/ceph/pull/8589
8224952b3fcd496f531194b8570d2f2c849bb04b

Actions #11

Updated by Nathan Cutler about 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF