Bug 718830 - Fedora's httpcomponents-client imports too many logging related packages
Summary: Fedora's httpcomponents-client imports too many logging related packages
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: httpcomponents-client
Version: 15
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Severin Gehwolf
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-04 22:02 UTC by Severin Gehwolf
Modified: 2011-07-15 21:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-15 21:45:15 UTC
Type: ---


Attachments (Terms of Use)
Working version of MANIFEST.MF for httpclient v4.1.x (7.61 KB, application/octet-stream)
2011-07-04 22:02 UTC, Severin Gehwolf
no flags Details

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


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