[Lsb-messages] /var/www/bzr/lsb/devel/build_env r2327: typo in lsbcc

Mats Wichmann mats at linuxfoundation.org
Wed Apr 19 19:29:22 UTC 2017


------------------------------------------------------------
revno: 2327
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: build_env
timestamp: Wed 2017-04-19 13:29:22 -0600
message:
  typo in lsbcc
modified:
  lsbdev-cc/lsbcc.c
  package/Makefile
-------------- next part --------------
=== modified file 'lsbdev-cc/lsbcc.c'
--- a/lsbdev-cc/lsbcc.c	2016-12-05 16:34:44 +0000
+++ b/lsbdev-cc/lsbcc.c	2017-04-19 19:29:22 +0000
@@ -677,12 +677,13 @@
 int need_old_cxx()
 {
     /* Guessing that we won't need this after 5.0 */
-    if (strcmp(lsbcc_lsbversion, "5.1") >= 0)
+    if (strcmp(lsbcc_lsbversion, "5.1") >= 0) {
 	return 0;
+    }
 
     /* This option became available on gcc 4.1. */
     find_gcc_version();
-    switch (gccversion[1]) {
+    switch (gccversion[0]) {
 
     case '6':
 	return 1;

=== modified file 'package/Makefile'
--- a/package/Makefile	2016-12-05 16:34:44 +0000
+++ b/package/Makefile	2017-04-19 19:29:22 +0000
@@ -54,7 +54,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
-BUILDNO=1
+BUILDNO=2
 
 # 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