* [gentoo-dev] Patch: java-vm-2.eclass support for java build-only vm's
@ 2009-08-24 11:33 Alistair Bush
0 siblings, 0 replies; only message in thread
From: Alistair Bush @ 2009-08-24 11:33 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1.1: Type: Text/Plain, Size: 408 bytes --]
Simple patch as part of java-config's support for marking EOL and security
vulnerable vm's to be marked as 'build only'. Users setting these as either
their system or user vm will be warned of the risks of doing so.
The release of java-config with this functionality, this eclass and some
associated version bumps will all be in the tree by weeks end.
Any suggestions are welcome.
Alistair.
[-- Attachment #1.2: java-vm-2.eclass.patch --]
[-- Type: text/x-patch, Size: 884 bytes --]
Index: java-vm-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-vm-2.eclass,v
retrieving revision 1.27
diff -u -b -B -r1.27 java-vm-2.eclass
--- java-vm-2.eclass 17 Apr 2009 22:50:41 -0000 1.27
+++ java-vm-2.eclass 24 Aug 2009 11:20:04 -0000
@@ -24,6 +24,7 @@
JAVA_VM_CONFIG_DIR="/usr/share/java-config-2/vm"
JAVA_VM_DIR="/usr/lib/jvm"
+JAVA_VM_BUILD_ONLY="${JAVA_VM_BUILD_ONLY:-FALSE}"
EXPORT_FUNCTIONS pkg_setup pkg_postinst pkg_prerm pkg_postrm
@@ -134,7 +135,10 @@
< ${source_env_file} \
> ${env_file} || die "sed failed"
- echo "VMHANDLE=\"${VMHANDLE}\"" >> ${env_file}
+ (
+ echo "VMHANDLE=\"${VMHANDLE}\""
+ echo "BUILD_ONLY=\"${JAVA_VM_BUILD_ONLY}\""
+ ) >> ${env_file}
[[ -n ${JAVA_PROVIDE} ]] && echo "PROVIDES=\"${JAVA_PROVIDE}\"" >> ${env_file}
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-24 11:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-24 11:33 [gentoo-dev] Patch: java-vm-2.eclass support for java build-only vm's Alistair Bush
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox