Bug 278531 - finance/odoo: Build failure with python 3.11
Summary: finance/odoo: Build failure with python 3.11
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: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-22 15:34 UTC by Joel Bodenmann
Modified: 2024-08-09 19:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Bodenmann freebsd_committer freebsd_triage 2024-04-22 15:34:51 UTC
Building finance/odoo with:

> DEFAULT_VERSIONS += python=3.11

fails:

> pkg-static: py311-werkzeug-3.0.2 conflicts with py311-werkzeug2-2.3.8 (installs files into the same place).  Problematic file: /usr/local/lib/python3.11/site-packages/werkzeug/__init__.py

The full build log was too large to attach but it can currently be found here: https://freebsd.binaries.simulton.com/data/140Ramd64-HEAD/2024-04-22_13h26m34s/logs/errors/py311-odoo-17.0.20240325_1.log
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-04-24 23:40:37 UTC
A commit in branch main references this bug:

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

commit 9e96e25b09e67ff073e732832135b098cd0800cc
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2024-04-24 23:36:42 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2024-04-24 23:36:42 +0000

    finance/odoo: Remove obsolete dependency

    - Try a possible fix issue with werkzeug2/werkzeug dependency
    - Bump PORTREVISION
    PR:             278531
    Reported by:    jbo

 finance/odoo/Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Comment 2 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2024-04-24 23:41:30 UTC
It should fix issue with werkzeug. Thanks for your PR
Comment 3 Joel Bodenmann freebsd_committer freebsd_triage 2024-04-25 00:43:30 UTC
Thanks!

Running into a new/different built failure now:

> pkg-static: py311-cryptography-42.0.5_1,1 conflicts with py311-cryptography-legacy-3.4.8_1,1 (installs files into the same place).  Problematic file: /usr/local/lib/python3.11/site-packages/cryptography/__about__.py

Full build log: https://freebsd.binaries.simulton.com/data/140Ramd64-HEAD/2024-04-24_23h44m57s/logs/errors/py311-odoo-17.0.20240325_2.log

I'm not really a python person but from what I understand ports is "about" to move to python 3.11.
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-06-16 19:05:37 UTC
A commit in branch main references this bug:

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

commit 7a1288457d2bbaeb279e8deca191101aa0fb2bb6
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2024-06-16 19:03:08 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2024-06-16 19:03:08 +0000

    finance/odoo: Try to fix dependency issue

    PR:             278531
    Reported by:    jbo

 finance/odoo/Makefile | 1 -
 1 file changed, 1 deletion(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-06-16 19:08:38 UTC
A commit in branch main references this bug:

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

commit eec7458622c835069de331d1c1ff3d648ddca41a
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2024-06-16 19:07:08 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2024-06-16 19:07:08 +0000

    finance/odoo: Add py-cryptography like a depedency

    PR:             278531
    Reported by:    jbo

 finance/odoo/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2024-06-16 19:10:43 UTC
Finally, I can see this PR. I think removing py-cryptography-legacy should be enough because pyopenssl depends on py-cryptography and this is the main reason because of CONFLICTS. Tell me if it works for you. Thanks!