Bug 283045

Summary: devel/py-dj50-strawberry-graphql: Build fails with CHANNELS enabled due to mixed Django versions
Product: Ports & Packages Reporter: James TD Smith <ahktenzero+freebsd>
Component: Individual Port(s)Assignee: Kai Knoblich <kai>
Status: Closed FIXED    
Severity: Affects Only Me Flags: kai: maintainer-feedback+
kai: merge-quarterly+
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 283044    
Bug Blocks:    
Attachments:
Description Flags
Update deps for strawberry-graphql none

Description James TD Smith 2024-11-29 20:58:08 UTC
Created attachment 255532 [details]
Update deps for strawberry-graphql

devel/py-dj50-strawberry-graphql fails to build with the CHANNELS option enabled because www/py-channels depends on www/py-django42 and this conflicts with the dependeny on Django 5. Patch to correct this to a newly added port for Channels built against Django 5 is attached, patch to add the www/py-dj50-channels port is in bug 283044.
Comment 1 Kai Knoblich freebsd_committer freebsd_triage 2024-11-30 07:22:54 UTC
(In reply to James TD Smith from comment #0)

Hi James, thanks for the report and the patch. Once bug #283044 is resolved the attached patch here can be committed then.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-12-14 16:57:55 UTC
A commit in branch main references this bug:

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

commit c0390c7452bc8ec51e51f4e9cbd9db591bbe3746
Author:     James TD Smith <ahktenzero+freebsd@mohorovi.cc>
AuthorDate: 2024-12-14 16:53:52 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-12-14 16:55:45 +0000

    devel/py-dj50-strawberry-graphql: Fix handling for CHANNELS option

    * The CHANNELS option, if enabled, installs www/py-channels, which
      pulls in www/py-django42.  The latter one conflicts with the
      DJANGO option, which installs www/py-django50, if enabled.

      Fix this issue by adjusting the CHANNELS option use the recently added
      www/py-dj50-channels, which uses www/py-django50, as a dependency.

    * Bump PORTREVISION due changed dependencies.

    Co-authored-by: Kai Knoblich <kai@FreeBSD.org>
    PR:             283045
    Reported by:    James TD Smith
    MFH:            2024Q4

 devel/py-dj50-strawberry-graphql/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-12-14 16:57:57 UTC
A commit in branch main references this bug:

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

commit 6e0d3b5fc73fd05df664b07c8b1ab3a8aa41c9e3
Author:     James TD Smith <ahktenzero+freebsd@mohorovi.cc>
AuthorDate: 2024-12-14 16:51:20 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-12-14 16:55:45 +0000

    www/py-dj50-channels: New port

    Channels augments Django to bring WebSocket, long-poll HTTP, task
    offloading and other async support to your code, using familiar Django
    design patterns and a flexible underlying framework that lets you not
    only customize behaviours but also write support for your own protocols
    and needs.

    Happy to pass this port to its maintainer who already maintain the
    Django 4.2 variant of it.

    Co-authored-by: Kai Knoblich <kai@FreeBSD.org>
    PR:             283044, 283045 [1]
    Reported by:    James TD Smith
    MFH:            2024Q4 (required to fix [1])

 www/Makefile                         |  1 +
 www/py-dj50-channels/Makefile (new)  | 27 +++++++++++++++++++++++++++
 www/py-dj50-channels/distinfo (new)  |  3 +++
 www/py-dj50-channels/pkg-descr (new) |  4 ++++
 4 files changed, 35 insertions(+)
Comment 4 Kai Knoblich freebsd_committer freebsd_triage 2024-12-14 17:09:32 UTC
(In reply to James TD Smith from comment #0)

Committed to the main branch. I'm going to merge the patch into the 2024Q4 branch.
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-12-15 11:04:20 UTC
A commit in branch 2024Q4 references this bug:

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

commit 5ca2026333e4328d05ef459760d6eb0b997d851d
Author:     James TD Smith <ahktenzero+freebsd@mohorovi.cc>
AuthorDate: 2024-12-14 16:53:52 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-12-15 10:16:05 +0000

    devel/py-dj50-strawberry-graphql: Fix handling for CHANNELS option

    * The CHANNELS option, if enabled, installs www/py-channels, which
      pulls in www/py-django42.  The latter one conflicts with the
      DJANGO option, which installs www/py-django50, if enabled.

      Fix this issue by adjusting the CHANNELS option use the recently added
      www/py-dj50-channels, which uses www/py-django50, as a dependency.

    * Bump PORTREVISION due changed dependencies.

    Co-authored-by: Kai Knoblich <kai@FreeBSD.org>
    PR:             283045
    Reported by:    James TD Smith
    MFH:            2024Q4

    (cherry picked from commit c0390c7452bc8ec51e51f4e9cbd9db591bbe3746)

 devel/py-dj50-strawberry-graphql/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-12-15 11:04:21 UTC
A commit in branch 2024Q4 references this bug:

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

commit 311edf3c656730e185745743c0f51d64f30de3e4
Author:     James TD Smith <ahktenzero+freebsd@mohorovi.cc>
AuthorDate: 2024-12-14 16:51:20 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-12-15 10:14:24 +0000

    www/py-dj50-channels: New port

    Channels augments Django to bring WebSocket, long-poll HTTP, task
    offloading and other async support to your code, using familiar Django
    design patterns and a flexible underlying framework that lets you not
    only customize behaviours but also write support for your own protocols
    and needs.

    Happy to pass this port to its maintainer who already maintain the
    Django 4.2 variant of it.

    Co-authored-by: Kai Knoblich <kai@FreeBSD.org>
    PR:             283044, 283045 [1]
    Reported by:    James TD Smith
    MFH:            2024Q4 (required to fix [1])

    (cherry picked from commit 6e0d3b5fc73fd05df664b07c8b1ab3a8aa41c9e3)

 www/Makefile                         |  1 +
 www/py-dj50-channels/Makefile (new)  | 27 +++++++++++++++++++++++++++
 www/py-dj50-channels/distinfo (new)  |  3 +++
 www/py-dj50-channels/pkg-descr (new) |  4 ++++
 4 files changed, 35 insertions(+)
Comment 7 Kai Knoblich freebsd_committer freebsd_triage 2024-12-15 11:51:01 UTC
(In reply to James TD Smith from comment #0)

Committed to the main branch and MFH'ed into the 2024Q4 branch, all done.

Thanks for your report and patch!