Bug 718830

Summary: Fedora's httpcomponents-client imports too many logging related packages
Product: [Fedora] Fedora Reporter: Severin Gehwolf <sgehwolf>
Component: httpcomponents-clientAssignee: Severin Gehwolf <sgehwolf>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 15CC: akurtako, andjrobins, java-sig-commits, sgehwolf, sochotni
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-15 21:45:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Working version of MANIFEST.MF for httpclient v4.1.x none

Description Severin Gehwolf 2011-07-04 22:02:05 UTC
Created attachment 511222 [details]
Working version of MANIFEST.MF for httpclient v4.1.x

Description of problem:
Upstream's package only depends on org.apache.commons.logging (v1.1.1). See https://issues.apache.org/jira/browse/HTTPCLIENT-1082 for reference. However, the generated MANIFEST.MF of /usr/share/java/httpcomponents/httpclient.jar contains Import-Package statements including org.apache.log, org.apache.log4j and a few others. However, it should only import org.apache.commons.logging and perhaps org.apache.commons.logging.impl (which is provided by apache-commons-logging).

Version-Release number of selected component (if applicable):
rpm -q httpcomponents-client
httpcomponents-client-4.1.1-2.fc16.noarch

How reproducible:
Always.

Steps to Reproduce:
Please get back to me if you need a reproducer.
  
Actual results:
MANIFEST.MF has wrong Import-Package statements.

Expected results:
MANIFEST.MF looks similar to the version I'm attaching. That one, which only removes wrong Import-Package statements, works for me.

For reference, have a look at the MANIFEST.MF of httpclient v4.1.0 as provided by eclipse.org (orbit): http://www.eclipse.org/downloads/download.php?r=1&file=/tools/orbit/downloads/drops/R20110523182458/repository/plugins/org.apache.httpcomponents.httpclient_4.1.0.v201103311320.jar

They do not depend on any logging frameworks other than commons.logging.

Comment 1 Severin Gehwolf 2011-07-15 20:44:34 UTC
Ok, it looks like this can be fixed with

<Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>

Apache felix bundle plug-in instructions in the pom for httpclient. I'll push a new build to koji shortly.

Comment 2 Severin Gehwolf 2011-07-15 20:47:55 UTC
Adding Andrew so he can read along.

Comment 3 Severin Gehwolf 2011-07-15 21:45:15 UTC
This build should fix the issue:
http://koji.fedoraproject.org/koji/taskinfo?taskID=3202631