From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- net-nntp/newspost/files/CAN-2005-0101.patch | 11 ++++ .../newspost/files/newspost-2.1.1-glibc-2.10.patch | 57 ++++++++++++++++++ net-nntp/newspost/files/newspost-2.1.1-nntp.patch | 69 ++++++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 net-nntp/newspost/files/CAN-2005-0101.patch create mode 100644 net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch create mode 100644 net-nntp/newspost/files/newspost-2.1.1-nntp.patch (limited to 'net-nntp/newspost/files') diff --git a/net-nntp/newspost/files/CAN-2005-0101.patch b/net-nntp/newspost/files/CAN-2005-0101.patch new file mode 100644 index 000000000000..2bfdfc2c190d --- /dev/null +++ b/net-nntp/newspost/files/CAN-2005-0101.patch @@ -0,0 +1,11 @@ +--- base/socket.c.orig Tue Jan 18 11:08:02 2005 ++++ base/socket.c Tue Jan 18 11:10:08 2005 +@@ -126,7 +126,7 @@ + + i = 0; + pi = buffer; +- while (TRUE) { ++ while (read_count < STRING_BUFSIZE - 1) { + retval = read(sockfd, pi, 1); + if(retval < 0) + ui_socket_error(errno); diff --git a/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch b/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch new file mode 100644 index 000000000000..fdaa78cbefb7 --- /dev/null +++ b/net-nntp/newspost/files/newspost-2.1.1-glibc-2.10.patch @@ -0,0 +1,57 @@ +diff -ur newspost-2.1.1.orig/base/newspost.c newspost-2.1.1/base/newspost.c +--- newspost-2.1.1.orig/base/newspost.c 2003-04-23 18:33:23.000000000 +0300 ++++ newspost-2.1.1/base/newspost.c 2009-08-06 14:46:41.000000000 +0300 +@@ -342,7 +342,7 @@ + file = fopen(filename, "r"); + if (file != NULL) { + while (!feof(file)) { +- line = getline(line, file); ++ line = get_line(line, file); + if(line == NULL){ + text_buffer = buff_add(text_buffer, "\r\n"); + continue; +diff -ur newspost-2.1.1.orig/base/utils.c newspost-2.1.1/base/utils.c +--- newspost-2.1.1.orig/base/utils.c 2009-08-06 14:44:35.000000000 +0300 ++++ newspost-2.1.1/base/utils.c 2009-08-06 14:45:20.000000000 +0300 +@@ -43,7 +43,7 @@ + return NULL; + } + +-Buff * getline(Buff *buff, FILE *file){ ++Buff * get_line(Buff *buff, FILE *file){ + int c = fgetc(file); + buff = buff_free(buff); + while(TRUE){ +diff -ur newspost-2.1.1.orig/base/utils.h newspost-2.1.1/base/utils.h +--- newspost-2.1.1.orig/base/utils.h 2003-02-08 17:09:41.000000000 +0200 ++++ newspost-2.1.1/base/utils.h 2009-08-06 14:45:13.000000000 +0300 +@@ -26,7 +26,7 @@ + file_entry * file_entry_alloc(); + file_entry * file_entry_free(file_entry *fe); + +-Buff * getline(Buff *buff, FILE *file); ++Buff * get_line(Buff *buff, FILE *file); + Buff *buff_add(Buff *buff, char *data, ... ); + Buff * buff_free(Buff *buff); + Buff *buff_create(Buff *buff, char *data, ... ); +diff -ur newspost-2.1.1.orig/ui/options.c newspost-2.1.1/ui/options.c +--- newspost-2.1.1.orig/ui/options.c 2003-04-23 18:33:33.000000000 +0300 ++++ newspost-2.1.1/ui/options.c 2009-08-06 14:46:31.000000000 +0300 +@@ -332,7 +332,7 @@ + file = fopen(filename->data, "r"); + if (file != NULL) { + while (!feof(file)) { +- line = getline(line, file); ++ line = get_line(line, file); + linenum++; + if(line == NULL) continue; + +@@ -429,7 +429,7 @@ + linenum = 0; + while (linenum < 8) { + linenum++; +- line = getline(line, file); ++ line = get_line(line, file); + if(line == NULL) continue; + + switch (linenum) { diff --git a/net-nntp/newspost/files/newspost-2.1.1-nntp.patch b/net-nntp/newspost/files/newspost-2.1.1-nntp.patch new file mode 100644 index 000000000000..8779e8f36b47 --- /dev/null +++ b/net-nntp/newspost/files/newspost-2.1.1-nntp.patch @@ -0,0 +1,69 @@ +--- newspost-2.1.1.orig/base/nntp.c ++++ newspost-2.1.1/base/nntp.c +@@ -26,6 +26,10 @@ + *** Public Routines + **/ + ++int _nntp_post(const char *subject, newspost_data *data, ++ const char *buffer, long length, ++ boolean no_ui_updates); ++ + boolean nntp_logon(newspost_data *data) { + char buffer[STRING_BUFSIZE]; + +@@ -78,6 +82,35 @@ + int nntp_post(const char *subject, newspost_data *data, + const char *buffer, long length, + boolean no_ui_updates) { ++ int retval = _nntp_post(subject, data, buffer, length, no_ui_updates); ++ ++ if (retval == POSTING_FAILED-64) { ++ /* try log out then back in */ ++ ui_nntp_posting_retry(); ++ nntp_logoff(); ++ socket_close(); ++ sleep(5); ++ ++ /* create the socket */ ++ ui_socket_connect_start(data->address->data); ++ retval = socket_create(data->address->data, data->port); ++ if (retval < 0) ++ return retval; ++ ui_socket_connect_done(); ++ ++ ui_nntp_logon_start(data->address->data); ++ if (nntp_logon(data) == FALSE) ++ return POSTING_FAILED; ++ ui_nntp_logon_done(); ++ ++ retval = _nntp_post(subject, data, buffer, length, no_ui_updates); ++ } ++ return retval; ++} ++ ++int _nntp_post(const char *subject, newspost_data *data, ++ const char *buffer, long length, ++ boolean no_ui_updates) { + char response[STRING_BUFSIZE]; + const char *pi; + long i, chunksize; +@@ -95,7 +128,7 @@ + if (strncmp(response, NNTP_PROCEED_WITH_POST, 3) != 0) { + /* this shouldn't really happen */ + ui_nntp_unknown_response(response); +- return POSTING_FAILED; ++ return POSTING_FAILED-64; + } + + buff = buff_add(buff, "From: %s\r\n", data->from->data); +--- newspost-2.1.1.orig/base/utils.c ++++ newspost-2.1.1/base/utils.c +@@ -44,7 +44,7 @@ + } + + Buff * getline(Buff *buff, FILE *file){ +- char c = fgetc(file); ++ int c = fgetc(file); + buff = buff_free(buff); + while(TRUE){ + if((c == '\n') -- cgit v1.2.3-65-gdbad