[Lsb-messages] /var/www/bzr/lsb/devel/build_env r1968: add WORD_BIT/LONG_BIT (bug 2759)

Mats Wichmann mats at linuxfoundation.org
Mon May 21 13:27:33 UTC 2012


------------------------------------------------------------
revno: 1968
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: build_env
timestamp: Mon 2012-05-21 07:27:33 -0600
message:
  add WORD_BIT/LONG_BIT (bug 2759)
modified:
  headers/All/5.0/limits.h.defs
  headers/IA32/5.0/limits.h.defs
  headers/IA64/5.0/limits.h.defs
  headers/PPC32/5.0/limits.h.defs
  headers/PPC64/5.0/limits.h.defs
  headers/S390/5.0/limits.h.defs
  headers/S390X/5.0/limits.h.defs
  headers/limits.h
  headers/x86-64/5.0/limits.h.defs
  package/Makefile
-------------- next part --------------
=== modified file 'headers/All/5.0/limits.h.defs'
--- a/headers/All/5.0/limits.h.defs	2011-06-18 12:40:42 +0000
+++ b/headers/All/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -27,6 +27,7 @@
 #define _POSIX_PATH_MAX	256
 #define _POSIX_SEM_NSEMS_MAX	256
 #define NGROUPS_MAX	32
+#define WORD_BIT	32
 #define _POSIX2_EXPR_NEST_MAX	32
 #define _POSIX_DELAYTIMER_MAX	32
 #define _POSIX_MQ_PRIO_MAX	32

=== modified file 'headers/IA32/5.0/limits.h.defs'
--- a/headers/IA32/5.0/limits.h.defs	2009-11-03 20:41:16 +0000
+++ b/headers/IA32/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -1,6 +1,7 @@
 
 #define LONG_MAX	0x7FFFFFFFL
 #define ULONG_MAX	0xFFFFFFFFUL
+#define LONG_BIT	32
 
 #define CHAR_MAX	SCHAR_MAX
 #define CHAR_MIN	SCHAR_MIN

=== modified file 'headers/IA64/5.0/limits.h.defs'
--- a/headers/IA64/5.0/limits.h.defs	2009-11-03 20:41:16 +0000
+++ b/headers/IA64/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -1,6 +1,7 @@
 
 #define LONG_MAX	0x7FFFFFFFFFFFFFFFL
 #define ULONG_MAX	0xFFFFFFFFFFFFFFFFUL
+#define LONG_BIT	64
 
 #define CHAR_MAX	SCHAR_MAX
 #define CHAR_MIN	SCHAR_MIN

=== modified file 'headers/PPC32/5.0/limits.h.defs'
--- a/headers/PPC32/5.0/limits.h.defs	2009-11-03 20:41:16 +0000
+++ b/headers/PPC32/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -1,6 +1,7 @@
 
 #define ULONG_MAX	0xFFFFFFFFUL
 #define LONG_MAX	2147483647L
+#define LONG_BIT	32
 
 #define CHAR_MIN	0
 #define CHAR_MAX	255

=== modified file 'headers/PPC64/5.0/limits.h.defs'
--- a/headers/PPC64/5.0/limits.h.defs	2009-11-03 20:41:16 +0000
+++ b/headers/PPC64/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -1,5 +1,6 @@
 
 #define ULONG_MAX	0xFFFFFFFFFFFFFFFFUL
+#define LONG_BIT	64
 #define LONG_MAX	9223372036854775807L
 
 #define CHAR_MIN	0

=== modified file 'headers/S390/5.0/limits.h.defs'
--- a/headers/S390/5.0/limits.h.defs	2009-11-03 20:41:16 +0000
+++ b/headers/S390/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -1,6 +1,7 @@
 
 #define ULONG_MAX	0xFFFFFFFFUL
 #define LONG_MAX	2147483647
+#define LONG_BIT	32
 
 #define CHAR_MIN	0
 #define CHAR_MAX	255

=== modified file 'headers/S390X/5.0/limits.h.defs'
--- a/headers/S390X/5.0/limits.h.defs	2009-11-03 20:41:16 +0000
+++ b/headers/S390X/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -1,5 +1,6 @@
 
 #define ULONG_MAX	0xFFFFFFFFFFFFFFFFUL
+#define LONG_BIT	64
 #define LONG_MAX	9223372036854775807L
 
 #define CHAR_MIN	0

=== modified file 'headers/limits.h'
--- a/headers/limits.h	2012-04-09 22:25:23 +0000
+++ b/headers/limits.h	2012-05-21 13:27:33 +0000
@@ -122,6 +122,31 @@
 #define IOV_MAX	1024
 #endif				/* __LSB_VERSION__ >= 4.1 */
 
+#if __LSB_VERSION__ >= 50
+#if defined __i386__
+#define LONG_BIT	32
+#endif
+#if defined __powerpc__ && !defined __powerpc64__
+#define LONG_BIT	32
+#endif
+#if defined __s390__ && !defined __s390x__
+#define LONG_BIT	32
+#endif
+#define WORD_BIT	32
+#if defined __ia64__
+#define LONG_BIT	64
+#endif
+#if defined __powerpc64__
+#define LONG_BIT	64
+#endif
+#if defined __x86_64__
+#define LONG_BIT	64
+#endif
+#if defined __s390x__
+#define LONG_BIT	64
+#endif
+#endif				/* __LSB_VERSION__ >= 5.0 */
+
 
 
 

=== modified file 'headers/x86-64/5.0/limits.h.defs'
--- a/headers/x86-64/5.0/limits.h.defs	2009-11-03 20:41:16 +0000
+++ b/headers/x86-64/5.0/limits.h.defs	2012-05-21 13:27:33 +0000
@@ -1,6 +1,7 @@
 
 #define LONG_MAX	0x7FFFFFFFFFFFFFFFL
 #define ULONG_MAX	0xFFFFFFFFFFFFFFFFUL
+#define LONG_BIT	64
 
 #define CHAR_MAX	127
 #define CHAR_MIN	SCHAR_MIN

=== modified file 'package/Makefile'
--- a/package/Makefile	2012-05-19 12:03:30 +0000
+++ b/package/Makefile	2012-05-21 13:27:33 +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=8
+RPM_PACKAGE_RELEASE=9
 
 # 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