Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
fa310c82
Commit
fa310c82
authored
8 years ago
by
becker33
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1704 from eschnett/eschnett/libiconf-gets
Make libiconv work with C11
parents
6de191a9
0bd63ce8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/repos/builtin/packages/libiconv/gets.patch
+13
-0
13 additions, 0 deletions
var/spack/repos/builtin/packages/libiconv/gets.patch
var/spack/repos/builtin/packages/libiconv/package.py
+4
-0
4 additions, 0 deletions
var/spack/repos/builtin/packages/libiconv/package.py
with
17 additions
and
0 deletions
var/spack/repos/builtin/packages/libiconv/gets.patch
0 → 100644
+
13
−
0
View file @
fa310c82
--- a/srclib/stdio.in.h
+++ b/srclib/stdio.in.h
@@ -692,10 +692,6 @@
# undef gets
# endif
_GL_CXXALIASWARN (gets);
-/* It is very rare that the developer ever has full control of stdin,
- so any use of gets warrants an unconditional warning. Assume it is
- always declared, since it is required by C89. */
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/libiconv/package.py
+
4
−
0
View file @
fa310c82
...
...
@@ -34,6 +34,10 @@ class Libiconv(Package):
version
(
'
1.14
'
,
'
e34509b1623cec449dfeb73d7ce9c6c6
'
)
# We cannot set up a warning for gets(), since gets() is not part
# of C11 any more and thus might not exist.
patch
(
"
gets.patch
"
)
def
install
(
self
,
spec
,
prefix
):
configure
(
'
--prefix={0}
'
.
format
(
prefix
),
'
--enable-extra-encodings
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment