-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fedora 28: Fix "file is executable, but no shebang" warnings #7395
Conversation
Fedora 28's RPM build checks warn when executable files don't have a shebang line. These warnings are caused when we (incorrectly) include data & config files in the_SCRIPTS automake lines. Files in _SCRIPTS are marked executable by automake. This patch fixes the issue by including non-executable scripts in a _DATA line instead. Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes: openzfs#7359
Codecov Report
@@ Coverage Diff @@
## master #7395 +/- ##
==========================================
- Coverage 76.39% 76.31% -0.08%
==========================================
Files 329 329
Lines 104248 104237 -11
==========================================
- Hits 79638 79552 -86
- Misses 24610 24685 +75
Continue to review full report at Codecov.
|
@@ -1,4 +1,6 @@ | |||
pkgdatadir = $(datadir)/@PACKAGE@/test-runner/include | |||
dist_pkgdata_SCRIPTS = \ | |||
logapi.shlib \ | |||
logapi.shlib |
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.
Question: It appears a lot of our other shlib
files don't have the shebang at the top of their files. Does logapi.shlib
require it for some reason? It's included just like any other shlib
files.
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.
I dunno, I thought that was weird too.
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.
My understanding is that it's optional since the .shlib
files are only ever sourced, but we really should be consistent about it.
Fedora 28's RPM build checks warn when executable files don't have a shebang line. These warnings are caused when we (incorrectly) include data & config files in the_SCRIPTS automake lines. Files in _SCRIPTS are marked executable by automake. This patch fixes the issue by including non-executable scripts in a _DATA line instead. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes openzfs#7359 Closes openzfs#7395
Fedora 28's RPM build checks warn when executable files don't have a shebang line. These warnings are caused when we (incorrectly) include data & config files in the_SCRIPTS automake lines. Files in _SCRIPTS are marked executable by automake. This patch fixes the issue by including non-executable scripts in a _DATA line instead. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes openzfs#7359 Closes openzfs#7395
Fedora 28's RPM build checks warn when executable files don't have a shebang line. These warnings are caused when we (incorrectly) include data & config files in the_SCRIPTS automake lines. Files in _SCRIPTS are marked executable by automake. This patch fixes the issue by including non-executable scripts in a _DATA line instead. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #7359 Closes #7395
Description
Fedora 28's RPM build checks warn when executable files don't have a shebang line:
These warnings are caused when we (incorrectly) include data & config files in the
_SCRIPTS
automake lines. Files in_SCRIPTS
are marked executable by automake. This patch fixes the issue by including non-executable scripts in a_DATA
line instead.Motivation and Context
Closes: #7359
How Has This Been Tested?
Tested
make pkg-utils
on a Fedora 28 VM and no longer saw the warnings.Types of changes
Checklist:
Signed-off-by
.