pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

fastp: Patch main() to return EX_OK after usage message



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon4000%gmail.com@localhost>
Pushed By:	outpaddling
Date:		Wed May 31 11:15:14 2023 -0500
Changeset:	fe080f0eb2a9964eb97ed3eae8b65fb9a753d044

Added Files:
	fastp/patches/patch-src_main.cpp

Log Message:
fastp: Patch main() to return EX_OK after usage message

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fe080f0eb2a9964eb97ed3eae8b65fb9a753d044

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 fastp/patches/patch-src_main.cpp | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diffs:
diff --git a/fastp/patches/patch-src_main.cpp b/fastp/patches/patch-src_main.cpp
new file mode 100644
index 0000000000..28e5bf9189
--- /dev/null
+++ b/fastp/patches/patch-src_main.cpp
@@ -0,0 +1,17 @@
+--- src/main.cpp.orig	2021-10-19 02:19:29 UTC
++++ src/main.cpp
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <sysexits.h>
+ #include "fastqreader.h"
+ #include "unittest.h"
+ #include <time.h>
+@@ -18,7 +19,7 @@ int main(int argc, char* argv[]){
+     if(argc == 1) {
+         cerr << "fastp: an ultra-fast all-in-one FASTQ preprocessor" << endl << "version " << FASTP_VER << endl;
+         //cerr << "fastp --help to see the help"<<endl;
+-        //return 0;
++        return EX_USAGE;
+     }
+     if (argc == 2 && strcmp(argv[1], "test")==0){
+         UnitTest tester;


Home | Main Index | Thread Index | Old Index