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
Add BuildRequires: gcc, make, elfutils-libelf-devel #8102
Conversation
bdb4ab6
to
1e041da
Compare
|
@Conan-Kudo would you mind reviewing this. |
| @@ -52,6 +52,8 @@ URL: http://zfsonlinux.org/ | |||
| Source0: %{module}-%{version}.tar.gz | |||
| Source10: kmodtool | |||
| BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n) | |||
| BuildRequires: gcc, make | |||
| BuildRequires: elfutils-libelf-devel | |||
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.
You'll want to wrap these BuildRequires in a conditional, or otherwise it'll fail package builds for Debian.
So, this should be:
%if 0%{?rhel}%{?fedora}
BuildRequires: gcc, make
BuildRequires: elfutils-libelf-devel
%endif
rpm/generic/zfs.spec.in
Outdated
| @@ -92,6 +92,7 @@ Obsoletes: spl | |||
| # those on either side would conflict with all available documentation. | |||
| Conflicts: zfs-fuse | |||
|
|
|||
| BuildRequires: gcc, make | |||
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.
This needs to be in the conditional that's the line below for to avoid Debian/Ubuntu breakage.
Codecov Report
@@ Coverage Diff @@
## master #8102 +/- ##
==========================================
+ Coverage 78.44% 78.49% +0.05%
==========================================
Files 381 377 -4
Lines 114550 114518 -32
==========================================
+ Hits 89854 89892 +38
+ Misses 24696 24626 -70
Continue to review full report at Codecov.
|
1e041da
to
3ef21d7
Compare
This adds a BuildRequires for gcc, make, and elfutils-libelf-devel into our spec files. gcc has been a packaging requirement for awhile now: https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B These additional BuildRequires allow us to mock build in Fedora 29. Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes openzfs#8095
3ef21d7
to
c6c30d3
Compare
|
@Conan-Kudo my latest push has your fixes included. |
This adds a BuildRequires for gcc, make, and elfutils-libelf-devel into our spec files. gcc has been a packaging requirement for awhile now: https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B These additional BuildRequires allow us to mock build in Fedora 29. Reviewed-by: Neal Gompa <ngompa@datto.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes openzfs#8095 Closes openzfs#8102
This adds a BuildRequires for gcc, make, and elfutils-libelf-devel into our spec files. gcc has been a packaging requirement for awhile now: https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B These additional BuildRequires allow us to mock build in Fedora 29. Reviewed-by: Neal Gompa <ngompa@datto.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #8095 Closes #8102
This adds a BuildRequires for gcc, make, and elfutils-libelf-devel into our spec files. gcc has been a packaging requirement for awhile now: https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B These additional BuildRequires allow us to mock build in Fedora 29. Reviewed-by: Neal Gompa <ngompa@datto.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes openzfs#8095 Closes openzfs#8102
Motivation and Context
This adds a
BuildRequiresforgcc,make, andelfutils-libelf-develinto our spec files. gcc has been a packaging requirement for awhile now:https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B
These additional BuildRequires allow us to mock build in Fedora 29.
Closes #8095
Description
Add BuildRequires: gcc, make, elfutils-libelf-devel
How Has This Been Tested?
Did a mock build in Fedora 29. Without the patch, I'd see:
configure: error: no acceptable C compiler found in $PATHor
configure: checking whether modules can be built... noWith the patch, they correctly built.
Types of changes
Checklist:
Signed-off-by.