Date: Sat, 26 Sep 2020 12:54:58 +0000 (UTC) From: =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r550177 - in head/sysutils/retail: . files Message-ID: <202009261254.08QCswlp001468@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: se Date: Sat Sep 26 12:54:58 2020 New Revision: 550177 URL: https://svnweb.freebsd.org/changeset/ports/550177 Log: Fix build with -fno-common Added: head/sysutils/retail/files/patch-src_getopt.c (contents, props changed) head/sysutils/retail/files/patch-src_main.c (contents, props changed) head/sysutils/retail/files/patch-src_open__files.c (contents, props changed) head/sysutils/retail/files/patch-src_read__files.c (contents, props changed) head/sysutils/retail/files/patch-src_retail.h (contents, props changed) Modified: head/sysutils/retail/Makefile head/sysutils/retail/files/patch-Makefile.in Modified: head/sysutils/retail/Makefile ============================================================================== --- head/sysutils/retail/Makefile Sat Sep 26 12:41:18 2020 (r550176) +++ head/sysutils/retail/Makefile Sat Sep 26 12:54:58 2020 (r550177) @@ -3,6 +3,7 @@ PORTNAME= retail PORTVERSION= 1.0.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://xjack.org/retail/download/ \ http://www.bsdstore.ru/downloads/ Modified: head/sysutils/retail/files/patch-Makefile.in ============================================================================== --- head/sysutils/retail/files/patch-Makefile.in Sat Sep 26 12:41:18 2020 (r550176) +++ head/sysutils/retail/files/patch-Makefile.in Sat Sep 26 12:54:58 2020 (r550177) @@ -1,12 +1,11 @@ ---- Makefile.in-orig 2010-05-23 01:04:54.000000000 +0400 -+++ Makefile.in 2010-05-23 01:05:04.000000000 +0400 -@@ -1,6 +1,8 @@ +--- Makefile.in.orig 2003-04-04 20:41:30 UTC ++++ Makefile.in +@@ -3,6 +3,8 @@ DESTDIR = default: - cd src ; make - + cd src ; make + +all: default + clean: - cd src ; make clean - rm -f *~ - + cd src ; make clean + rm -f *~ Added: head/sysutils/retail/files/patch-src_getopt.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/retail/files/patch-src_getopt.c Sat Sep 26 12:54:58 2020 (r550177) @@ -0,0 +1,13 @@ +--- src/getopt.c.orig 2003-03-18 18:24:14 UTC ++++ src/getopt.c +@@ -21,6 +21,10 @@ + /* Yee ole includes (I put this all in one file for my sanity) */ + #include "include.h" + ++short int debug; /* do we go into debug mode? (developer test only */ ++char *suffix; /* suffix of the file we open to store stats in */ ++char *prefix; /* prefix directory for where we put stats files */ ++ + /* our 'print usage to user' function */ + void proc_args_usage(char *myname) { + fprintf(stderr, "retail v %s\n", VERSION); Added: head/sysutils/retail/files/patch-src_main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/retail/files/patch-src_main.c Sat Sep 26 12:54:58 2020 (r550177) @@ -0,0 +1,11 @@ +--- src/main.c.orig 2003-03-18 17:48:18 UTC ++++ src/main.c +@@ -21,6 +21,8 @@ + /* Yee ole includes (I put this all in one file for my sanity) */ + #include "include.h" + ++short int retval; /* what value do we return at the end of all this */ ++char **files; /* an array of all the file's we'll be opening */ + + int main(int argc, char **argv) { + long int i; Added: head/sysutils/retail/files/patch-src_open__files.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/retail/files/patch-src_open__files.c Sat Sep 26 12:54:58 2020 (r550177) @@ -0,0 +1,13 @@ +--- src/open_files.c.orig 2003-03-18 17:48:22 UTC ++++ src/open_files.c +@@ -21,6 +21,10 @@ + /* Yee ole includes (I put this all in one file for my sanity) */ + #include "include.h" + ++FILE *in_file; /* the files we'll be reading for input */ ++FILE *in_stat; /* the file we're using to store our place in in_file */ ++char *st_filename; /* the var we store the name of the offset file */ ++ + int open_infile(char *fname) { + /* open our input file read only */ + in_file = fopen(fname, "r"); Added: head/sysutils/retail/files/patch-src_read__files.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/retail/files/patch-src_read__files.c Sat Sep 26 12:54:58 2020 (r550177) @@ -0,0 +1,11 @@ +--- src/read_files.c.orig 2003-03-18 17:48:28 UTC ++++ src/read_files.c +@@ -21,6 +21,8 @@ + /* Yee ole includes (I put this all in one file for my sanity) */ + #include "include.h" + ++FILE_STAT f; ++ + int read_infile_llcheck() { + long int i; + short int found = 0; Added: head/sysutils/retail/files/patch-src_retail.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/retail/files/patch-src_retail.h Sat Sep 26 12:54:58 2020 (r550177) @@ -0,0 +1,37 @@ +--- src/retail.h.orig 2003-03-18 17:48:46 UTC ++++ src/retail.h +@@ -19,16 +19,16 @@ + */ + + /* global variables */ +-short int retval; /* what value do we return at the end of all this */ +-short int debug; /* do we go into debug mode? (developer test only */ +-FILE *in_file; /* the files we'll be reading for input */ +-FILE *in_stat; /* the file we're using to store our place in in_file */ +-char *st_filename; /* the var we store the name of the offset file */ +- +-char **files; /* an array of all the file's we'll be opening */ +-char *suffix; /* suffix of the file we open to store stats in */ +-char *prefix; /* prefix directory for where we put stats files */ ++extern short int retval; /* what value do we return at the end of all this */ ++extern short int debug; /* do we go into debug mode? (developer test only */ ++extern FILE *in_file; /* the files we'll be reading for input */ ++extern FILE *in_stat; /* the file we're using to store our place in in_file */ ++extern char *st_filename; /* the var we store the name of the offset file */ + ++extern char **files; /* an array of all the file's we'll be opening */ ++extern char *suffix; /* suffix of the file we open to store stats in */ ++extern char *prefix; /* prefix directory for where we put stats files */ ++ + /* structure for our info on the file */ + typedef struct { + long int ipos; /* last position as an int */ +@@ -36,7 +36,7 @@ typedef struct { + char *last_line; /* last known line in the file */ + } FILE_STAT; + +-FILE_STAT f; ++extern FILE_STAT f; + + /* our local functions */ + int proc_args(int argc, char **argv);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009261254.08QCswlp001468>