From owner-svn-ports-head@freebsd.org Tue Sep 22 19:29:32 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2BE613F4092; Tue, 22 Sep 2020 19:29:32 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BwrwX0Pywz4VRK; Tue, 22 Sep 2020 19:29:32 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E5DDC24357; Tue, 22 Sep 2020 19:29:31 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08MJTVH3041108; Tue, 22 Sep 2020 19:29:31 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08MJTUrV041102; Tue, 22 Sep 2020 19:29:30 GMT (envelope-from se@FreeBSD.org) Message-Id: <202009221929.08MJTUrV041102@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: se set sender to se@FreeBSD.org using -f From: =?UTF-8?Q?Stefan_E=c3=9fer?= Date: Tue, 22 Sep 2020 19:29:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r549626 - in head/net/aget: . files X-SVN-Group: ports-head X-SVN-Commit-Author: se X-SVN-Commit-Paths: in head/net/aget: . files X-SVN-Commit-Revision: 549626 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2020 19:29:32 -0000 Author: se Date: Tue Sep 22 19:29:30 2020 New Revision: 549626 URL: https://svnweb.freebsd.org/changeset/ports/549626 Log: Fix build with -fno-common Remove -fcommon option from Makefile Added: head/net/aget/files/ head/net/aget/files/patch-Download.c (contents, props changed) head/net/aget/files/patch-Head.c (contents, props changed) head/net/aget/files/patch-Misc.h (contents, props changed) head/net/aget/files/patch-Signal.h (contents, props changed) head/net/aget/files/patch-main.c (contents, props changed) Modified: head/net/aget/Makefile Modified: head/net/aget/Makefile ============================================================================== --- head/net/aget/Makefile Tue Sep 22 19:23:24 2020 (r549625) +++ head/net/aget/Makefile Tue Sep 22 19:29:30 2020 (r549626) @@ -3,6 +3,7 @@ PORTNAME= aget PORTVERSION= 0.4.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.enderunix.org/aget/ @@ -14,8 +15,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LDFLAGS+= -pthread -# Fix build with clang11 -CFLAGS+= -fcommon PLIST_FILES= bin/aget man/man1/aget.1.gz Added: head/net/aget/files/patch-Download.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/aget/files/patch-Download.c Tue Sep 22 19:29:30 2020 (r549626) @@ -0,0 +1,11 @@ +--- Download.c.orig 2009-05-12 05:30:23 UTC ++++ Download.c +@@ -107,7 +107,7 @@ void * http_get(void *arg) { + pthread_mutex_unlock(&bwritten_mutex); + + while (td->offset < foffset) { +- memset(rbuf, GETRECVSIZ, 0); ++ memset(rbuf, 0, GETRECVSIZ); + dr = recv(sd, rbuf, GETRECVSIZ, 0); + if ((td->offset + dr) > foffset) + dw = pwrite(td->fd, rbuf, foffset - td->offset, td->offset); Added: head/net/aget/files/patch-Head.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/aget/files/patch-Head.c Tue Sep 22 19:29:30 2020 (r549626) @@ -0,0 +1,10 @@ +--- Head.c.orig 2009-05-12 05:22:42 UTC ++++ Head.c +@@ -2,7 +2,6 @@ + #define _XOPEN_SOURCE 500 + #endif + +- + #include + #include + #include Added: head/net/aget/files/patch-Misc.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/aget/files/patch-Misc.h Tue Sep 22 19:29:30 2020 (r549626) @@ -0,0 +1,11 @@ +--- Misc.h.orig 2009-05-12 05:24:18 UTC ++++ 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 + Added: head/net/aget/files/patch-Signal.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/aget/files/patch-Signal.h Tue Sep 22 19:29:30 2020 (r549626) @@ -0,0 +1,11 @@ +--- Signal.h.orig 2020-09-22 19:16:50 UTC ++++ Signal.h +@@ -4,7 +4,7 @@ + #include + #include + +-sigset_t signal_set; ++extern sigset_t signal_set; + + void * signal_waiter(void *arg); + void sigint_handler(void); Added: head/net/aget/files/patch-main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/aget/files/patch-main.c Tue Sep 22 19:29:30 2020 (r549626) @@ -0,0 +1,12 @@ +--- main.c.orig 2009-05-12 05:41:23 UTC ++++ main.c +@@ -15,6 +15,9 @@ + #include "main.h" + #include + ++sigset_t signal_set; ++time_t t_start, t_finish; ++ + int main(int argc, char **argv) + { + extern char *optarg;