OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

prelude-lml: fixed to build with glibc >= 2.16 where 'gets' is not defined in the gnulib anymore Note: build error without the patch ----------------------------------------------------------------------------- make[4]: *** [localcharset.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... In file included from ./wchar.h:63:0, from printf-args.h:42, from printf-parse.h:26, from printf-parse.c:37: ./stdio.h:143:1: error: 'gets' undeclared here (not in a function) libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT vasnprintf.lo -MD -MP -MF .deps/vasnprintf.Tpo -c vasnprintf.c -fPIC -DPIC -o .libs/vasnprintf.o In file included from ./wchar.h:63:0, from printf-args.h:42, from printf-args.c:30: ./stdio.h:143:1: error: 'gets' undeclared here (not in a function) In file included from glob.c:38:0: ./stdio.h:143:1: error: 'gets' undeclared here (not in a function) make[4]: *** [printf-args.lo] Error 1 glob.c:168:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes] glob.c:216:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes] glob.c:217:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes] make[4]: *** [printf-parse.lo] Error 1 In file included from snprintf.c:22:0: ./stdio.h:143:1: error: 'gets' undeclared here (not in a function) In file included from vasnprintf.c:71:0: ./stdio.h:143:1: error: 'gets' undeclared here (not in a function) make[4]: *** [glob.lo] Error 1 make[4]: *** [snprintf.lo] Error 1 make[4]: *** [vasnprintf.lo] Error 1 -----------------------------------------------------------------------------
11 years ago
  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../prelude-lml/prelude-lml-1.0.0-glibc-2.16-no-gets.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- prelude-lml-1.0.0/libmissing/stdio.in.h.orig 2012-10-30 17:15:24.449864079 +0100
  17. +++ prelude-lml-1.0.0/libmissing/stdio.in.h 2012-10-30 17:18:49.534581397 +0100
  18. @@ -114,10 +114,12 @@
  19. #endif
  20. /* It is very rare that the developer ever has full control of stdin,
  21. - so any use of gets warrants an unconditional warning. Assume it is
  22. - always declared, since it is required by C89. */
  23. + so any use of gets warrants an unconditional warningbesides, C11
  24. + removed it. */
  25. #undef gets
  26. +#if HAVE_RAW_DECL_GETS
  27. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  28. +#endif
  29. #if @GNULIB_FOPEN@
  30. # if @REPLACE_FOPEN@