diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-07-31 23:16:15 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-08-02 23:34:22 +0100 |
commit | 2b5c4aea1d5b482987578a61793dc93da19b4c36 (patch) | |
tree | 175423f3fb7b63feb862798d1e0d8b1aaa7553ff /eclass/java-vm-2.eclass | |
parent | java-vm-2.eclass: Make get_system_arch ABI-aware (diff) | |
download | gentoo-2b5c4aea1d5b482987578a61793dc93da19b4c36.tar.gz gentoo-2b5c4aea1d5b482987578a61793dc93da19b4c36.tar.bz2 gentoo-2b5c4aea1d5b482987578a61793dc93da19b4c36.zip |
java-vm-2.eclass: Allow java-vm_revdep-mask to be called repeatedly
This is useful for multilib JVM ebuilds. revdep-rebuild currently
supports multiple SEARCH_DIRS_MASK entries.
Diffstat (limited to 'eclass/java-vm-2.eclass')
-rw-r--r-- | eclass/java-vm-2.eclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/java-vm-2.eclass b/eclass/java-vm-2.eclass index 52f040e5a0ee..8bfb1bb2e2d2 100644 --- a/eclass/java-vm-2.eclass +++ b/eclass/java-vm-2.eclass @@ -267,10 +267,13 @@ java-vm_set-pax-markings() { # @CODE java-vm_revdep-mask() { + debug-print-function ${FUNCNAME} "$*" + local VMROOT="${1-"${EPREFIX}"/opt/${P}}" - dodir /etc/revdep-rebuild/ - echo "SEARCH_DIRS_MASK=\"${VMROOT}\""> "${ED}/etc/revdep-rebuild/61-${VMHANDLE}" + dodir /etc/revdep-rebuild + echo "SEARCH_DIRS_MASK=\"${VMROOT}\"" >> "${ED}/etc/revdep-rebuild/61-${VMHANDLE}" \ + || die "Failed to write revdep-rebuild mask file" } |