From nobody Sun Dec 18 17:43:48 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZqvT1Lwtz1Glvq; Sun, 18 Dec 2022 17:43:49 +0000 (UTC) (envelope-from git@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 4NZqvT0wt5z4JJl; Sun, 18 Dec 2022 17:43:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9yzw4KqNEoQ0B3DE3luztFKu2R7lmeIu2PVleCJfcvs=; b=SGQkMlr0LRAgByhLOHfjvtxfbeV1eL2/dw3I9YG3KA9VvPFiq3Z2LDyG0IxH4DCU3ZCI4i qq3CkVg0g6bm5jrGrDfMkGzNfo+jQLqx2M46/3U1IMfOeIuCbwyWxrs/Si+yp+FgCLqBNO rVuOFRmlHgkN3VK4OgfLE/eJ2vier+1CowJHso86TAUjawv7IMDPY0ZcfybQIDU3JUvbds hVSssbjSvn4sOwjMOY7DSf+2oxdF1GjTFMFjCOkuyf/iRMRO7VgGGNsFFEs18bvw+sAWLA 5P/7x6H0UHX5gaJYyF2uBFnUdJBZE/AXNNMEqvpmWnMYeAVDxR4BSX0yTN7JyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9yzw4KqNEoQ0B3DE3luztFKu2R7lmeIu2PVleCJfcvs=; b=TzY5t5TIbi68sif/03U2N/MXp6ZGchh4Kh1WZNX8ysZaKXpS05slduKLBJoGFGy/T6GS5Q QCmA+5tKw0ufeuPMeJ7PqQbM0196qQSaJGF9R+WosxB11aOYnDRwY/Jj0wQ5SijSEM2I6w J1NCKlBNitlCd2IOk/iwlWCr1+nTK/LR5fcuHl5IUUTscScPR0Mt51lzJOT2w6rvzPKyDz JRpkwNJXlTxpamQJMd5yfzHK2YlpzwzVZvjK7XrXoiXiRn0dGmM8EmGOrxxB/qiKjfNYdk uD082IsO38BBDs2WLN7vmZ49niUkb0ba30I66tuWHk1U07wuC0oGIXd3PIVoiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385429; a=rsa-sha256; cv=none; b=urGzF3Ec/9NRxnY5NKTTvc9lY09QpXHJVcGAmHLvgQ4adij7JQp6GiXCrreKJJwKDq7MO7 RiEZznih7X4yYJfV08ZvQBPMAUSYogX6TaaiQZItXxeNvS7+gwffu9yAgPOzC9FyxCfsrV oWand1jPY5xaR3zv10A+Anzrtu/X4aZRlxPUfX6Uoe14qve/DLDEsjsA0MuVpBTHeVOvId 8w4tbHumzbtvL8LQB2cdHd/lkJDDYvu2YOdFH9RfAHADiuZJXw3X0wFvvPb/0kMF+ERyTm AowGrUqkMBzSKmD/QmSPEB1fblQqCSpVtk/LgeJVRPrGe60D7B9G66pRmOI9SQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZqvS6qKZzPwc; Sun, 18 Dec 2022 17:43:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BIHhmSR006413; Sun, 18 Dec 2022 17:43:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BIHhmDO006412; Sun, 18 Dec 2022 17:43:48 GMT (envelope-from git) Date: Sun, 18 Dec 2022 17:43:48 GMT Message-Id: <202212181743.2BIHhmDO006412@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 7eda11c87c30 - main - astro/cfitsio: fix build with clang 15 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7eda11c87c30c735058e9393d54b631a74cf566a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=7eda11c87c30c735058e9393d54b631a74cf566a commit 7eda11c87c30c735058e9393d54b631a74cf566a Author: Dimitry Andric AuthorDate: 2022-12-10 18:03:37 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:32:40 +0000 astro/cfitsio: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that astro/cfitsio failed to build with clang 15: drvrnet.c:3887:23: warning: call to undeclared function 'gethostbyname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hostent = gethostbyname(localhost); ^ drvrnet.c:3887:21: error: incompatible integer to pointer conversion assigning to 'struct hostent *' from 'int' [-Wint-conversion] hostent = gethostbyname(localhost); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. This is because the configure script defines _XOPEN_SOURCE=700, for unclear reasons, and this hides the gethostbyname() declaration in /usr/include/netdb.h. Fix it by removing the line that adds the define. PR: 268302 Approved by: portmgr (tcberner) MFH: 2022Q4 --- astro/cfitsio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/astro/cfitsio/Makefile b/astro/cfitsio/Makefile index f2ad34c31b6d..988bdbf15325 100644 --- a/astro/cfitsio/Makefile +++ b/astro/cfitsio/Makefile @@ -30,6 +30,7 @@ OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|||' ${WRKSRC}/*.[chl] + @${REINPLACE_CMD} -e '/#define _XOPEN_SOURCE 700/d' ${WRKSRC}/configure do-install: cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/