From nobody Thu Nov 07 09:28:09 2024 X-Original-To: dev-commits-ports-main@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 4XkcF5637zz5ccv7; Thu, 07 Nov 2024 09:28:09 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkcF540lYz4Dgv; Thu, 7 Nov 2024 09:28:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730971689; 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=VsguKgXr4vggS+I6F7t9AlQBd6/pe95eVhlP+M1GIZg=; b=tNR0JCM40PjEUDPdOHdDtZPGp5xcBOkJIE6dfkKAiHIdsfwjj3Zww/myrNaTt7K7SpCvhd scWy6idnWXs173d5Wr67bWmpuS+D6EXnyy43dgTX6G+btkaAt7VFyVjd316yb+C5GHT15S R95sKKjMKEUZELYQFrm82zfpR0wfUSawkT6NCcFazn5DpEArJK1oDPx1pFnANqO9JvkaKK dlZXfac276UDUEsOB+7OoB4gFb3QhMMB/y97QUNVMs6m+AmZPye3kUo0IUCg0onM1ln1kj vxmh3PHwZmP8zmTOxHX4UVL+p5KY6SesKhwkogNxboALBwtUpxiuespZAeytvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730971689; 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=VsguKgXr4vggS+I6F7t9AlQBd6/pe95eVhlP+M1GIZg=; b=E6fGyt4vWr0FMb88FAXEkMuPJLo+rPel3DmQ/YZ9h4lEugkluPK2dqSP+pPW2hqbYe/Mwu /sCQk2DybfFoPPkOyasVk4mK89tI5nmUEMpPCmGunzdhcZC7mpVx8idtMmgi58ZflIoC1z S+De6bu0gJulYc9MFyNAWuuiqSSRe4CYwi6lQrHWr33h6QiMk/G8ELRmoZ4KZOO7Jsq3Xw BSR16lxGSrZuw56BSmAie22R3Ab2ggdooa/14+cr1PCwRkbDqhecQ9Gkxa7EbVB750yl5y XT0vva/yfwj+usIWaO2LK6A+mqtGUFXIXcb0WhKBb8CnNYFVLPMoI8wMGzXYPQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730971689; a=rsa-sha256; cv=none; b=bm7CE1HBT7v8xdPnDYVLZ1Ew1g8YpSgHB28E8A6hNi+zsoe3/J2AT+Ve3gPu872oZUeWRW 4KlVG1yOtxQe1Dmx/bv2fY+w49WCFRnO9lzhmwUC5yFCJ/ZyRsOioI0v0AEzXhnw0jTrdt wUvehAXCHViwkgBfLNGpt6i/P4qGWw2BYIup/Kisv+XG/9lV0fHWM63WiQbl7NVMMqkeVt TfqEllkcmj70RnnhBe3HK38hg2tRSg6Y+VesIt5wm/XQkX4L1QbKXMYIDt5Ji+Im0Cc6qI Kp1rkW0VB06+HowVuy92oTUXlaBP4QsK6ecrATkGS148DCV7JroS2EScILowVg== 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 4XkcF53c6CzfpH; Thu, 7 Nov 2024 09:28:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A79S9Cg072477; Thu, 7 Nov 2024 09:28:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A79S9HK072474; Thu, 7 Nov 2024 09:28:09 GMT (envelope-from git) Date: Thu, 7 Nov 2024 09:28:09 GMT Message-Id: <202411070928.4A79S9HK072474@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: db8d31f33c8d - main - misc/py-torchvision: update 0.19.1 =?utf-8?Q?=E2=86=92?= 0.20.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db8d31f33c8d2db87d4051502b99eaa3af3717eb Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=db8d31f33c8d2db87d4051502b99eaa3af3717eb commit db8d31f33c8d2db87d4051502b99eaa3af3717eb Author: Yuri Victorovich AuthorDate: 2024-11-07 09:26:00 +0000 Commit: Yuri Victorovich CommitDate: 2024-11-07 09:27:56 +0000 misc/py-torchvision: update 0.19.1 → 0.20.1 --- misc/py-torchvision/Makefile | 17 +++++++++++------ misc/py-torchvision/distinfo | 6 +++--- misc/py-torchvision/files/patch-setup.py | 13 +++++++++++++ 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/misc/py-torchvision/Makefile b/misc/py-torchvision/Makefile index 3b7675ba91cf..393f54586782 100644 --- a/misc/py-torchvision/Makefile +++ b/misc/py-torchvision/Makefile @@ -1,27 +1,32 @@ PORTNAME= torchvision DISTVERSIONPREFIX= v -DISTVERSION= 0.19.1 +DISTVERSION= 0.20.1 CATEGORIES= misc # machine-learning PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= PyTorch: Datasets, transforms and models specific to computer vision -WWW= https://pytorch.org/vision/stable/index.html +WWW= https://pytorch.org/vision/stable/index.html \ + https://github.com/pytorch/vision LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -LIB_DEPENDS= libpng16.so:graphics/png +LIB_DEPENDS= libpng16.so:graphics/png \ + libwebp.so:graphics/webp PY_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} PY_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pillow>=5.3.0:graphics/py-pillow@${PY_FLAVOR} # image backend BUILD_DEPENDS= ${PY_DEPENDS} \ - ninja:devel/ninja # build uses the C compiler for C++ files w/out ninja, and fails + ${PYTHON_PKGNAMEPREFIX}fsspec>0:filesystems/py-fsspec@${PY_FLAVOR} \ + pybind11>0:devel/pybind11 \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +BUILD_DEPENDS+= ninja:devel/ninja # build uses the C compiler for C++ files w/out ninja, and fails RUN_DEPENDS= ${PY_DEPENDS} -USES= jpeg python -USE_PYTHON= distutils autoplist pytest # tests run in a very high memory ; in 0.17.1 tests fail to run, see https://github.com/pytorch/vision/issues/8278 +USES= compiler:c++17-lang jpeg python +USE_PYTHON= pep517 autoplist pytest # tests run in a very high memory ; in 0.17.1 tests fail to run, see https://github.com/pytorch/vision/issues/8278 USE_GITHUB= yes GH_ACCOUNT= pytorch diff --git a/misc/py-torchvision/distinfo b/misc/py-torchvision/distinfo index 5d53d88407f8..116e2c7c3703 100644 --- a/misc/py-torchvision/distinfo +++ b/misc/py-torchvision/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1726457299 -SHA256 (pytorch-vision-v0.19.1_GH0.tar.gz) = 083e75c467285595ec3eb3c7aa8493c19e53d7eb42f13046fb56a07c8897e5a8 -SIZE (pytorch-vision-v0.19.1_GH0.tar.gz) = 13135101 +TIMESTAMP = 1730948897 +SHA256 (pytorch-vision-v0.20.1_GH0.tar.gz) = 7e08c7f56e2c89859310e53d898f72bccc4987cd83e08cfd6303513da15a9e71 +SIZE (pytorch-vision-v0.20.1_GH0.tar.gz) = 13149651 diff --git a/misc/py-torchvision/files/patch-setup.py b/misc/py-torchvision/files/patch-setup.py new file mode 100644 index 000000000000..e31a70427aba --- /dev/null +++ b/misc/py-torchvision/files/patch-setup.py @@ -0,0 +1,13 @@ +- https://github.com/pytorch/vision/issues/8715 + +--- setup.py.orig 2024-11-07 08:59:48 UTC ++++ setup.py +@@ -228,7 +228,7 @@ def find_libpng(): + + library_dir = str(pngfix_dir / "lib") + include_dir = str(pngfix_dir / "include/libpng16") +- library = "libpng" ++ library = "png" + + return True, include_dir, library_dir, library +