Bug 266002

Summary: net/cloud-init: update jsonschema dependency
Product: Ports & Packages Reporter: James TD Smith <ahktenzero+freebsd>
Component: Individual Port(s)Assignee: Larry Rosenman <ler>
Status: Closed FIXED    
Severity: Affects Only Me CC: andrey, ler
Priority: --- Flags: andrey: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Change jsonschema dependency none

Description James TD Smith 2022-08-23 16:07:00 UTC
cloud-init currently depends on devel/py-jsonschema3, so it cannot be installed alongside other ports which depend on devel/py-jsonschema, which is almost every other port which requires jsonschema including docker-compose and iocage. 

The version pin for jsonschema was removed from cloud-init in version 21.4 so we should be able to switch the dependency for the port to the newer one. I have done so in my local ports tree and it seems to be working properly, patch is attached. The addition to SHEBANG_FILES was required to get stage-qa to pass, not sure if that was due to my changes or something missed in the update to 22.3.
Comment 1 James TD Smith 2022-08-23 16:09:08 UTC
Created attachment 236080 [details]
Change jsonschema dependency
Comment 2 Andrey Fesenko 2022-08-23 19:18:16 UTC
Yes upstream now use jsonschema-4 too.
Get:83 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 python3-jsonschema all 4.6.0-3ubuntu1 [63.6 kB]
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-08-24 16:55:17 UTC
A commit in branch main references this bug:

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

commit e33bc5e3a8b52226bab0ab7d87192ceec741885c
Author:     Larry Rosenman <ler@FreeBSD.org>
AuthorDate: 2022-08-24 16:54:13 +0000
Commit:     Larry Rosenman <ler@FreeBSD.org>
CommitDate: 2022-08-24 16:54:13 +0000

    net/cloud-init: update jsonschema dependency

    PR: 266002
    Submitted By: ahktenzero+freebsd@mohorovi.cc

 net/cloud-init/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 4 Larry Rosenman freebsd_committer freebsd_triage 2022-08-24 16:55:52 UTC
Committed, thanks!