Bug 1797164 - python3-html2text should not obsolete python2-html2text
Summary: python3-html2text should not obsolete python2-html2text
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-html2text
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Kaufmann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-01 05:12 UTC by Mitchell Berger
Modified: 2020-02-23 01:09 UTC (History)
2 users (show)

Fixed In Version: python-html2text-2019.9.26-5.fc30
Clone Of:
Environment:
Last Closed: 2020-02-23 01:09:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mitchell Berger 2020-02-01 05:12:18 UTC
python-html2text-2019.9.26-2.fc30 removed the conditional in the spec
file that exposed the following line:

Obsoletes:      python2-%{upname} <= %{version}-%{release}

Until now, that line hadn't been a problem, but now that you've turned
off python2 builds, even with the conditional, what you're causing to
happen is for the python3 package to rip out the python2 package, which
can happily coexist, has been doing so for some time, and is depended
on by other packages you haven't ported to python3, like rss2email.
I understand the general move towards python3, but breaking other
programs within a Fedora release seems wrong.

Please drop the Obsoletes in F30.

Comment 1 Sergio Basto 2020-02-01 09:34:00 UTC
Update to 2019.9.26 is a python3 only, this version remove support for Python <= 3.4.

So you are saying that you don't want update python2-html2text , which is fair. 
But IMHO the best was update rss2email to the same of F31 ( rss2email-0:3.10-2.20190909git9c2d407.fc31.noarch) which already use python3-html2text ... [1] by this query seems rss2email is the only package that depend on python2-html2text 

and with Update to 2019.9.26 the python-html2text-2019.8.11-1.fc30 is not in repos anymore ... 


[1]
dnf repoquery --releasever=30 --available --whatrequires python2-html2text 


rss2email-0:2.71-14.fc29.noarch
rss2email-0:2.71-16.fc30.noarch

Comment 2 David Kaufmann 2020-02-01 16:06:49 UTC
updating rss2email from v2.71 to v3.9 would break existing installations,
as the configuration completely changed and manual migration is necessary.
therefore i've decided to keep it at v2.71 for f30.

so far I see three options:
* keeping python2-html2text in the repos
* bundling python2-html2text it in f30 (which is not recommended by the
  Bundled Software policy, although it is restricted to one release)
* introducing a breaking change by updating to v3.x outside of a
  sysupgrade (which is not recommended by the Updates policy)

if possible, I'll take the steps in this order.

Comment 3 Sergio Basto 2020-02-01 19:03:27 UTC
you may reinstall python-html2text-2019.8.11-1.fc30 , downloading package here [1] 
and add [2] to /etc/dnf/dnf.conf .
I need to think what should I do on epel7 ... 

Thanks for the report. 


[1] 
https://koji.fedoraproject.org/koji/buildinfo?buildID=1374917

[2] 
exclude=python3-html2text

Comment 4 David Kaufmann 2020-02-02 03:49:28 UTC
thanks for the hint, but unfortunately that doesn't help me too much ;)

personally I'm running rss2email on centos7 with a custom version anyway,
but I don't want other installations of rss2email to break.

unfortunately I'm not too sure about the versions/bug state right now.

from what I understand it looks like this:
python3-html2text-2019.9.26-2 conflicts with python2-html2text (all versions)
which in turn means, that it can't be installed in parallel with rss2email.

a test on a f30 machine still lets me install python2-html2text-2018.1.9-1.fc30

if I attempt to install python3-html2text first it will install
python3-html2text-2019.9.26-2, and when attempting to install rss2email, it is
installing python{2,3}-html2text-2018.1.9-1.fc30, thus downgrading the
py3-version.

if I attempt to install rss2email first, it will just install
python2-html2text-2018.1.9-1.fc30, and when installing python3-html2text, it is
telling me, that it skips rss2email in its f29 version (which it shouldn't see
anyway) due to broken dependencies, and installs python3-html2text-2018.1.9-1.fc30

so telling from what I see here, rss2email is just forcing a downgrade on
python3-html2text, but does not break rss2email functionality.
although that is working, it will give very ugly warning at any "dnf upgrade"

as the bodhi update is already 4 months old (3 months released), I think the
best way forward is actually bundling - I think I'll have to break one of the
fedora policies anyway, and this seems to be the least harmful to users.
(and as I am the only user via package for the py2 version, python2-html2text
vanishing from f30 shouldn't have too much impact hopefully)

I might also ask my sponsor for advice tomorrow - as I'm a quite new packager
I'm not yet too accustomed to the repository/bodhi behaviours and might have
overlooked something.

Comment 5 Sergio Basto 2020-02-02 05:25:56 UTC
dnf install https://kojipkgs.fedoraproject.org//packages/python-html2text/2019.8.11/1.fc30/noarch/python2-html2text-2019.8.11-1.fc30.noarch.rpm

edit /etc/dnf/dnf.conf and and this line exclude=python3-html2text [1], it will fix  "very ugly warning at any "dnf upgrade"

or dnf install https://kojipkgs.fedoraproject.org//packages/python-html2text/2019.8.11/1.el7/noarch/python2-html2text-2019.8.11-1.el7.noarch.rpm for epel 

[1]
[main]
gpgcheck=1
installonly_limit=4
clean_requirements_on_remove=false
deltarpm=0
metadata_expire=36000
fastestmirror=1
max_parallel_downloads=10
exclude=python3-html2text

Comment 6 David Kaufmann 2020-02-12 22:19:00 UTC
this unfortunately does not solve the problem - this is only a local fix, but
I'm looking for a solution in the fedora repository.

I've been looking into bundling python2-html2text into rss2email itself - it
does ship it's own version too, but as the python-html2text version is newer
I'd like to use the that version.

Do you have any objections to that?

Comment 7 Sergio Basto 2020-02-12 22:24:37 UTC
I needed html2text for some Debain tools , but not anymore , so I don't have more interested  in this package , I can give you the package , just tell me your fasuser. 
Anyway you can do what you want  with it .

Comment 8 David Kaufmann 2020-02-12 22:34:20 UTC
I can do that, yes. As I'm currently probably the last user of the py2-version I
probably also should fix the issue - and as rss2email also depends on it in recent
versions the dependency on it will remain.

My fasuser is "astra".

Thanks!

Comment 9 Sergio Basto 2020-02-12 22:37:28 UTC
 The project has been transferred to astra :)

Comment 10 Fedora Admin XMLRPC Client 2020-02-13 04:17:10 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 11 Fedora Update System 2020-02-13 22:51:56 UTC
FEDORA-2020-f0f1921537 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-f0f1921537

Comment 12 Fedora Update System 2020-02-14 02:11:53 UTC
python-html2text-2019.9.26-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f0f1921537

Comment 13 Fedora Update System 2020-02-14 10:17:39 UTC
FEDORA-2020-3bf2bd8e87 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3bf2bd8e87

Comment 14 Fedora Update System 2020-02-14 10:35:04 UTC
FEDORA-2020-b8692ee463 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b8692ee463

Comment 15 Fedora Update System 2020-02-15 01:19:53 UTC
python-html2text-2019.9.26-5.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b8692ee463

Comment 16 Fedora Update System 2020-02-23 01:09:17 UTC
python-html2text-2019.9.26-5.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.