Description: Duplicate use of symbol 'base_name'.
 Some source files in the directory 'src/' are using a string variable
 'base_name'.  At the same time the directory 'gnu/' uses the very same
 identifier as a function.  It is expected that the linker will cause
 some indeterminism in choosing which of these references to prefer at
 linking time.  To avoid this randomness, the string variable is renamed.
 .
 Observe that 'src/rlopt.h' and 'src/rwopt.h' are generated by upstream's
 release process from 'src/rlopt.opt' and 'src/rwopt.opt', respectively.
 All of them are patched for better consistency.
Author: Mats Erik Andersson <debian@gisladisker.se>
Forwarded: no
Bug-Debian: https://bugs.debian.org/751627
Last-Update: 2016-04-09

--- rush-1.7+dfsg/src/rlopt.opt.orig	2010-01-02 16:16:24.000000000 +0100
+++ rush-1.7+dfsg/src/rlopt.opt	2016-04-09 17:32:03.438520797 +0200
@@ -32,7 +32,7 @@
        [<Look for database files in DIR.>])
 BEGIN
 	OPTSETUP;
-	base_name = optarg;
+	base_name_ = optarg;
 END
 
 OPTION(forward,,,
--- rush-1.7+dfsg/src/rlopt.h.orig	2010-02-04 07:41:24.000000000 +0100
+++ rush-1.7+dfsg/src/rlopt.h	2016-04-09 17:32:48.360518324 +0200
@@ -696,7 +696,7 @@
 #line 33
 
 	numeric_option = 0;
-	base_name = optarg;
+	base_name_ = optarg;
 
 #line 36
              break;
--- rush-1.7+dfsg/src/rwopt.opt.orig	2010-01-02 16:16:24.000000000 +0100
+++ rush-1.7+dfsg/src/rwopt.opt	2016-04-09 17:32:18.189869990 +0200
@@ -26,7 +26,7 @@
 OPTION(file,f,DIR,
        [<Look for database files in DIR.>])
 BEGIN
-	base_name = optarg;
+	base_name_ = optarg;
 END
 
 OPTION(no-header,H,,
--- rush-1.7+dfsg/src/rwopt.h.orig	2010-02-04 07:41:24.000000000 +0100
+++ rush-1.7+dfsg/src/rwopt.h	2016-04-09 17:33:11.191523441 +0200
@@ -671,7 +671,7 @@
           {
 #line 28
 
-	base_name = optarg;
+	base_name_ = optarg;
 
 #line 30
              break;
--- rush-1.7+dfsg/src/rushlast.c.orig	2010-01-02 16:16:24.000000000 +0100
+++ rush-1.7+dfsg/src/rushlast.c	2016-04-09 17:33:51.121765460 +0200
@@ -17,7 +17,7 @@
 #include <rush.h>
 #include "error.h"
 
-char *base_name = RUSH_DB;
+char *base_name_ = RUSH_DB;
 int  display_header = 1;  /* Display header line */
 int forward = 0;
 char *format;
@@ -77,7 +77,7 @@
         if (!form) 
                 error(1, 0, _("invalid format: %s"), rushdb_error_string);
         
-        switch (rushdb_open(base_name, 0)) {
+        switch (rushdb_open(base_name_, 0)) {
         case rushdb_result_ok:
                 break;
 
@@ -85,7 +85,7 @@
                 exit(0);
 
         case rushdb_result_fail:
-                error(1, errno, _("cannot open database file %s"), base_name);
+                error(1, errno, _("cannot open database file %s"), base_name_);
         }
 
         if (display_header)
--- rush-1.7+dfsg/src/rushwho.c.orig	2010-01-02 16:16:24.000000000 +0100
+++ rush-1.7+dfsg/src/rushwho.c	2016-04-09 17:34:34.183879879 +0200
@@ -17,7 +17,7 @@
 #include <rush.h>
 #include "error.h"
 
-char *base_name = RUSH_DB;
+char *base_name_ = RUSH_DB;
 struct rush_wtmp *wtmp = NULL;
 int  display_header = 1;  /* Display header line */
 char *format;
@@ -66,7 +66,7 @@
 	if (!form) 
 		error(1, 0, _("invalid format: %s"), rushdb_error_string);
 
-	switch (rushdb_open(base_name, 0)) {
+	switch (rushdb_open(base_name_, 0)) {
 	case rushdb_result_ok:
 		break;
 
@@ -74,7 +74,7 @@
 		exit(0);
 
 	case rushdb_result_fail:
-                error(1, errno, _("cannot open database file %s"), base_name);
+                error(1, errno, _("cannot open database file %s"), base_name_);
 	}
 
 	if (display_header)
