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

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

Merged
1 commit merged into from Apr 6, 2016

Conversation

ghost
Copy link

@ghost ghost commented Apr 5, 2016

before this change, we do not pacakge tracepoint probe shared libraries
on rhel7. but "configure" script enables them if lttng is detected. and
rpm complains at seeing installed but not pacakged files. as EPEL-7 now
includes lttng-ust-devel and libbabeltrace-devel, we'd better
BuildRequire them, and build with them unless disabled otherwise. so in
this change
* make "lttng" an rpm build option enabled by default
* BuildRequire lttng-ust-devel and libbabeltrace-devel if the "lttng"
 "lttng" option is enabled
* --without-lttng --without-babeltrace if the "lttng" option is disabled

Fixes: #14844
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit f1a4490)

Conflicts:
	ceph.spec.in: trivial resolution, the context changed
        (other packages, files etc.) but the semantic did not
@ghost ghost self-assigned this Apr 5, 2016
@ghost ghost added this to the hammer milestone Apr 5, 2016
@ghost
Copy link
Author

ghost commented Apr 5, 2016

Comparing the diffs after conflict resolution shows something strange:

$ commit=77a4ed0 ; picked_from=$(git show --no-patch --pretty=%b $commit  | perl -ne 'print if(s/.*cherry picked from commit (\w+).*/$1/)') ; diff -u --ignore-matching-lines '^[^+-]'   <(git show $picked_from) <(git show $commit)
--- /dev/fd/63  2016-04-05 12:01:09.705058342 +0200
+++ /dev/fd/62  2016-04-05 12:01:09.709058309 +0200
@@ -30,12 +35,13 @@
 +%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} == 1315
 +%bcond_without lttng
 +%endif
- 
++
  %if (0%{?el5} || (0%{?rhel_version} >= 500 && 0%{?rhel_version} <= 600))
  %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-@@ -62,11 +66,6 @@ restorecon -R /var/log/radosgw > /dev/null 2>&1;
- %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
- %endif
+ %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+@@ -8,11 +13,6 @@
+ 
+ %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}

 -# LTTng-UST enabled on Fedora, RHEL 6, and SLES 12
 -%if 0%{?fedora} || 0%{?rhel} == 6 || 0%{?suse_version} == 1315

I believe this is because moving the

# LTTng-UST enabled on Fedora, RHEL 6+, and SLES 12

block up in the ceph.spec.in file confuses diff into thinking the distutil.sysconfig lines also changed although they did not.

@ghost
Copy link
Author

ghost commented Apr 5, 2016

@tchaikov how does that look ?

ghost pushed a commit that referenced this pull request Apr 5, 2016
…uild machine has lttng and babeltrace development packages installed locally

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@tchaikov
Copy link
Contributor

tchaikov commented Apr 5, 2016

@dachary lgtm.

@ghost
Copy link
Author

ghost commented Apr 5, 2016

For the record: http://tracker.ceph.com/issues/15383

@ghost ghost merged commit e5beeef into ceph:hammer Apr 6, 2016
@ghost
Copy link
Author

ghost commented Apr 6, 2016

Passed an upgrade suite in addition to the gitbuilders http://tracker.ceph.com/issues/14692#note-52

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants