From owner-freebsd-ports@freebsd.org Mon Nov 23 03:28:29 2020 Return-Path: Delivered-To: freebsd-ports@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 0F65447E253 for ; Mon, 23 Nov 2020 03:28:29 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CfXg02GM8z4pJ3 for ; Mon, 23 Nov 2020 03:28:27 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lf1-x129.google.com with SMTP id f11so21815104lfs.3 for ; Sun, 22 Nov 2020 19:28:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mime-version :content-transfer-encoding; bh=8tHGiMzauUiWxkZZaBCnsbHuU5BJ0iaoK2QDDVtjmP8=; b=OjtNQlq+xOA534Dd+KvTZyv/y21z9TgicemRXtvvzhNpdhE2bZZ8iXLYz8V7xRUDr7 HXLXj1ZpPlSg2AmoOJSkzzYjZrkRXZApMpHc42aFuaQtIYiUnwEzPmA79PZi+S6+t7cw RV6vOiknX4jcCxvQR1jUI4iGd0Crkh/DhK77molls0YM4WM1VLEfdIXi40j0qn7jQPZz cDpLGspfjoWD51OR0PUYHg7g/nYO/2nXD0JmxwHzDVRXODsuBXBV2iuFhp1knfkTTANq /5owVWaUH8hdbrgOMtpxocvYQAAXsIz9zPJx1kMlXZfdD59urG2l6wwnVNLcZroNvgNJ IN4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version :content-transfer-encoding; bh=8tHGiMzauUiWxkZZaBCnsbHuU5BJ0iaoK2QDDVtjmP8=; b=c0ofh2PSaOlzU0mEzWOanzdqE+qVgiYGWcswK66LPFHzLq7MJ9axwBapp3s4N7MLT1 z6fc3/8e+GK6Ln+B17/j78SlemVvq8giCTXeiVQu5e0Ep8Y6CiipW35E+Q8EpjlCjFQo Dzg8OKi1yz+Ti1DBK3fADH+HFXjg3joUChTHe6cLDBz3Ch+8PhvNsgo4venPUqwAhviT VhFTxE/SMpgVZWLnWJRGZjVjTQzepQ5cVdO3h2EOWcBjYY+qt9CKgkbHc9p0zkFwjA3h UzKZxV2NC1K81A88bCzZf1EgsOrV62QVILzsZTyg9iQtjjEqZvQObqQh2h1U/eQU4wn4 nTEQ== X-Gm-Message-State: AOAM533AiXgSntc3Rdsy+bDdnYJQR+gWLcN4SddcOeAAjMfJpTOu5wu5 5UOHmGTyhLjwtqioiDBzRxzm/t56k7g= X-Google-Smtp-Source: ABdhPJxWuGA4sasBwWnrMxvBmVI3en0ql4Yyw86JRgQNV1BikebMQY9DVSGH1AugSynVK6dBotG7wQ== X-Received: by 2002:ac2:4ecd:: with SMTP id p13mr12911112lfr.430.1606102106003; Sun, 22 Nov 2020 19:28:26 -0800 (PST) Received: from rimwks.local ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id z200sm1229404lfc.189.2020.11.22.19.28.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Nov 2020 19:28:25 -0800 (PST) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Mon, 23 Nov 2020 06:28:21 +0300 To: freebsd-ports@freebsd.org, Rozhuk Ivan Subject: Need help with python based port (home assistant) Message-ID: <20201123062821.6874db11@rimwks.local> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd12.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CfXg02GM8z4pJ3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=OjtNQlq+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::129 as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[freebsd.org,gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::129:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::129:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::129:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2020 03:28:29 -0000 Hi! Im trying to make Home Assistant port. It requires many deps: https://github.com/home-assistant/core/blob/dev/setup.py "aiohttp==3.7.1", "astral==1.10.1", "async_timeout==3.0.1", "attrs==19.3.0", "bcrypt==3.1.7", "certifi>=2020.6.20", "ciso8601==2.1.3", "httpx==0.16.1", "importlib-metadata==1.6.0;python_version<'3.8'", "jinja2>=2.11.2", "PyJWT==1.7.1", # PyJWT has loose dependency. We want the latest one. "cryptography==3.2", "pip>=8.0.3", "python-slugify==4.0.1", "pytz>=2020.1", "pyyaml==5.3.1", "requests==2.25.0", "ruamel.yaml==0.15.100", "voluptuous==0.12.0", "voluptuous-serialize==2.4.0", "yarl==1.4.2", we have most of them, but many ports have different versions. I made a hack: post-patch: @${REINPLACE_CMD} -e 's|requests==2.25.0|requests>=2.22.0|g' \ -e 's|cryptography==3.2|cryptography>=2.6.1|g' \ -e 's|aiohttp==3.7.1|aiohttp>=3.6.2|g' \ -e 's|==|>=|g' \ ${WRKSRC}/setup.py it force to use newer versions and make few downgrades. With this HA install and start. But on first start it show errors in console and download and install some python packets that was hacked version and some packets that was not in requires list. (I suspest it set as deps in plugins/componets) Questions: 1. Is it ok that I use hack to change required deps versions? Or how to deal with it? 2. Is it ok that HA download all deps that required into HA work dir? Should I add all these deps in port to prevent this? 3. If I set: USES=cpe python:3.8+ then some deps fail to install, but with DEFAULT_VERSIONS+=python=2.7 DEFAULT_VERSIONS+=python3=3.8 all install ok. Is it ok?