Bug 280819 - archivers/py-zlib-ng: Update to 0.5.0
Summary: archivers/py-zlib-ng: Update to 0.5.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL: https://github.com/pycompression/pyth...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-14 18:17 UTC by Oleg Sidorkin
Modified: 2024-08-22 16:02 UTC (History)
1 user (show)

See Also:


Attachments
Patch to update archivers/py-zlib-ng from 0.4.3 to 0.5.0 (via git am) (1.53 KB, patch)
2024-08-14 18:17 UTC, Oleg Sidorkin
osidorkin: maintainer-approval+
Details | Diff
252760: Patch to update archivers/py-zlib-ng from 0.4.3 to 0.5.0 (via git am) #2 (2.38 KB, patch)
2024-08-22 14:09 UTC, Oleg Sidorkin
osidorkin: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Sidorkin 2024-08-14 18:17:37 UTC
Created attachment 252760 [details]
Patch to update archivers/py-zlib-ng from 0.4.3 to 0.5.0 (via git am)

py-zlib-ng released an update, so here's a patch to update the port.

Poudriere checks passed, homeassistant is OK to work with it.

Spotted by: portscout
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-14 18:44:19 UTC
BUILD_DEPENDS=cmake:devel/cmake-core
why not:
USES=cmake:indirect ?
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-14 18:51:26 UTC
ERROR Missing dependencies:
        setuptools>=64
*** Error code 1

devel/py-setuptools is 63.1.0_1.
Comment 3 Oleg Sidorkin 2024-08-22 14:09:00 UTC
Created attachment 253018 [details]
252760: Patch to update archivers/py-zlib-ng from 0.4.3 to 0.5.0 (via git am) #2

Sorry, forgot to add a patch, that relaxes setuptool requirement (port is ok with the version from ports).

Also replaced cmake requirement with USES=cmake:indirect
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-22 15:19:45 UTC
(In reply to Oleg Sidorkin from comment #3)
INSTALL_TARGET=install-strip doesn't work here:
Warning: 'lib/python3.11/site-packages/zlib_ng/zlib_ng.cpython-311.so' is not stripped consider trying INSTALL_TARGET=install-strip or using ${STRIP_CMD}

But replace it with this work:
post-install:
        ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME:S/-/_/}/${PORTNAME:S/-/_/}.cpython-${PYTHON_VER:S/.//}.so
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-08-22 16:00:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=761e05d92d01e3b4e56d0f6c95607d61b45d7966

commit 761e05d92d01e3b4e56d0f6c95607d61b45d7966
Author:     Oleg Sidorkin <osidorkin@gmail.com>
AuthorDate: 2024-08-22 15:51:59 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-22 15:51:59 +0000

    archivers/py-zlib-ng: Update 0.4.3 → 0.5.0

    Changelog:
    https://github.com/pycompression/python-zlib-ng/releases/tag/v0.5.0

    Improve port:
    * Replace cmake requirement from BUILD_DEPENDS to USES=cmake:indirect.
    * INSTALL_TARGET=install-strip doesn't work for this port - replace it
      with ${STRIP_CMD}.

    PR:     280819

 archivers/py-zlib-ng/Makefile                         | 11 ++++++-----
 archivers/py-zlib-ng/distinfo                         |  6 +++---
 archivers/py-zlib-ng/files/patch-pyproject.toml (new) |  9 +++++++++
 3 files changed, 18 insertions(+), 8 deletions(-)
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2024-08-22 16:02:28 UTC
Thanks.