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

LTTng-UST disabled for openSUSE #10592

Merged
merged 1 commit into from Aug 19, 2016
Merged

LTTng-UST disabled for openSUSE #10592

merged 1 commit into from Aug 19, 2016

Conversation

michelmno
Copy link
Contributor

%if 0%{?is_opensuse}
ExclusiveArch x86_64 aarch64 ppc64 ppc64le
%else
ExclusiveArch x86_64 aarch64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a ':' after 'ExclusiveArch' I think

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed those changes as not related to
http://tracker.ceph.com/issues/16937

@smithfarm
Copy link
Contributor

@michelmno Please look into interactive rebasing to redo the PR, i.e. git rebase -i followed by git push -f.

Lots of tutorials out there on that - for example, https://www.atlassian.com/git/tutorials/rewriting-history/

You can use that to squash commits into one, drop commits, etc.

@smithfarm
Copy link
Contributor

@michelmno Basically, when modifying a PR you always use git rebase and never git merge.

@smithfarm
Copy link
Contributor

pushed to gitbuilder as wip-16937

@ktdreyer @b-ranto Care to review?

@smithfarm smithfarm self-assigned this Aug 5, 2016
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version} >= 1315
%if ! 0%{?is_openSUSE}
Copy link
Contributor

@smithfarm smithfarm Aug 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%if 0%{?fedora} || 0%{?rhel} >= 6 || ( 0%{?suse_version} == 1315 && ! 0%{?is_openSUSE} )

Copy link
Contributor

@smithfarm smithfarm Aug 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, since ceph is only built for SLE 12, there's little point in checking explicitly for 1315. The following would be sufficient:

%if 0%{?fedora} || 0%{?rhel} >= 6 || ( 0%{?suse_version} && ! 0%{?is_opensuse} )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a comment in (1) saying:
"Grouping with parentheses will fail on fedora/rhel/centos"
This is the reason why I used successive %if in my patch.

(1) https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt if the parentheses are still broken in RH/CentOS/Fedora, but if you like we can leave it separate as you suggest. How about this, then:

%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
%if ! 0%{?is_opensuse}

(note the lowercase is_opensuse)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you'd rather leave >= 1315 and SLES12+ that's OK with me.

@michelmno michelmno changed the title LTTng-UST enabled for openSUSE Tumbleweed and release above 1315 LTTng-UST disabled for openSUSE Aug 8, 2016
@smithfarm
Copy link
Contributor

@michelmno Looks good, now please squash the three commits into one.

@smithfarm
Copy link
Contributor

@michelmno There is an unwritten rule that downstream bug tracker numbers (bz#, bsc#) don't belong in upstream commit messages. Please amend the commit message so it doesn't mention the downstream bug. It's enough to say that lttng doesn't work in openSUSE and so it has to be disabled there.

LTTng-UST not yet supported in openSUSE so do not enable lltng for it.
The (1) is where is defined "is_opensuse"

Remove value for test of suse_version in spec file
and change related comment from SLES12 to SLE
as per comment in #10592

(1) https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code

Fixes: http://tracker.ceph.com/issues/16937
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
@smithfarm
Copy link
Contributor

pushed to gitbuilder as wip-16937

@smithfarm smithfarm merged commit fc7e398 into ceph:master Aug 19, 2016
smithfarm pushed a commit to SUSE/ceph that referenced this pull request Aug 19, 2016
LTTng-UST not yet supported in openSUSE so do not enable lltng for it.
The (1) is where is defined "is_opensuse"

Remove value for test of suse_version in spec file
and change related comment from SLES12 to SLE
as per comment in ceph#10592

(1) https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code

Fixes: http://tracker.ceph.com/issues/16937
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
(cherry picked from commit 7da19b6)
smithfarm pushed a commit to SUSE/ceph that referenced this pull request Aug 19, 2016
LTTng-UST not yet supported in openSUSE so do not enable lltng for it.
The (1) is where is defined "is_opensuse"

Remove value for test of suse_version in spec file
and change related comment from SLES12 to SLE
as per comment in ceph#10592

(1) https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code

Fixes: http://tracker.ceph.com/issues/16937
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
(cherry picked from commit 7da19b6)
dx9 pushed a commit to dx9/ceph that referenced this pull request Sep 9, 2016
LTTng-UST not yet supported in openSUSE so do not enable lltng for it.
The (1) is where is defined "is_opensuse"

Remove value for test of suse_version in spec file
and change related comment from SLES12 to SLE
as per comment in ceph#10592

(1) https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code

Fixes: http://tracker.ceph.com/issues/16937
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants