From owner-svn-ports-head@freebsd.org Wed Mar 3 18:07:48 2021 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 345A254AD18; Wed, 3 Mar 2021 18:07:48 +0000 (UTC) (envelope-from sunpoet@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DrMRL51m9z4fBm; Wed, 3 Mar 2021 18:07:42 +0000 (UTC) (envelope-from sunpoet@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 510A2648D; Wed, 3 Mar 2021 18:07:39 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 123I7d0n039980; Wed, 3 Mar 2021 18:07:39 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 123I7cTQ039978; Wed, 3 Mar 2021 18:07:38 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202103031807.123I7cTQ039978@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Wed, 3 Mar 2021 18:07:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r567121 - in head/sysutils/agedu: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/sysutils/agedu: . files X-SVN-Commit-Revision: 567121 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.34 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: Wed, 03 Mar 2021 18:07:48 -0000 Author: sunpoet Date: Wed Mar 3 18:07:38 2021 New Revision: 567121 URL: https://svnweb.freebsd.org/changeset/ports/567121 Log: Convert REINPLACE_CMD to patch file Added: head/sysutils/agedu/files/ head/sysutils/agedu/files/patch-httpd.c (contents, props changed) Modified: head/sysutils/agedu/Makefile Modified: head/sysutils/agedu/Makefile ============================================================================== --- head/sysutils/agedu/Makefile Wed Mar 3 18:07:34 2021 (r567120) +++ head/sysutils/agedu/Makefile Wed Mar 3 18:07:38 2021 (r567121) @@ -18,7 +18,4 @@ GNU_CONFIGURE= yes PLIST_FILES= bin/agedu \ man/man1/agedu.1.gz -post-patch: - @${REINPLACE_CMD} -e 's|HOST_NAME_MAX|_POSIX_&|' ${WRKSRC}/httpd.c - .include Added: head/sysutils/agedu/files/patch-httpd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/agedu/files/patch-httpd.c Wed Mar 3 18:07:38 2021 (r567121) @@ -0,0 +1,11 @@ +--- httpd.c.orig 2020-07-05 01:20:14 UTC ++++ httpd.c +@@ -570,7 +570,7 @@ static int make_listening_sockets(struct listenfds *fd + portstr = NULL; /* normalise NULL and empty string */ + + if (!address) { +- char hostname[HOST_NAME_MAX]; ++ char hostname[_POSIX_HOST_NAME_MAX]; + if (gethostname(hostname, sizeof(hostname)) < 0) { + perror("hostname"); + return -1;