summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-01-02 13:40:00 +0100
committerDavid Seifert <soap@gentoo.org>2021-01-02 13:40:00 +0100
commit48ec37935d83870204e2bd1fa557d65b7c41eddc (patch)
tree83eede0c5e6a5a54e294b248c0ae767555077ce1 /net-misc/aget/files
parentmedia-gfx/figurine: Port to EAPI 7 (diff)
downloadgentoo-48ec37935d83870204e2bd1fa557d65b7c41eddc.tar.gz
gentoo-48ec37935d83870204e2bd1fa557d65b7c41eddc.tar.bz2
gentoo-48ec37935d83870204e2bd1fa557d65b7c41eddc.zip
net-misc/aget: Port to EAPI 7
Closes: https://github.com/gentoo/gentoo/pull/18907 Closes: https://bugs.gentoo.org/707432 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-misc/aget/files')
-rw-r--r--net-misc/aget/files/aget-0.4.1-fno-common.patch66
-rw-r--r--net-misc/aget/files/aget-0.4.1-overflow.patch (renamed from net-misc/aget/files/aget-0.4.1-r1.patch)4
2 files changed, 68 insertions, 2 deletions
diff --git a/net-misc/aget/files/aget-0.4.1-fno-common.patch b/net-misc/aget/files/aget-0.4.1-fno-common.patch
new file mode 100644
index 000000000000..e881cc39b88b
--- /dev/null
+++ b/net-misc/aget/files/aget-0.4.1-fno-common.patch
@@ -0,0 +1,66 @@
+--- a/Aget.c
++++ b/Aget.c
+@@ -33,6 +33,8 @@ extern pthread_t hthread;
+ #include <errno.h>
+ extern int errno;
+
++extern time_t t_start, t_finish;
++
+
+ void get(struct request *req)
+ {
+--- a/Head.c
++++ b/Head.c
+@@ -34,6 +34,8 @@
+ extern int errno;
+ extern int h_errno;
+
++time_t t_start, t_finish;
++
+ #ifdef SOLARIS
+ extern const char *hstrerror(int);
+ #endif
+--- a/Misc.h
++++ b/Misc.h
+@@ -24,7 +24,7 @@ void Log(char *, ...); /* Log */
+ void updateProgressBar(float, float);
+ void handleHttpRetcode(char *);
+
+-time_t t_start, t_finish;
++extern time_t t_start, t_finish;
+
+ #endif
+
+--- a/Signal.c
++++ b/Signal.c
+@@ -16,6 +16,8 @@ extern struct request *req;
+ extern int bwritten;
+ extern pthread_mutex_t bwritten_mutex;
+
++sigset_t signal_set;
++
+ void * signal_waiter(void *arg)
+ {
+ int signal;
+--- a/Signal.h
++++ b/Signal.h
+@@ -4,7 +4,7 @@
+ #include <signal.h>
+ #include <pthread.h>
+
+-sigset_t signal_set;
++extern sigset_t signal_set;
+
+ void * signal_waiter(void *arg);
+ void sigint_handler(void);
+--- a/main.c
++++ b/main.c
+@@ -15,6 +15,8 @@
+ #include "main.h"
+ #include <errno.h>
+
++extern sigset_t signal_set;
++
+ int main(int argc, char **argv)
+ {
+ extern char *optarg;
diff --git a/net-misc/aget/files/aget-0.4.1-r1.patch b/net-misc/aget/files/aget-0.4.1-overflow.patch
index fe804901528c..998dc128e3dd 100644
--- a/net-misc/aget/files/aget-0.4.1-r1.patch
+++ b/net-misc/aget/files/aget-0.4.1-overflow.patch
@@ -37,8 +37,8 @@ than setting GETRECVSIZ bytes to the value of 0. By Kevin Pyle.
dr = recv(sd, rbuf, GETRECVSIZ, 0);
if ((td->offset + dr) > foffset)
dw = pwrite(td->fd, rbuf, foffset - td->offset, td->offset);
---- aget-0.4.1/Head.c 2010-09-20 03:41:27.236019179 +0200
-+++ aget-0.4.1/Head.c 2010-09-20 03:43:00.087098655 +0200
+--- aget-0.4.1/Head.c
++++ aget-0.4.1/Head.c
@@ -1,5 +1,4 @@
#ifndef SOLARIS
-#define _XOPEN_SOURCE 500