Bug 1017702 - javapackages-tools: Incorrect requires on package providing filesystem
Summary: javapackages-tools: Incorrect requires on package providing filesystem
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: javapackages-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Michal Srb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-10 11:12 UTC by Mikolaj Izdebski
Modified: 2015-02-05 06:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-05 06:42:21 UTC
Type: Bug


Attachments (Terms of Use)

Description Mikolaj Izdebski 2013-10-10 11:12:11 UTC
Description of problem:
Packages with non-empty <namespace> have auto-requires on jpackage-utils instead on <namespace>-runtime.

Version-Release number of selected component (if applicable):
3.3.1-1

Steps to Reproduce:
Run autorequires generator for package with the following fragment:

$ cat depmap.xml 
<?xml version="1.0" encoding="US-ASCII"?>
<!-- This depmap file was generated by XMvn -->
<dependencyMap>
  <dependency>
    <maven>
      <namespace>maven31</namespace>
      <groupId>org.eclipse.aether</groupId>
      <artifactId>aether-api</artifactId>
      <version>0.9.0.M3</version>
    </maven>
    <jpp>
      <namespace>maven31</namespace>
      <groupId>JPP/maven31-aether</groupId>
      <artifactId>aether-api</artifactId>
    </jpp>
  </dependency>
</dependencyMap>

Actual results:
Generated Requires is:
jpackage-utils

Expected results:
Generated Requires should be:
maven31-runtime

Comment 1 Stanislav Ochotnicky 2013-10-10 12:44:39 UTC
Testcases in a0de7eab, fix in a72ad0519

Comment 2 Mikolaj Izdebski 2013-10-10 14:33:33 UTC
This is still not correct.

1) javadoc packages in SCL do not have any requires, but they should require <namespace>-runtime

2) if package provides artifacts with namespace and without namespace only <namespace>-runtime is generated, but both jpackage-utils and <namespace>-runtime should be generated

3) if package provides artifacts in nore then one non-empty namespace then only one of them will be used to generate requires, but all namespaced should be used to produce <namespace>-runtime require

Comment 3 Stanislav Ochotnicky 2013-10-11 14:53:24 UTC
More tests added in 6dcfa86 and fixed in 9ec6128. The javadoc packages are still not fixed though so leaving in assigned

Comment 4 Fedora Admin XMLRPC Client 2014-04-24 12:47:06 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Mikolaj Izdebski 2014-12-14 21:19:50 UTC
It is important to have this fixed in 4.3.x.

Comment 6 Michal Srb 2015-02-05 06:42:21 UTC
I believe that this bug is properly fixed in javapackages-tools 4.3.2, which is available in Rawhide.


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