RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1029995 - plexus-compiler: FTBFS - requires generator problem
Summary: plexus-compiler: FTBFS - requires generator problem
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: plexus-compiler
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Mikolaj Izdebski
QA Contact: Jan Kepler
URL:
Whiteboard:
: 1053002 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 16:32 UTC by Stanislav Ochotnicky
Modified: 2014-06-18 07:50 UTC (History)
6 users (show)

Fixed In Version: 2.2-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:22:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (1.57 KB, patch)
2013-11-13 17:02 UTC, Mikolaj Izdebski
no flags Details | Diff

Description Stanislav Ochotnicky 2013-11-13 16:32:50 UTC
plexus-compiler fails to build from source due to unresolvable dependencies for requires generator which fails the build to prevent incorrect package dependencies[1]. 

Snippet from build.log:

Exception: Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires:
org.apache.maven.plugins:maven-gpg-plugin:::UNKNOWN
org.codehaus.plexus:plexus-compiler-test:::UNKNOWN
Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires:
org.apache.maven.plugins:maven-gpg-plugin:::UNKNOWN
org.codehaus.plexus:plexus-compiler-test:::UNKNOWN


[1] https://brewweb.devel.redhat.com/taskinfo?taskID=6572303

Comment 2 Mikolaj Izdebski 2013-11-13 17:02:39 UTC
Created attachment 823563 [details]
Proposed patch

Comment 4 Mikolaj Izdebski 2013-11-13 17:57:10 UTC
Fixed in plexus-compiler-2.2-6

Comment 7 Stanislav Ochotnicky 2014-01-14 15:08:03 UTC
*** Bug 1053002 has been marked as a duplicate of this bug. ***

Comment 8 Zenon Panoussis 2014-01-30 12:08:58 UTC
Rebuilding with the 2.2-6 patch I get 

Exception: Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires:
org.codehaus.plexus:plexus-compiler:pom::UNKNOWN
Following dependencies were not resolved and requires cannot be generated. Either remove the dependency from pom.xml or add proper packages to BuildRequires:
org.codehaus.plexus:plexus-compiler:pom::UNKNOWN

Indeed, it pulled in itself in pre-build:

DEBUG util.py:281:    plexus-compiler.noarch 0:2.2-5.el7

It's a loop because plexus-compiler buildrequires plexus-compiler-extras, which in turn requires mvn(org.codehaus.plexus:plexus-compiler-api), which is provided by plexus-compiler. 

How did you work around this to get it to build without an explicit Buildrequires: plexus-compiler?

Comment 9 Mikolaj Izdebski 2014-01-30 12:18:02 UTC
You can try temporarly patching fragment file with sed (see below). Once you build plexus-compiler, rebuild it without this workaround.

sed -i -n '/<autoRequires>/{:a;N;/<\/autoRequires>/{p;b;};/>UNKNOWN</{:b;n;/<\/autoRequires>/{b;};bb;};ba;};p' %{buildroot}%{_mavendepmapfragdir}/*

Comment 10 Zenon Panoussis 2014-01-30 13:55:15 UTC
Right after %mvn_install. It worked. Thanks!

Comment 11 Ludek Smid 2014-06-13 12:22:38 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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