[Lsb-messages] /var/www/bzr/lsb/devel/build_env r2117: deprecate some fucs in ncursesw to be like ncurses (bug 1761)

Mats Wichmann mats at linuxfoundation.org
Sat Jul 27 15:42:43 UTC 2013


------------------------------------------------------------
revno: 2117
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: build_env
timestamp: Sat 2013-07-27 09:42:43 -0600
message:
  deprecate some fucs in ncursesw to be like ncurses (bug 1761)
modified:
  headers/ncursesw/term.h
  package/Makefile
-------------- next part --------------
=== modified file 'headers/ncursesw/term.h'
--- a/headers/ncursesw/term.h	2013-07-26 20:16:04 +0000
+++ b/headers/ncursesw/term.h	2013-07-27 15:42:43 +0000
@@ -5,6 +5,14 @@
 #include <termios.h>
 #include <ncursesw/ncurses_dll.h>
 
+#if !defined(LSB_DECL_DEPRECATED)
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2))
+#define LSB_DECL_DEPRECATED __attribute__ ((__deprecated__))
+#else
+#define LSB_DECL_DEPRECATED
+#endif
+#endif				/* LSB_DECL_DEPRECATED */
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -586,11 +594,16 @@
     extern int restartterm(char *, int, int *);
     extern TERMINAL *set_curterm(TERMINAL *);
     extern int setupterm(char *, int, int *);
-    extern int tgetent(char *, const char *);
-    extern int tgetflag(char *);
-    extern int tgetnum(char *);
-    extern char *tgetstr(char *, char **);
-    extern char *tgoto(const char *, int, int);
+    /* Functions tgetent(), tgetflag(), tgetnum(), tgetstr() and tgoto() are provided only as a conversion aid for programs that use the termcap library. Applications should use tigetflag, tigetnum, tigetstr and tparm instead. */
+    extern int tgetent(char *, const char *) LSB_DECL_DEPRECATED;
+    /* Functions tgetent(), tgetflag(), tgetnum(), tgetstr() and tgoto() are provided only as a conversion aid for programs that use the termcap library. Applications should use tigetflag, tigetnum, tigetstr and tparm instead. */
+    extern int tgetflag(char *) LSB_DECL_DEPRECATED;
+    /* Functions tgetent(), tgetflag(), tgetnum(), tgetstr() and tgoto() are provided only as a conversion aid for programs that use the termcap library. Applications should use tigetflag, tigetnum, tigetstr and tparm instead. */
+    extern int tgetnum(char *) LSB_DECL_DEPRECATED;
+    /* Functions tgetent(), tgetflag(), tgetnum(), tgetstr() and tgoto() are provided only as a conversion aid for programs that use the termcap library. Applications should use tigetflag, tigetnum, tigetstr and tparm instead. */
+    extern char *tgetstr(char *, char **) LSB_DECL_DEPRECATED;
+    /* Functions tgetent(), tgetflag(), tgetnum(), tgetstr() and tgoto() are provided only as a conversion aid for programs that use the termcap library. Applications should use tigetflag, tigetnum, tigetstr and tparm instead. */
+    extern char *tgoto(const char *, int, int) LSB_DECL_DEPRECATED;
     extern int tigetflag(char *);
     extern int tigetnum(char *);
     extern char *tigetstr(char *);

=== modified file 'package/Makefile'
--- a/package/Makefile	2013-07-26 20:16:04 +0000
+++ b/package/Makefile	2013-07-27 15:42:43 +0000
@@ -46,7 +46,7 @@
 
 # We define this here instead of directly in the spec file as
 # we need to be able to work out what the produced rpm files will be called
-RPM_PACKAGE_RELEASE=3
+RPM_PACKAGE_RELEASE=4
 
 # Initialize LIB64 to proper value for 64-bit architectures
 export LIB64:=$(shell case `uname -m` in (ppc64 | s390x | x86_64) echo 64 ;; esac)



More information about the lsb-messages mailing list