SHA256
1
0
forked from pool/maven-native
Fridrich Strba 2022-04-04 16:25:29 +00:00 committed by Git OBS Bridge
parent 6af72f74c2
commit 017efc4fc5
2 changed files with 25 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Source1: plexus_components-bcc.xml
Source2: plexus_components-generic-c.xml
Source3: plexus_components-manager.xml
Source4: plexus_components-msvc.xml
Patch0: stack-overflow.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
@ -79,6 +80,7 @@ This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1
for d in LICENSE ; do
iconv -f iso8859-1 -t utf-8 $d.txt > $d.txt.conv && mv -f $d.txt.conv $d.txt

23
stack-overflow.patch Normal file
View File

@ -0,0 +1,23 @@
diff -urEbwB maven-native-1.0-alpha-11.orig/maven-native-api/src/main/java/org/codehaus/mojo/natives/Dependency.java maven-native-1.0-alpha-11/maven-native-api/src/main/java/org/codehaus/mojo/natives/Dependency.java
--- maven-native-1.0-alpha-11.orig/maven-native-api/src/main/java/org/codehaus/mojo/natives/Dependency.java 2022-04-04 18:21:20.052196462 +0200
+++ maven-native-1.0-alpha-11/maven-native-api/src/main/java/org/codehaus/mojo/natives/Dependency.java 2022-04-04 18:23:05.060895910 +0200
@@ -115,8 +115,10 @@
for ( int i = 0; i < this.getDependencies().size(); ++i )
{
Dependency depend = this.getDependencies().get( i );
+ if (depend != this) {
depend.analyze();
}
+ }
}
@@ -315,7 +317,7 @@
for ( int i = 0; i < this.getDependencies().size(); ++i )
{
Dependency node = this.getDependencies().get( i );
- if ( node.contains( dependent ) )
+ if ( node != this && node.contains( dependent ) )
{
return true;
}