syntax error at (eval 1) line 1, near "."
/usr/share/makepkg/util/message.sh: line 84: RED: unbound variable
:: failed to build jdk8 package(s)
What is this?
Git Clone URL: | https://aur.archlinux.org/jdk8.git (read-only, click to copy) |
---|---|
Package Base: | jdk8 |
Description: | Oracle Java 8 Development Kit LTS |
Upstream URL: | https://www.oracle.com/technetwork/java/javase/downloads/index.html |
Keywords: | java-environment-jdk java-openjfx java-runtime-headless-jre java-runtime-jre java-web-start-jre |
Licenses: | custom:Oracle |
Provides: | java-environment, java-environment-jdk, java-openjfx, java-runtime, java-runtime-headless, java-runtime-headless-jre, java-runtime-jre, java-web-start, java-web-start-jre |
Submitter: | Det |
Maintainer: | severach |
Last Packager: | severach |
Votes: | 105 |
Popularity: | 0.000039 |
First Submitted: | 2017-09-21 22:18 (UTC) |
Last Updated: | 2025-02-04 03:22 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 .. 11 Next › Last »
syntax error at (eval 1) line 1, near "."
/usr/share/makepkg/util/message.sh: line 84: RED: unbound variable
:: failed to build jdk8 package(s)
What is this?
The package can be installed without login or manual download, if you just remove a few lines from the PKBUILD. See the following patch for details:
--- PKGBUILD 2020-11-11 06:17:01.000000000 +0100
+++ PKGBUILD 2020-11-13 10:40:25.463899185 +0100
@@ -72,28 +72,6 @@
"policytool-${_jname}.desktop"
'readme.sh'
)
-# from oracle-sqldeveloper
-if :; then
-DLAGENTS+=("manual::${startdir:-}/readme.sh %o %u")
-source[0]="manual://${_srcfil}"
-if [ ! -z "${HOME:-}" ]; then # block mksrcinfo
- XDG_DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD 2>/dev/null)" || :
- if [ -z "${XDG_DOWNLOAD_DIR}" ]; then
- XDG_DOWNLOAD_DIR=~/'Downloads'
- fi
- if [ -s "${XDG_DOWNLOAD_DIR}/${_srcfil}" ] && [ ! -e "${_srcfil}" ]; then
- if type msg > /dev/null 2>&1; then
- set +u
- msg "Scooping files from ${XDG_DOWNLOAD_DIR}" 1>&2
- msg2 "${_srcfil}" 1>&2
- set -u
- ln -sr "${XDG_DOWNLOAD_DIR}/${_srcfil}"
- fi
- fi
-fi
-unset _srcfil
-unset XDG_DOWNLOAD_DIR
-fi
md5sums=('bd8dc95a810b095996acf5f5b0dd2a69'
'8a66f50efdc867ffd6a27168bc93b210'
8u271 patch:
--- PKGBUILD 2020-10-24 22:54:54.786889790 -0500
+++ PKGBUILD 2020-10-24 22:45:35.689640435 -0500
@@ -10,7 +10,8 @@
#_minor='231'; _build='b11'; _hash='5b13a193868b4bf28bcb45c792fce896'
#_minor='241'; _build='b07'; _hash='1f5b5a70bf22433b84d0e960903adac8'
#_minor='251'; _build='b08'; _hash='3d5a2bb8f8d4428bbe94aed7ec7ae784'
-_minor='261'; _build='b12'; _hash='a4634525489241b9a9e1aa73d9e118e6'
+#_minor='261'; _build='b12'; _hash='a4634525489241b9a9e1aa73d9e118e6'
+_minor='271'; _build='b09'; _hash='bd8dc95a810b095996acf5f5b0dd2a69'
pkgver="${_major}u${_minor}"
pkgrel='1'
pkgdesc="Oracle Java ${_major} Development Kit"
@@ -94,13 +95,13 @@
unset XDG_DOWNLOAD_DIR
fi
-md5sums=('1522f0c6380fa4993e932eb0c6006ef1'
+md5sums=('bd8dc95a810b095996acf5f5b0dd2a69'
'8a66f50efdc867ffd6a27168bc93b210'
'1cbde70639abd98db4bace284dbf2bc4'
'f0b39865361437f3778ecbe6ffbc0a06'
'89704501aff8efe859c31968d8d168e6'
'51c8839211cc53f09c9b11a8e28ed1ef')
-sha256sums=('5a04e01a091f6b1ed9c0b801be4fd10689af07eeb9e27f012c9aa3af9948ea34'
+sha256sums=('eba7926a683bb65c6f4e1c502ce624346c42b00fb5531deba296f2560b452c78'
'65282603bd0804d162f3f7da47bc7f3c91373e87504297d6a6fd6f2f8a1ec4ee'
'8f865b52946a9ab98556c56306c7e70ae7aa432b4d005c70df0bba9d2c3111b1'
'144e6651fcea08d95f3148d3a8ad17deb93fec4dd9236d37d27d7c648230b870'
@@ -250,3 +251,4 @@
set +u
}
set +u
+
Flagged as Out-Of-Date (JDK 8u271 is out now)
Please, everyone, do not flag this package out-of-date when you are not even able to read. The instructions are are VERY clear. The "error" message tells you EXACTLY what to do. If you don't like it, use the openjdk or got scream at oracle. Just don't flag the package please, use your brain and eyes. Thanks.
It is possible to download the jdk tarball after logging in. It seems oracle messed up their link redirection. You can use this link to download jdk 8 :[https://edelivery.oracle.com/akam/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-linux-x64.tar.gz]
You can download other jdk the same way I believe. After sign in goto download page and click download on the preferred jdk. The link will fail as of now, blame oracle. But you can check the address bar. The link will have a redirect parameter with the actual working download link. Simply remove everything from beginning upto the 'redirect=' parameter or copy and paste the redirect link and you will be able to download the jdk tar ball.
Theres an error when installing this.
==> Making package: jdk8 8u261-1 (Fri 14 Aug 2020 02:53:41 PM)
==> Retrieving sources...
-> Downloading jdk-8u261-linux-x64.tar.gz...
The source file for this package needs to be downloaded manually
since it requires a login and is not redistributable.
Please visit
https://www.oracle.com/technetwork/java/javase/downloads/
Java SE ... JDK, Download v
and download
jdk-8u261-linux-x64.tar.gz
to your Downloads folder (XDG_DOWNLOAD_DIR) or in with the PKGBUILD.
Please do not post alternate sources. They are not legal. Advertising
will get them taken down by Oracle or too much traffic. Keep it a
secret.
==> ERROR: Failure while downloading manual://jdk-8u261-linux-x64.tar.gz
Aborting...
error downloading sources: jdk8
Is there any fix?
For those running tiling window managers like dwm and don't have a XDG_DOWNLOAD_DIR or don't know how to set it, just put the tar.gz file in the same build directory. If anyone is having trouble downloading the new JDK8 261 update just follow the Pinned comment instruction about creating an oracle account, then download the x64 .tar.gz (or your architecture's) then from your browser Copy Download Link which will look something like this: https://download.oracle.com/otn/java/jdk/8u261-b12/a4634525489241b9a9e1aa73d9e118e6/jdk-8u261-linux-x64.tar.gz?AuthParam=1595086755_e25e5744730391bb437a6b58a2460f0c
In the direct download link you will get the version-buildID-hash right after "jdk/" in this case my direct download link looks like: -8u261- (minor) -b12- (build) -a4634525489241b9a9e1aa73d9e118e6 (hash)
Modify the PKGBUILD and add those.
PKGEXT can now be '.pkg.tar.zst' ?
Pinned Comments
severach commented on 2019-04-17 06:47 (UTC) (edited on 2019-04-27 04:59 (UTC) by severach)
Direct downloads are no longer available. Create your Oracle account, download, and put in with the PKGBUILD.
New and improved. Now you can just download to ~/Downloads then run the update.