Accepting request 1206476 from Java:packages
OBS-URL: https://build.opensuse.org/request/show/1206476 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/javapackages-tools?expand=0&rev=45
This commit is contained in:
commit
74361bd59e
18
fix-broken-commands.patch
Normal file
18
fix-broken-commands.patch
Normal file
@ -0,0 +1,18 @@
|
||||
--- a/macros.d/macros.jpackage
|
||||
+++ b/macros.d/macros.jpackage
|
||||
@@ -10,11 +10,11 @@
|
||||
#==============================================================================
|
||||
# ---- default Java commands
|
||||
|
||||
-%ant %{?jpb_env} JAVA_HOME=%{java_home} ant
|
||||
-%jar %{java_home}/bin/jar
|
||||
+%ant %{?jpb_env} ant
|
||||
+%jar jar
|
||||
%java %(. @{javadir}-utils/java-functions; set_javacmd; echo $JAVACMD)
|
||||
-%javac %{java_home}/bin/javac
|
||||
-%javadoc %{java_home}/bin/javadoc
|
||||
+%javac javac
|
||||
+%javadoc javadoc
|
||||
|
||||
|
||||
#
|
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 9 07:27:42 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- remove-pointless-assignment.patch: Remove pointless assignment if
|
||||
%java_home is unset
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 8 22:48:45 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* fix-broken-commands.patch
|
||||
+ fix commands broken after recent removal of the default
|
||||
%%{java_home} macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 7 17:38:56 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@ -48,6 +48,10 @@ Patch2: suse-no-epoch.patch
|
||||
#
|
||||
#PATCH-FIX-UPSTREAM: do not fail if which does not exist
|
||||
Patch3: do-not-require-which.patch
|
||||
#PATCH-FIX-UPSTREAM: fix broken %%ant, %%jar, %%javadoc and %%javac commands
|
||||
Patch4: fix-broken-commands.patch
|
||||
#PATCH-FIX-UPSTREAM Remove pointless assignment if %%java_home is unset
|
||||
Patch5: remove-pointless-assignment.patch
|
||||
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: perl
|
||||
|
18
remove-pointless-assignment.patch
Normal file
18
remove-pointless-assignment.patch
Normal file
@ -0,0 +1,18 @@
|
||||
Index: javapackages-6.3.2/macros.d/macros.jpackage
|
||||
===================================================================
|
||||
--- javapackages-6.3.2.orig/macros.d/macros.jpackage
|
||||
+++ javapackages-6.3.2/macros.d/macros.jpackage
|
||||
@@ -35,10 +35,10 @@ cat > %{buildroot}%{_bindir}/%5 << EOF \
|
||||
#\
|
||||
# %{name} script\
|
||||
# JPackage Project <http://www.jpackage.org/>\
|
||||
-\
|
||||
+%{?java_home:\
|
||||
# Set default JAVA_HOME\
|
||||
-export JAVA_HOME="\\${JAVA_HOME:-%{?java_home}}"\
|
||||
-\
|
||||
+export JAVA_HOME="\\${JAVA_HOME:-%{java_home}}"\
|
||||
+}\
|
||||
# Source functions library\
|
||||
. @{javadir}-utils/java-functions\
|
||||
\
|
Loading…
x
Reference in New Issue
Block a user