dev-java/oraclejdk-bin: use fetchable Java 8 SRC_URI
因为 OTN 限制再散布,所以设置 RESTRICT=mirror bindist;因为 Adobe 提供同版本可抓取 tarball,所以改 SRC_URI 为可 fetch 地址并以 ${P}.tar.gz 命名。
因为 libavplugin 依赖树中不存在的旧 ffmpeg SONAME,所以安装时移除这些插件。
Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
50b63b7423
commit
6cd3ad5a6d
2 files changed
+7
-24
No files matched your search
@@ -1,2 +1,2 @@
|
||||
DIST jdk-21.0.1_linux-x64_bin.tar.gz 197226694 BLAKE2B ba5f9adeccb2c594f23055940c441eeb71a82babe1a377ba533ff54c9ea8f6ee0b5d6099158233ad81e06b3d08f5f501501fa506ed65ca6d9569ba066360d20f SHA512 1ba6329cad9ae5a4b0fcc6baf0b68df72a4a4fdc31a54de064e842339613624315e172f405c54e185e03b1d6b5d2b95e482b4d6eb9a3d161f08440f645680650
|
||||
DIST jdk-8u391-linux-x64.tar.gz 141887242 BLAKE2B ea1e25d5ac83a845e3537908b9d35711ec25aaeccdf03ac35c3e2c2283cb174a6006eb8ac285c28eed0c3c1d0d44c60f248d7f84bb56a8fe28b96b0d5aee1f56 SHA512 2df6223286bcd90fcda436e8ba3020782433b3b749f3113dc0f7dcedc53e091886b784626e1be08d234356294b3c5048ed0da7064ba7714a9bf25f4f2b034c2e
|
||||
DIST oraclejdk-bin-8.391.tar.gz 141900031 BLAKE2B 69e45090a3b5d22b0a1a809f60f60d28ee215c482da01de8a7c3375b613db1141b4f5c1658c6250819ef1cb2be6d1f28f99616d5ba7f128ae31f503fffed482b SHA512 50c08ee097eb4be384db560c9b3cbe3366b17579835369daf83da9f2f64123f7bbb0ceaa9cc8e4e67677fa585f89c2f274385b847d0f232f57387459a4064b85
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -9,7 +9,7 @@ MY_PV=${PV/./u}
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
||||
HOMEPAGE="https://www.oracle.com/java/technologies/java-se-glance.html"
|
||||
SRC_URI="jdk-${MY_PV}-linux-x64.tar.gz"
|
||||
SRC_URI="https://cfdownload.adobe.com/pub/adobe/coldfusion/java/java8/java8u391/jdk/jdk-${MY_PV}-linux-x64.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/jdk1.8.0_${PV/8./}"
|
||||
LICENSE="OTN"
|
||||
SLOT=$(ver_cut 1)
|
||||
@@ -48,34 +48,17 @@ RDEPEND="
|
||||
virtual/opengl
|
||||
)"
|
||||
|
||||
pkg_nofetch() {
|
||||
ewarn "\e[1;33m############################################################################## \e[0m"
|
||||
ewarn "\e[1;33m# If you're seeing this warning on your screen,please pay attention: # \e[0m"
|
||||
ewarn "\e[1;33m# Portage can not download JDK tar file directly from Oracle's website # \e[0m"
|
||||
ewarn "\e[1;33m# Please download it manually to your distfiles directory # \e[0m"
|
||||
ewarn "\e[1;33m# Distfile directory is '/var/cache/distfile' by default # \e[0m"
|
||||
ewarn "\e[1;33m# Please download 'x64 Compressed Archive' file from following url: # \e[0m"
|
||||
ewarn "\e[1;33m# https://www.oracle.com/java/technologies/downloads/#java8-linux # \e[0m"
|
||||
ewarn "\e[1;33m# If the above mentioned URL does not point to the correct version anymore, # \e[0m"
|
||||
ewarn "\e[1;33m# please download the file from Oracle's Java download archive # \e[0m"
|
||||
ewarn "\e[1;33m# Do Not Continue untill you put it to your distfiles directory # \e[0m"
|
||||
ewarn "\e[1;33m############################################################################## \e[0m"
|
||||
ewarn "\e[1;33m# Portage没法直接从甲骨文官网下载jdk压缩包文件\e[0m"
|
||||
ewarn "\e[1;33m# 请先别急着继续,仔细读上述提示!!\e[0m"
|
||||
}
|
||||
|
||||
RESTRICT="preserve-libs splitdebug fetch"
|
||||
RESTRICT="bindist mirror preserve-libs splitdebug"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}/${dest#/}"
|
||||
# Notion:
|
||||
# There is a libav*.so* related problem not yet get fixed
|
||||
# Maybe downgrading ffmpeg version can resolve this,or maybe should wait for Oracle to make
|
||||
# jdk use high versioned .so stuff.
|
||||
rm COPYRIGHT LICENSE README.html THIRDPARTYLICENSEREADME-JAVAFX.txt THIRDPARTYLICENSEREADME.txt || die
|
||||
|
||||
# Unusable without obsolete ffmpeg SONAMEs absent from the tree.
|
||||
rm -v jre/lib/*/libavplugin*.so || die
|
||||
|
||||
if ! use alsa ; then
|
||||
rm -v jre/lib/*/libjsoundalsa.so* || die
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user