Bug 266002 - net/cloud-init: update jsonschema dependency
Summary: net/cloud-init: update jsonschema dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Larry Rosenman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-23 16:07 UTC by James TD Smith
Modified: 2022-08-24 16:55 UTC (History)
2 users (show)

See Also:
andrey: maintainer-feedback+


Attachments
Change jsonschema dependency (1015 bytes, patch)
2022-08-23 16:09 UTC, James TD Smith
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!