Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fish.spec: dependency on net-tools/hostname depending on platform
Closes #2190. [ci skip]
- Loading branch information
ed4b789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because SUSE people are slightly insane and don't give different versions between SUSE Enterprise and openSUSE Leap the if statement should contain the following as well
|| (0%{?suse_version} != 1315 || 0%{?is_opensuse})
ed4b789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, to confirm, all versions of openSUSE except 1315 use the hostname package?
ed4b789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite, if its 1315 and 0%{?is_opensuse} is true then it also uses hostname, The problem is 1315 was originally SUSE Enterprise Linux, was 1315 then someone who didn't think enough decided that openSUSE Leap should have the same version, the problem is I don't know if
0%{?is_opensuse}
is true for all versions of openSUSE (I am now trying to find that out) if thats the case you can just use0%{?is_opensuse}
for hostnameed4b789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately
0%{?is_opensuse}
is not true for openSUSE 13.2ed4b789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'm going to need to try and be clear here if I'm going to make any headway.
What versions of openSUSE ship the hostname binary as part of the
hostname
package? How can these versions be specified in the RPM file?What versions of openSUSE ship the hostname binary as part of the
net-tools
package? How can these versions be specified in the RPM file?ed4b789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this turns out quite simple as openSUSE 13.2 is still using
net-tools
if
0%{?is_opensuse}
is truehostname
else
net-tools
end
That will cover every version of openSUSE and SLE
ed4b789
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I've merged that for the 2.3 branch and will merge back to master soon.