Bug 290725 - archivers/py-brotli: Update to 1.2.0
Summary: archivers/py-brotli: Update to 1.2.0
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
: 290726 (view as bug list)
Depends on: 290637
Blocks:
  Show dependency treegraph
 
Reported: 2025-11-01 22:55 UTC by Daniel Engberg
Modified: 2025-11-17 21:08 UTC (History)
10 users (show)

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Patch for py-brotli (6.82 KB, patch)
2025-11-01 22:55 UTC, Daniel Engberg
no flags Details | Diff
Patch for py-brotli (7.69 KB, patch)
2025-11-08 17:47 UTC, Daniel Engberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2025-11-01 22:55:16 UTC
Created attachment 265087 [details]
Patch for py-brotli

* Switch from PYPI to GitHub (new version not hosted on PYPI)
* Simplify port Makefile

Compile tested on FreeBSD 14.3-RELEASE (amd64) (make, make check-plist)

Poudriere testport OK 13.5-RELEASE (amd64)
Poudriere testport OK 13.5-RELEASE (i386)
Poudriere testport OK 14.3-RELEASE (amd64)
Comment 1 Paavo-Einari Kaipila 2025-11-01 23:04:29 UTC
*** Bug 290726 has been marked as a duplicate of this bug. ***
Comment 2 Paavo-Einari Kaipila 2025-11-01 23:08:32 UTC
Because this and archivers/brotli are built from the same (original) source distribution, this could be turned to a slave port too. It would save a tiny bit of sunpoet's time for other ports and archivers/brotli wouldn't have an automatic blocker for future updates.
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2025-11-02 08:03:29 UTC
(In reply to Paavo-Einari Kaipila from comment #2)
Yes, in theory but in this case it'll be more workarounds for it to work in the port Makefile than making it smaller because it's a slaveport.
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2025-11-08 17:47:55 UTC
Created attachment 265274 [details]
Patch for py-brotli

Minor adjustments
Comment 5 Po-Chuan Hsieh freebsd_committer freebsd_triage 2025-11-08 19:10:59 UTC
(In reply to Daniel Engberg from comment #4)

The sdist is available on PYPI (maybe it is not there at the first time).

I'll commit https://people.freebsd.org/~sunpoet/patch/archivers-py-brotli.txt instead.
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2025-11-09 00:59:55 UTC
Manifest.in is broken in your patch
Comment 7 Po-Chuan Hsieh freebsd_committer freebsd_triage 2025-11-11 08:00:14 UTC
I don't follow you.
Comment 9 david 2025-11-16 17:43:57 UTC
In the mean time, as of the ports tree at main-n725933-c868fe1f9fcd:
* archivers/brotli is updated to brotli-1.2.0,1
* archivers/py-brotli is at py311-brotli-1.1.0
* an attempt to build a package for archivers/py-brotli using poudriere with the ports tree at main-n725933-c868fe1f9fcd fails, claiming:

...
=======================<phase: build-depends  >============================
===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0
===>   py311-brotli-1.1.0 depends on package: brotli>=1.1.0,1<1.1.0_99,1 - not found
===>   Installing existing package /packages/All/brotli-1.2.0,1.pkg
[freebeast.catwhisker.org] Installing brotli-1.2.0,1...
[freebeast.catwhisker.org] Extracting brotli-1.2.0,1: .......... done
===>   py311-brotli-1.1.0 depends on package: brotli>=1.1.0,1<1.1.0_99,1 - not found
*** Error code 1
....

(which causes ports that depend on archivers/py-brotli to also fail).

Or so it seems to me.
Comment 10 Daniel Engberg freebsd_committer freebsd_triage 2025-11-16 19:20:32 UTC
(In reply to david from comment #9)
Expected as py-brotli needs to be in sync, the attached patch fixes the build on my end at least.
Comment 11 Raivo Hool 2025-11-17 08:43:09 UTC
The new version is on pypi, actually, just that its filename format has changed from Brotli-1.1.0.tar.gz (uppercase) to brotli-1.2.0.tar.gz. Also, setup.py had been reworked to use double quotes instead of single ones, one of the reasons that made the patch fail.
Comment 12 Wes Morgan 2025-11-17 14:02:45 UTC
Since devel/brotli was updated to 1.2.0, there are a lot of broken ports until this is committed or the other is reverted.
Comment 13 Einar Bjarni Halldórsson 2025-11-17 20:44:56 UTC
Committed in https://cgit.freebsd.org/ports/commit/?id=ba641e09b817c181a7a3837a61347710eb826104
Comment 14 Po-Chuan Hsieh freebsd_committer freebsd_triage 2025-11-17 21:08:18 UTC
Updated to 1.2.0 in ports ba641e09b817c181a7a3837a61347710eb826104.