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

Add BuildRequires: gcc, make, elfutils-libelf-devel #8102

Merged
merged 1 commit into from Nov 7, 2018

Conversation

tonyhutter
Copy link
Contributor

@tonyhutter tonyhutter commented Nov 6, 2018

Motivation and Context

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.

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 $PATH
or
configure: checking whether modules can be built... no

With the patch, they correctly built.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

@tonyhutter tonyhutter added the Type: Building Indicates an issue related to building binaries label Nov 6, 2018
@tonyhutter tonyhutter added this to To do in 0.7.12 Nov 6, 2018
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Nov 6, 2018
@behlendorf
Copy link
Contributor

@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
Copy link
Contributor

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

@@ -92,6 +92,7 @@ Obsoletes: spl
# those on either side would conflict with all available documentation.
Conflicts: zfs-fuse

BuildRequires: gcc, make
Copy link
Contributor

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
Copy link

codecov bot commented Nov 7, 2018

Codecov Report

Merging #8102 into master will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Flag Coverage Δ
#kernel 78.78% <ø> (+0.05%) ⬆️
#user 67.29% <ø> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9569292...c6c30d3. Read the comment docs.

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
@tonyhutter
Copy link
Contributor Author

@Conan-Kudo my latest push has your fixes included.

@behlendorf behlendorf merged commit d7bda38 into openzfs:master Nov 7, 2018
@tonyhutter tonyhutter moved this from To do to In progress in 0.7.12 Nov 7, 2018
tonyhutter added a commit to tonyhutter/zfs that referenced this pull request Nov 7, 2018
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
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Nov 8, 2018
tonyhutter added a commit that referenced this pull request Nov 13, 2018
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
GregorKopka pushed a commit to GregorKopka/zfs that referenced this pull request Jan 7, 2019
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested) Type: Building Indicates an issue related to building binaries
Projects
No open projects
0.7.12
  
In progress
Development

Successfully merging this pull request may close these issues.

Need BuildRequires: gcc
3 participants