summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoleyn Su <boleyn.su@gmail.com>2020-12-01 18:50:15 +0900
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-12-18 12:06:25 -0800
commite6ebf3224ce898d9c55c0fe3fc29a47fe17a6906 (patch)
treef1069fbeab52de18eadfd046c164df64aa417d99 /sys-apps/baselayout-java
parentsys-fs/zfs-kmod: replace sed with a proper patch in 0.8.6 (diff)
downloadgentoo-e6ebf3224ce898d9c55c0fe3fc29a47fe17a6906.tar.gz
gentoo-e6ebf3224ce898d9c55c0fe3fc29a47fe17a6906.tar.bz2
gentoo-e6ebf3224ce898d9c55c0fe3fc29a47fe17a6906.zip
Fix postinst script of sys-apps/baselayout-java
The old postinst will not work for binpkg. This CL fixes it. Closes: https://bugs.gentoo.org/757837 Signed-off-by: Boleyn Su <boleynsu@google.com> Closes: https://github.com/gentoo/gentoo/pull/18469 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-apps/baselayout-java')
-rw-r--r--sys-apps/baselayout-java/baselayout-java-0.1.0-r1.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-apps/baselayout-java/baselayout-java-0.1.0-r1.ebuild b/sys-apps/baselayout-java/baselayout-java-0.1.0-r1.ebuild
index 23ba5272869d..803fe0c5eac9 100644
--- a/sys-apps/baselayout-java/baselayout-java-0.1.0-r1.ebuild
+++ b/sys-apps/baselayout-java/baselayout-java-0.1.0-r1.ebuild
@@ -28,7 +28,7 @@ src_install() {
exeinto /etc/ca-certificates/update.d
newexe - java-cacerts <<-_EOF_
#!/bin/sh
- exec trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose server-auth "${EROOT}"/etc/ssl/certs/java/cacerts
+ exec trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose server-auth "${EPREFIX}/etc/ssl/certs/java/cacerts"
_EOF_
}
@@ -44,6 +44,6 @@ pkg_postinst() {
# so jdk ebuilds can create symlink to in into security directory
if [[ ! -f "${EROOT}"/etc/ssl/certs/java/cacerts ]]; then
einfo "Generating java cacerts file from system ca-certificates"
- "${EROOT}"/etc/ca-certificates/update.d/java-cacerts || die
+ trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose server-auth "${EROOT}/etc/ssl/certs/java/cacerts" || die
fi
}