Bug 1314105

Summary: python-html2text obsoletes html2text
Product: [Fedora] Fedora EPEL Reporter: Jay Hilliard <jaydhilliard>
Component: python-html2textAssignee: Sergio Basto <sergio>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7CC: besser82, lowen, pertusus, sergio
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-html2text-2019.8.11-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-26 03:08:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jay Hilliard 2016-03-02 23:44:41 UTC
Description of problem:
If I install python-html2text, it obsoletes html2text.

Version-Release number of selected component (if applicable):
--> Running transaction check
---> Package html2text.x86_64 0:1.3.2a-14.el7.nux will be obsoleted
---> Package python-html2text.noarch 0:3.200.3-7.el7 will be updated
---> Package python-html2text.noarch 0:2015.6.6-4.el7 will be obsoleting


How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
html2text is a binary, not a python api. A python api should not obsolete a binary someone is depending on unless it provides similar functionality out of the box (perhaps an html2text python script?)

Expected results:
Leave html2text alone

Additional info:

Comment 1 Björn 'besser82' Esser 2017-01-25 10:15:52 UTC
(In reply to Jay Hilliard from comment #0)
> Description of problem:
> If I install python-html2text, it obsoletes html2text.
> 
> Version-Release number of selected component (if applicable):
> --> Running transaction check
> ---> Package html2text.x86_64 0:1.3.2a-14.el7.nux will be obsoleted

Your installed version of html2text comes from another third-party repo.  It isn't said anywhere, that all third-party repos can be co-existing without any conflicts.  Closing this as `NOTABUG`.

Comment 2 Lamar Owen 2018-07-11 13:38:36 UTC
I'm reopening this.  This is a bug, plain and simple, since the python2-html2text as packaged in EPEL7 is NOT the same as the html2text previously packaged (and still available) in EPEL7 (at: https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/h/html2text-1.3.2a-14.el7.x86_64.rpm ).  While EPEL has no duty to maintain a different third-party repo's packages, it does have a responsibility to not introduce a regression in its own package space.

Normal bug information:
Description of problem:
If I install python-html2text, it obsoletes html2text.

Version-Release number of selected component (if applicable):
--> Running transaction check
---> Package html2text.x86_64 0:1.3.2a-14.el7 will be obsoleted
---> Package python-html2text.noarch 0:3.200.3-7.el7 will be updated
---> Package python-html2text.noarch 0:2015.6.6-4.el7 will be obsoleting


How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
html2text is a binary, not a python script, and the two do not have the same command line arguments.  The xtrs build, for instance, uses the binary, C++, html2text and relies on its arguments and its behavior.  (I hadn't had html2text installed before, and I had to install it by hand from EPEL to build xtrs, since yum now tries to install python2-html2text, which IS NOT THE RIGHT PROGRAM). 

Expected results:
Leave html2text alone; any other resolution is a regression.

Additional info:
[lowen@FREE-IP-93 ~]$ rpm -qi html2text
Name        : html2text
Version     : 1.3.2a
Release     : 14.el7
Architecture: x86_64
Install Date: Wed 11 Jul 2018 09:29:25 AM EDT
Group       : Applications/Text
Size        : 264146
License     : GPL+
Signature   : RSA/SHA256, Fri 21 Nov 2014 08:57:40 PM EST, Key ID 6a2faea2352c64e5
Source RPM  : html2text-1.3.2a-14.el7.src.rpm
Build Date  : Thu 20 Nov 2014 12:29:32 PM EST
Build Host  : buildvm-26.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.mbayer.de/html2text/
Summary     : HTML-to-text converter
Description :
html2text is a command line utility that converts HTML documents into
plain text.
Each HTML document is read from standard input or a (local or remote)
URI, and formatted into a stream of plain text characters that is written
to standard output or into an output-file. The program preserves the
original positions of table fields and accepts also syntactically
incorrect input, attempting to interpret it "reasonably". The rendering
is largely customisable through an RC file.
[lowen@FREE-IP-93 ~]$

Comment 3 Lamar Owen 2018-07-11 13:41:44 UTC
(In reply to Lamar Owen from comment #2)
...

Facepalm... of course, this should have been filed for the package python2-html2text, not python-html2text, and I'll refile.

Comment 4 Lamar Owen 2018-07-11 13:47:01 UTC
.... but python2-html2text is not listed as a component of EPEL7 in bugzilla, so I guess this is currently the correct component, so I'm re-opening again.

Comment 5 Lamar Owen 2018-07-11 13:52:24 UTC
Updated yum run....
[root@FREE-IP-93 ~]# yum update
...
Resolving Dependencies
--> Running transaction check
---> Package html2text.x86_64 0:1.3.2a-14.el7 will be obsoleted
---> Package python2-html2text.noarch 0:2016.9.19-1.el7 will be obsoleting
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                 Arch         Version                  Repository  Size
================================================================================
Installing:
 python2-html2text       noarch       2016.9.19-1.el7          epel        58 k
     replacing  html2text.x86_64 1.3.2a-14.el7

Transaction Summary
================================================================================
Install  1 Package

I need to remember to let my coffee kick in before filing bug reports; my apologies for my errors causing confusion.

Comment 6 Sergio Basto 2019-03-29 05:36:14 UTC
Hi, 
If Fedora python-html2text replaces html2text [1] and we already don't have html2text, 
seems to me better that same happens in epel 7 

python2-html2text provides similar functionality out of the box , I think.


[1]
https://src.fedoraproject.org/rpms/html2text


(In reply to Lamar Owen from comment #2)
> I'm reopening this.  This is a bug, plain and simple, since the
> python2-html2text as packaged in EPEL7 is NOT the same as the html2text

we use new /usr/bin/html2text for everything in Fedora

> While EPEL has no duty to maintain a different
> third-party repo's packages, it does have a responsibility to not introduce
> a regression in its own package space.


> html2text is a binary, not a python script, and the two do not have the same
> command line arguments.  

it is a point I think is not 100% on new /usr/bin/html2text it miss -o parameter ... 

> The xtrs build, for instance, uses the binary, C++,
> html2text and relies on its arguments and its behavior.  (I hadn't had
> html2text installed before, and I had to install it by hand from EPEL to
> build xtrs, since yum now tries to install python2-html2text, which IS NOT
> THE RIGHT PROGRAM). 

I can't any program called xtrs 

 
> Expected results:
> Leave html2text alone; any other resolution is a regression.

We already don't have html2text in Fedora

Comment 7 Sergio Basto 2019-09-09 21:49:10 UTC
Fixing typos , 

"I can't see any program called xtrs" 

html2text is not available on epel7 anymore (at: https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/h/html2text-1.3.2a-14.el7.x86_64.rpm ).

I'm removing Obsoletes entries from spec , hope that helps you , but will not remove Provides, python-html2text will still provide html2text ... 

Any comment is welcome .

Thanks.

Comment 8 Fedora Update System 2019-09-10 01:03:45 UTC
FEDORA-EPEL-2019-547902b136 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-547902b136

Comment 9 Fedora Update System 2019-09-11 04:20:11 UTC
python-html2text-2019.8.11-1.el7 has been pushed to the Fedora EPEL 7 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-EPEL-2019-547902b136

Comment 10 Fedora Update System 2019-09-26 03:08:02 UTC
python-html2text-2019.8.11-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.