Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 727294 - net-proxy/mitmproxy-5.1.1: brotli conflict
Summary: net-proxy/mitmproxy-5.1.1: brotli conflict
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/pentoo/pentoo-over...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-06-06 10:59 UTC by Guido Kroon
Modified: 2020-09-02 22:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Kroon 2020-06-06 10:59:21 UTC
When trying to update world, it appears a brotli conflict is happening:

```
 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (app-arch/brotli-1.0.7-2:0/1::gentoo, binary scheduled for merge) pulled in by
    app-arch/brotli required by (media-libs/woff2-1.0.2-r1-1:0/0::gentoo, installed) USE="" ABI_X86="(64)"

  (dev-python/brotlipy-0.7.0-r2:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=dev-python/brotlipy-0.7.0[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)] (>=dev-python/brotlipy-0.7.0[python_targets_python3_6(-),python_targets_python3_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-)]) required by (net-proxy/mitmproxy-5.1.1:0/0::gentoo, ebuild scheduled for merge) USE="-test" ABI_X86="(64)" PYTHON_TARGETS="python3_6 python3_7"
```

Someone else found out as well: https://bugs.gentoo.org/722224 but no solution yet

I've tried the usual:

```
$ sudo emerge -C app-arch/brotli
$ sudo emerge -1 dev-python/brotlipy
$ sudo emerge -1 app-arch/brotli
```

But that last command simply uninstalls dev-python/brotlipy again:

```
$ sudo emerge -1 app-arch/brotli    
                                  
These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[blocks b      ] app-arch/brotli[python] ("app-arch/brotli[python]" is blocking dev-python/brotlipy-0.7.0-r2)
[uninstall     ]  dev-python/brotlipy-0.7.0-r2::gentoo  USE="-test" PYTHON_TARGETS="python2_7 python3_6 python3_7 (-pypy3) (-python3_8) (-python3_9)" 
[ebuild  N     ] app-arch/brotli-1.0.7:0/1::gentoo  USE="python -test" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python3_6 python3_7 (-python3_8)" 0 KiB

Total: 1 package (1 new, 1 uninstall), Size of downloads: 0 KiB
Conflict: 1 block

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-arch/brotli-1.0.7::gentoo
>>> Installing (1 of 1) app-arch/brotli-1.0.7::gentoo
>>> Uninstalling dev-python/brotlipy-0.7.0-r2::gentoo
>>> Jobs: 1 of 1 complete                           Load avg: 1.45, 0.62, 0.54
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
```

This means it's back to the previous state again where there's a brotli conflict that's preventing world updates.

I've got the following packages depending on app-arch/brotli:

```
$ equery d app-arch/brotli       
 * These packages depend on app-arch/brotli:
dev-python/fonttools-4.1.0 (test ? app-arch/brotli[python,python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)])
media-libs/woff2-1.0.2-r1 (app-arch/brotli)
net-analyzer/wireshark-3.2.4 (brotli ? app-arch/brotli)
net-libs/libsoup-2.70.0 (brotli ? >=app-arch/brotli-1.0.6-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
net-misc/curl-7.69.1 (brotli ? app-arch/brotli[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
www-client/links-2.20.2 (brotli ? app-arch/brotli)
www-servers/nginx-1.18.0-r1 (nginx_modules_http_brotli ? app-arch/brotli)
```

And the following on dev-python/brotlipy:

```
$ equery d dev-python/brotlipy  
 * These packages depend on dev-python/brotlipy:
dev-python/urllib3-1.25.8 (brotli ? dev-python/brotlipy[python_targets_pypy3(-)?,python_targets_python2_7(-)?,python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-)])
                          (dev-python/brotlipy[python_targets_python3_6(-)?,-python_single_target_python3_6(-),python_targets_python3_7(-)?,-python_single_target_python3_7(-),python_targets_python3_8(-)?,-python_single_target_python3_8(-)])
net-proxy/mitmproxy-5.1.1 (>=dev-python/brotlipy-0.7.0[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)])
                          (test ? >=dev-python/brotlipy-0.7.0[python_targets_python3_6(-)?,python_targets_python3_7(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-)])
```

How can I fix this? Can I even fix this myself without reaching out to upstream?

Reproducible: Always

Steps to Reproduce:
1. Install a package that depends on app-arch/brotli;
2. Install a package that depends on dev-python/brotlipy;
3. Cry when there's a conflict.
Actual Results:  
Please see the above bug

Expected Results:  
I expected my packages to not have a conflict. I believe net-proxy/mitmproxy can depend on app-arc/brotli instead.
Comment 1 Larry the Git Cow gentoo-dev 2020-09-02 22:43:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77f20cf7081e509811951ab7cd29c894f1784e4f

commit 77f20cf7081e509811951ab7cd29c894f1784e4f
Author:     Matt Smith <matt@offtopica.uk>
AuthorDate: 2020-08-29 14:37:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-09-02 22:43:38 +0000

    net-proxy/mitmproxy: Bump to version 5.2.0
    
    * Add Python 3.8 to PYTHON_COMPAT.
    * Correct the license; it changed from GPLv3 to MIT in 2013.
    * Enable more tests.
    * Remove unnecessary test phase and setup tools rdep.
    * Use app-arch/brotli[python] instead of dev-python/brotlipy.
    
    Closes: https://bugs.gentoo.org/718458
    Closes: https://bugs.gentoo.org/727294
    Closes: https://bugs.gentoo.org/739494
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Matt Smith <matt@offtopica.uk>
    Closes: https://github.com/gentoo/gentoo/pull/17315
    Signed-off-by: Sam James <sam@gentoo.org>

 net-proxy/mitmproxy/Manifest             |  1 +
 net-proxy/mitmproxy/mitmproxy-5.2.ebuild | 75 ++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)