Bug 53331 - wrong conflicts
Summary: wrong conflicts
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: tomcat10 (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Stanislav Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-05 14:39 MSK by Stanislav Levin
Modified: 2025-03-12 19:21 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Levin 2025-03-05 14:39:43 MSK
tomcat10 has a bunch of wrong Conflicts:

https://packages.altlinux.org/en/sisyphus/srpms/tomcat10/specfiles/#line-194

> Conflicts: tomcat-servlet-6.0-api

There is no such package in sisyphus and moreover it never existed.
Actually it should conflict with tomcat-servlet-4.0-api.

It doesn't work being installed at the same time.
Particularly, dogtag-pki has build dependency:
mvn(org.apache.tomcat:tomcat-servlet-api) >= 9.0.62

which is provided by two packages:
tomcat10-servlet-6.0-api 1:10.1.20-alt2_jvm17:sisyphus+343897.100.1.1@1711703075
tomcat-servlet-4.0-api 1:9.0.98-alt1_1jpp11:sisyphus+369851.240.4.1@1737455776

Both tomcat10-servlet-6.0-api and tomcat-servlet-4.0-api are getting installed eventually. This leads to build failure:
```
...
[DEBUG] Adding metadata from file /usr/share/maven-metadata/tomcat-tomcat-servlet-api.xml
[DEBUG] Added metadata for org.apache.tomcat:tomcat-servlet-api:pom:9.0.98
[DEBUG] Added metadata for org.apache.tomcat:tomcat-servlet-api:jar:9.0.98
...
[DEBUG] Adding metadata from file /usr/share/maven-metadata/tomcat10-tomcat-servlet-api.xml
[DEBUG] Added metadata for org.apache.tomcat:tomcat-servlet-api:pom:10.1.20
[DEBUG] Added metadata for org.apache.tomcat:tomcat-servlet-api:jar:10.1.20
...
[WARNING] Ignoring metadata for artifact org.apache.tomcat:tomcat-servlet-api:pom:SYSTEM as it has duplicate metadata
[WARNING] Ignoring metadata for artifact org.apache.tomcat:tomcat-servlet-api:jar:SYSTEM as it has duplicate metadata
...
[DEBUG] Trying to resolve artifact org.apache.tomcat:tomcat-servlet-api:pom:any
[DEBUG] Failed to resolve artifact: org.apache.tomcat:tomcat-servlet-api:pom:any
[WARNING] The POM for org.apache.tomcat:tomcat-servlet-api:jar:any is missing, no dependency information available
...
[ERROR] Failed to execute goal on project pki-common: Could not resolve dependencies for project org.dogtagpki.pki:pki-common:jar:11.6.0-SNAPSHOT: Cannot access dogtagpki (https://raw.githubusercontent.com/dogtagpki/repo/maven) in offline mode and the artifact org.apache.tomcat:tomcat-servlet-api:jar:any has not been downloaded from it before. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project pki-common: Could not resolve dependencies for project org.dogtagpki.pki:pki-common:jar:11.6.0-SNAPSHOT: Cannot access dogtagpki (https://raw.githubusercontent.com/dogtagpki/repo/maven) in offline mode and the artifact org.apache.tomcat:tomcat-servlet-api:jar:any has not been downloaded from it before.
```

Also there are other misconflicts.
Wrong:
tomcat10-jsp-3.1-api => tomcat-jsp-3.1-ap
Correct:
tomcat10-jsp-3.1-api => tomcat-jsp-2.3-api

Wrong:
tomcat10-el-5.0-api => tomcat-el-5.0-api
Correct:
tomcat10-el-5.0-api => tomcat-el-3.0-api
Comment 1 Repository Robot 2025-03-12 19:21:14 MSK
tomcat10-1:10.1.20-alt3_jvm17 -> sisyphus:

 Wed Mar 12 2025 Stanislav Levin <slev@altlinux> 1:10.1.20-alt3_jvm17
 - actualized conflicts with tomcat 9 (closes: #53331, #53333).