[Pkg-bitcoin-commits] [cgminer] 11/11: Updated cgminer.1, fix FTBFS when -Werror=format-security is enabled

Scott Sheridan Howard showard at moszumanska.debian.org
Tue Apr 15 23:11:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

showard pushed a commit to branch master
in repository cgminer.

commit 57880e1f0934d67b2ef9d0020405716d1b85f6bf
Author: Scott Howard <showard314 at gmail.com>
Date:   Tue Apr 15 19:11:03 2014 -0400

    Updated cgminer.1, fix FTBFS when -Werror=format-security is enabled
---
 debian/cgminer.1                     | 209 +++++++++++++++++++++++++----------
 debian/changelog                     |   3 +
 debian/patches/format-security.patch |  14 +++
 debian/patches/series                |   1 +
 debian/rules                         |   2 +-
 5 files changed, 170 insertions(+), 59 deletions(-)

diff --git a/debian/cgminer.1 b/debian/cgminer.1
index 36aacc1..9f86279 100644
--- a/debian/cgminer.1
+++ b/debian/cgminer.1
@@ -1,13 +1,13 @@
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.41.1.
-.TH CGMINER "1" "June 2013" "cgminer 3.2.0" "User Commands"
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.43.3.
+.TH CGMINER "1" "April 2014" "cgminer 4.2.3" "User Commands"
 .SH NAME
 cgminer \- multi-threaded multi-pool GPU, FPGA and CPU bitcoin miner.
 .SH SYNOPSIS
 .B cgminer
-[\fI-DdGEgIKklmpPQqsTouvwOchnV\fR]
+[\fI-DElmpPQqUsTouOchnV\fR]
 .SH DESCRIPTION
 multi-threaded multi-pool GPU, FPGA and CPU bitcoin miner.
-Built with bflsc GPU bitforce icarus avalon modminer scrypt mining support.
+Built with ant.S1 avalon bflsc bitforce bitfury cointerra drillbit hashfast icarus klondike KnC BaB minion modminer mining support.
 .PP
 .SH OPTIONS
 
@@ -15,6 +15,9 @@ Built with bflsc GPU bitforce icarus avalon modminer scrypt mining support.
 .SS
 Options for both config file and command line:
 .TP
+\fB\-\-anu\-freq\fR <arg>    
+Set AntminerU1 frequency in MHz, range 125\-500 (default: 1128792064)
+.TP
 \fB\-\-api\-allow\fR <arg>   
 Allow API access only to the given list of [G:]IP[/Prefix] addresses[/subnets]
 .TP
@@ -27,36 +30,132 @@ API one letter groups G:cmd:cmd[,P:cmd:*...] defining the cmds a groups can use
 \fB\-\-api\-listen\fR        
 Enable API, default: disabled
 .TP
+\fB\-\-api\-mcast\fR         
+Enable API Multicast listener, default: disabled
+.TP
+\fB\-\-api\-mcast\-addr\fR <arg> 
+API Multicast listen address
+.TP
+\fB\-\-api\-mcast\-code\fR <arg> 
+Code expected in the API Multicast message, don't use '\-'
+.TP
+\fB\-\-api\-mcast\-des\fR <arg> 
+Description appended to the API Multicast reply, default: ''
+.TP
+\fB\-\-api\-mcast\-port\fR <arg> 
+API Multicast listen port (default: 4028)
+.TP
 \fB\-\-api\-network\fR       
 Allow API (if enabled) to listen on/for any address, default: only 127.0.0.1
 .TP
 \fB\-\-api\-port\fR <arg>    
 Port number of miner API (default: 4028)
 .TP
+\fB\-\-avalon\-auto\fR       
+Adjust avalon overclock frequency dynamically for best hashrate
+.TP
+\fB\-\-avalon\-cutoff\fR <arg> 
+Set avalon overheat cut off temperature (default: 60)
+.TP
+\fB\-\-avalon\-fan\fR        
+Set fanspeed percentage for avalon, single value or range (default: 20\-100)
+.TP
+\fB\-\-avalon\-freq\fR       
+Set frequency range for avalon\-auto, single value or range
+.TP
+\fB\-\-avalon\-options\fR <arg> 
+Set avalon options baud:miners:asic:timeout:freq:tech
+.TP
+\fB\-\-avalon\-temp\fR <arg> 
+Set avalon target temperature (default: 50)
+.TP
+\fB\-\-bab\-options\fR <arg> 
+Set bab options max:def:min:up:down:hz:delay:trf
+.TP
 \fB\-\-balance\fR           
 Change multipool strategy from failover to even share balance
 .TP
+\fB\-\-benchfile\fR <arg>   
+Run cgminer in benchmark mode using a work file \- produces no shares
+.TP
+\fB\-\-benchfile\-display\fR 
+Display each benchfile nonce found
+.TP
 \fB\-\-benchmark\fR         
 Run cgminer in benchmark mode \- produces no shares
 .TP
 \fB\-\-bfl\-range\fR         
 Use nonce range on bitforce devices if supported
 .TP
+\fB\-\-bflsc\-overheat\fR <arg> 
+Set overheat temperature where BFLSC devices throttle, 0 to disable (default: 85)
+.TP
+\fB\-\-bitburner\-voltage\fR <arg> 
+Set BitBurner (Avalon) core voltage, in millivolts
+.TP
+\fB\-\-bitburner\-fury\-voltage\fR <arg> 
+Set BitBurner Fury core voltage, in millivolts
+.TP
+\fB\-\-bitburner\-fury\-options\fR <arg> 
+Override avalon\-options for BitBurner Fury boards baud:miners:asic:timeout:freq
+.TP
+\fB\-\-bitmain\-auto\fR      
+Adjust bitmain overclock frequency dynamically for best hashrate
+.TP
+\fB\-\-bitmain\-cutoff\fR <arg> 
+Set bitmain overheat cut off temperature (default: 60)
+.TP
+\fB\-\-bitmain\-fan\fR       
+Set fanspeed percentage for bitmain, single value or range (default: 20\-100)
+.TP
+\fB\-\-bitmain\-freq\fR      
+Set frequency range for bitmain\-auto, single value or range
+.TP
+\fB\-\-bitmain\-hwerror\fR   
+Set bitmain device detect hardware error
+.TP
+\fB\-\-bitmain\-options\fR <arg> 
+Set bitmain options baud:miners:asic:timeout:freq
+.TP
+\fB\-\-bitmain\-temp\fR <arg> 
+Set bitmain target temperature (default: 50)
+.TP
+\fB\-\-bxf\-bits\fR <arg>    
+Set max BXF/HXF bits for overclocking (default: 54)
+.TP
+\fB\-\-bxf\-temp\-target\fR <arg> 
+Set target temperature for BXF/HXF devices (default: 82)
+.TP
+\fB\-\-bxm\-bits\fR <arg>    
+Set BXM bits for overclocking (default: 54)
+.TP
+\fB\-\-btc\-address\fR <arg> 
+Set bitcoin target address when solo mining to bitcoind (mandatory)
+.TP
+\fB\-\-btc\-sig\fR <arg>     
+Set signature to add to coinbase when solo mining (optional)
+.TP
 \fB\-\-compact\fR           
 Use compact display without per device statistics
 .TP
-\fB\-\-debug\fR|\-D          
-Enable debug output
+\fB\-\-cta\-load\fR <arg>    
+Set load for CTA devices, 0\-255 range (default: 0)
 .TP
-\fB\-\-device\fR|\-d <arg>   
-Select device to use, (Use repeat \fB\-d\fR for multiple devices, default: all)
+\fB\-\-ps\-load\fR <arg>     
+Set power supply load for CTA devices, 0\-100 range (default: 0)
 .TP
-\fB\-\-disable\-gpu\fR|\-G    
-Disable GPU mining even if suitable devices exist
+\fB\-\-debug\fR|\-D          
+Enable debug output
 .TP
 \fB\-\-disable\-rejecting\fR 
 Automatically disable pools that continually reject shares
 .TP
+\fB\-\-drillbit\-options\fR <arg> 
+Set drillbit options <int|ext>:clock[:clock_divider][:voltage]
+.TP
+\fB\-\-drillbit\-auto\fR <arg> 
+Enable drillbit automatic tuning <every>:[<gooderr>:<baderr>:<maxerr>]
+.TP
 \fB\-\-expiry\fR|\-E <arg>   
 Upper bound on how many seconds after getting work we consider a share from it stale (default: 120)
 .TP
@@ -66,32 +165,38 @@ Don't leak work to backup pools when primary pool is lagging
 \fB\-\-fix\-protocol\fR      
 Do not redirect to a different getwork protocol (eg. stratum)
 .TP
-\fB\-\-gpu\-dyninterval\fR <arg> 
-Set the refresh interval in ms for GPUs using dynamic intensity (default: 7)
+\fB\-\-hfa\-hash\-clock\fR <arg> 
+Set hashfast clock speed (default: 550)
+.TP
+\fB\-\-hfa\-fail\-drop\fR <arg> 
+Set how many MHz to drop clockspeed each failure on an overlocked hashfast device (default: 10)
 .TP
-\fB\-\-gpu\-platform\fR <arg> 
-Select OpenCL platform ID to use for GPU mining (default: \fB\-1\fR)
+\fB\-\-hfa\-fan\fR           
+Set fanspeed percentage for hashfast, single value or range (default: 10\-85)
 .TP
-\fB\-\-gpu\-threads\fR|\-g <arg> 
-Number of threads per GPU (1 \- 10) (default: \fB\-1\fR)
+\fB\-\-hfa\-name\fR <arg>    
+Set a unique name for a single hashfast device specified with \fB\-\-usb\fR or the first device found
 .TP
-\fB\-\-lookup\-gap\fR <arg>  
-Set GPU lookup gap for scrypt mining, comma separated
+\fB\-\-hfa\-noshed\fR        
+Disable hashfast dynamic core disabling feature
 .TP
-\fB\-\-intensity\fR|\-I <arg> 
-Intensity of GPU scanning (d or \fB\-10\fR \-> 20, default: d to maintain desktop interactivity)
+\fB\-\-hfa\-options\fR <arg> 
+Set hashfast options name:clock (comma separated)
+.TP
+\fB\-\-hfa\-temp\-overheat\fR <arg> 
+Set the hashfast overheat throttling temperature (default: 95)
+.TP
+\fB\-\-hfa\-temp\-target\fR <arg> 
+Set the hashfast target temperature (0 to disable) (default: 88)
 .TP
 \fB\-\-hotplug\fR <arg>     
 Seconds between hotplug checks (0 means never check)
 .TP
-\fB\-\-kernel\-path\fR|\-K <arg> 
-Specify a path to where bitstream and kernel files are (default: "/usr/lib/cgminer")
-.TP
-\fB\-\-kernel\fR|\-k <arg>   
-Override sha256 kernel to use (diablo, poclbm, phatk or diakgcn) \- one value or comma separated
+\fB\-\-klondike\-options\fR <arg> 
+Set klondike options clock:temptarget
 .TP
 \fB\-\-load\-balance\fR      
-Change multipool strategy from failover to efficiency based balance
+Change multipool strategy from failover to quota based balance
 .TP
 \fB\-\-log\fR|\-l <arg>      
 Interval in seconds between log output (default: 5)
@@ -102,12 +207,12 @@ Minimise caching of shares for low memory applications
 \fB\-\-monitor\fR|\-m <arg>  
 Use custom pipe cmd for output messages
 .TP
+\fB\-\-nfu\-bits\fR <arg>    
+Set nanofury bits for overclocking, range 32\-63 (default: 50)
+.TP
 \fB\-\-net\-delay\fR         
 Impose small delays in networking to not overload slow routers
 .TP
-\fB\-\-no\-restart\fR        
-Do not attempt to restart GPUs that hang
-.TP
 \fB\-\-no\-submit\-stale\fR   
 Don't submit shares if they are detected as stale
 .TP
@@ -121,17 +226,17 @@ Force verbose mode and output per\-device statistics
 Verbose dump of protocol\-level activities
 .TP
 \fB\-\-queue\fR|\-Q <arg>    
-Minimum number of work items to have queued (0+) (default: 1)
+Maximum number of work items to have queued (default: 9999)
 .TP
 \fB\-\-quiet\fR|\-q          
 Disable logging output, display status and errors
 .TP
+\fB\-\-quota\fR|\-U <arg>    
+quota;URL combination for server with load\-balance strategy quotas
+.TP
 \fB\-\-real\-quiet\fR        
 Disable all output
 .TP
-\fB\-\-remove\-disabled\fR   
-Remove disabled devices entirely, as if they didn't exist
-.TP
 \fB\-\-rotate\fR <arg>      
 Change multipool strategy from failover to regularly rotate at N minutes (default: 0)
 .TP
@@ -141,19 +246,13 @@ Change multipool strategy from failover to round robin on failure
 \fB\-\-scan\-time\fR|\-s <arg> 
 Upper bound on time spent scanning current work, in seconds (default: \fB\-1\fR)
 .TP
-\fB\-\-sched\-start\fR <arg> 
+\fB\-\-sched\-start\fR       
 Set a time of day in HH:MM to start mining (a once off without a stop time)
 .TP
-\fB\-\-sched\-stop\fR <arg>  
+\fB\-\-sched\-stop\fR        
 Set a time of day in HH:MM to stop mining (will quit without a start time)
 .TP
-\fB\-\-scrypt\fR            
-Use the scrypt algorithm for mining (litecoin only)
-.TP
-\fB\-\-shaders\fR <arg>     
-GPU shaders per card for tuning scrypt, comma separated
-.TP
-\fB\-\-sharelog\fR <arg>    
+\fB\-\-sharelog\fR          
 Append share log to file
 .TP
 \fB\-\-shares\fR <arg>      
@@ -165,35 +264,29 @@ Set socks4 proxy (host:port)
 \fB\-\-syslog\fR            
 Use system log for output messages (default: standard error)
 .TP
-\fB\-\-temp\-cutoff\fR <arg> 
-Temperature where a device will be automatically disabled, one value or comma separated list (default: 95)
+\fB\-\-temp\-cutoff\fR       
+Temperature where a device will be automatically disabled, one value or comma separated list (default: 0)
 .TP
 \fB\-\-text\-only\fR|\-T      
 Disable ncurses formatted screen output
 .TP
-\fB\-\-thread\-concurrency\fR <arg> 
-Set GPU thread concurrency for scrypt mining, comma separated
-.TP
 \fB\-\-url\fR|\-o <arg>      
 URL for bitcoin JSON\-RPC server
 .TP
-\fB\-\-user\fR|\-u <arg>     
-Username for bitcoin JSON\-RPC server
-.TP
 \fB\-\-usb\fR <arg>         
 USB device selection
 .TP
-\fB\-\-vectors\fR|\-v <arg>  
-Override detected optimal vector (1, 2 or 4) \- one value or comma separated list
+\fB\-\-user\fR|\-u <arg>     
+Username for bitcoin JSON\-RPC server
+.TP
+\fB\-\-userpass\fR|\-O <arg> 
+Username:Password pair for bitcoin JSON\-RPC server
 .TP
 \fB\-\-verbose\fR           
 Log verbose output to stderr as well as status output
 .TP
-\fB\-\-worksize\fR|\-w <arg> 
-Override detected optimal worksize \- one value or comma separated list
-.TP
-\fB\-\-userpass\fR|\-O <arg> 
-Username:Password pair for bitcoin JSON\-RPC server
+\fB\-\-widescreen\fR        
+Use extra wide display without toggling
 .TP
 \fB\-\-worktime\fR          
 Display extra work time debug information
@@ -212,7 +305,7 @@ Loaded at start and used when saving without a name.
 Print this message
 .TP
 \fB\-\-ndevs\fR|\-n          
-Display number of detected GPUs, OpenCL platform information, all USB devices, and exit
+Display all USB devices and exit
 .TP
 \fB\-\-version\fR|\-V        
 Display version and exit
diff --git a/debian/changelog b/debian/changelog
index b057cec..0789c2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ cgminer (4.2.3-1) unstable; urgency=low
   * New upstream release.
   * Updated debian/copyright.
   * Updated debian/rules configure flags to build for new hardware.
+  * Updated cgminer.1.
+  * fix FTBFS when -Werror=format-security is enabled
+    - debian/patches/format-security.patch
 
  -- Scott Howard <showard at debian.org>  Tue, 15 Apr 2014 18:43:38 -0400
 
diff --git a/debian/patches/format-security.patch b/debian/patches/format-security.patch
new file mode 100644
index 0000000..c18b55f
--- /dev/null
+++ b/debian/patches/format-security.patch
@@ -0,0 +1,14 @@
+Description: build fails with -Werror=format-security
+Author: Scott Howard <showard at debian.org>
+
+--- cgminer-4.2.3.orig/driver-bitmain.c
++++ cgminer-4.2.3/driver-bitmain.c
+@@ -796,7 +796,7 @@ static void bitmain_update_temps(struct
+ 	}
+ 	sprintf(tmp, ", TempMAX: %dC", info->temp_max);
+ 	strcat(msg, tmp);
+-	applog(LOG_INFO, msg);
++	applog(LOG_INFO, "%s", msg);
+ 	info->temp_history_index++;
+ 	info->temp_sum += bitmain->temp;
+ 	applog(LOG_DEBUG, "%s%d: temp_index: %d, temp_count: %d, temp_max: %d",
diff --git a/debian/patches/series b/debian/patches/series
index 9a9d9b6..c88da63 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 system_jansson.patch
 kfreebsd_usb.patch
+format-security.patch
diff --git a/debian/rules b/debian/rules
index 91a5638..f48454d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,7 +42,7 @@ override_dh_auto_build:
 #disabled we can generate this prior to upload
 MAN_NAME=multi-threaded multi-pool GPU, FPGA and CPU bitcoin miner.
 cgminer.1:
-	help2man --no-discard-stderr --no-info --name="$(MAN_NAME)" cgminer > cgminer.1
+	help2man --no-discard-stderr --no-info --name="$(MAN_NAME)" ./cgminer > cgminer.1
 	perl \
              -E 's{\s+(It was generated by help2man)}{ $$1};   # correcting help2man comment'               \
              -E 's{^cgminer\s+[\d.]+$$}{$(MAN_NAME)};          # correcting DESCRIPTION section'            \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/cgminer.git



More information about the Pkg-bitcoin-commits mailing list