https://bugzilla.redhat.com/show_bug.cgi?id=2325318

Zenon Panoussis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]



--- Comment #7 from Zenon Panoussis <[email protected]> ---
# mock -r alma+epel-10-x86_64 aqute-bnd-epel-6.3.1-11.1.fc41.src.rpm

works fine, but 

# mock -r alma+epel-10-x86_64 --define "with bnd_maven_plugin"
aqute-bnd-epel-6.3.1-11.1.fc41.src.rpm

ends with 

warning: /builddir/build/SPECS/aqute-bnd-epel.spec: line 44: unexpected
argument to non-parametric macro %with
error: bare words are no longer supported, please use "...":  bnd_maven_plugin
error:                                                        ^
error: /builddir/build/SPECS/aqute-bnd-epel.spec:44: bad %if condition: 
bnd_maven_plugin

Line 44 is: %if %{with bnd_maven_plugin}. Changing it to %if
0%{?_with_bnd_maven_plugin} solves the problem at line 44 and runs into the
next on line 80, so this seems to confirm the solution. 

A separate problem when all the bare words have been fixed, occurs during the
build: 

[ERROR] UndeclaredThrowableException: InvocationTargetException: Plugin
org.apache.maven.plugins:maven-source-plugin:3.2.1 or one of its dependencies
could not be resolved:
[ERROR]         Cannot access central (https://repo.maven.apache.org/maven2) in
offline mode and the artifact
org.apache.maven.plugins:maven-source-plugin:jar:3.2.1 has not been downloaded
from it before.

Indeed, maven-source-plugin was not pulled in, despite
mvn(org.apache.maven.plugins:maven-source-plugin) being part of the conditional
BuildRequires. So there's still something wrong with those %if macros.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2325318

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202325318%23c7

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to