mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8165161: Solaris: /usr/ccs /opt/sfw and /opt/csw are dead, references should be expunged
Reviewed-by: rriggs, erikj
This commit is contained in:
parent
0d0e86808b
commit
4e8fe41e35
8 changed files with 14 additions and 20 deletions
|
@ -152,8 +152,8 @@ defaultPath(void)
|
||||||
#ifdef __solaris__
|
#ifdef __solaris__
|
||||||
/* These really are the Solaris defaults! */
|
/* These really are the Solaris defaults! */
|
||||||
return (geteuid() == 0 || getuid() == 0) ?
|
return (geteuid() == 0 || getuid() == 0) ?
|
||||||
"/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin:/usr/sbin" :
|
"/usr/xpg4/bin:/usr/bin:/opt/SUNWspro/bin:/usr/sbin" :
|
||||||
"/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin:";
|
"/usr/xpg4/bin:/usr/bin:/opt/SUNWspro/bin:";
|
||||||
#else
|
#else
|
||||||
return ":/bin:/usr/bin"; /* glibc */
|
return ":/bin:/usr/bin"; /* glibc */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -442,7 +442,7 @@ getAllConfigs (JNIEnv *env, int screen, AwtScreenDataPtr screenDataPtr) {
|
||||||
|
|
||||||
#ifndef __linux__ /* SOLARIS */
|
#ifndef __linux__ /* SOLARIS */
|
||||||
if (xrenderLibHandle == NULL) {
|
if (xrenderLibHandle == NULL) {
|
||||||
xrenderLibHandle = dlopen("/usr/sfw/lib/libXrender.so.1",
|
xrenderLibHandle = dlopen("/usr/lib/libXrender.so.1",
|
||||||
RTLD_LAZY | RTLD_GLOBAL);
|
RTLD_LAZY | RTLD_GLOBAL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -45,7 +45,7 @@ import static sun.security.pkcs11.wrapper.PKCS11Constants.*;
|
||||||
* <pre>
|
* <pre>
|
||||||
* Secmod secmod = Secmod.getInstance();
|
* Secmod secmod = Secmod.getInstance();
|
||||||
* if (secmod.isInitialized() == false) {
|
* if (secmod.isInitialized() == false) {
|
||||||
* secmod.initialize("/home/myself/.mozilla", "/usr/sfw/lib/mozilla");
|
* secmod.initialize("/home/myself/.mozilla");
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* Provider p = secmod.getModule(ModuleType.KEYSTORE).getProvider();
|
* Provider p = secmod.getModule(ModuleType.KEYSTORE).getProvider();
|
||||||
|
|
|
@ -82,15 +82,12 @@ if [ "${osname}" = SunOS ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add basic solaris system paths
|
# Add basic solaris system paths
|
||||||
path4sdk=/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
|
path4sdk=/usr/bin:/usr/gnu/bin
|
||||||
|
|
||||||
# Find GNU make
|
# Find GNU make
|
||||||
make=/usr/sfw/bin/gmake
|
make=/usr/bin/gmake
|
||||||
if [ ! -f ${make} ] ; then
|
if [ ! -f ${make} ] ; then
|
||||||
make=/opt/sfw/bin/gmake
|
make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
|
||||||
if [ ! -f ${make} ] ; then
|
|
||||||
make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fileMustExist "${make}" make
|
fileMustExist "${make}" make
|
||||||
|
|
||||||
|
|
|
@ -59,9 +59,6 @@ else
|
||||||
/usr/bin/nohup /usr/bin/X11/Xvfb -fbdir ${currentDir} -pixdepths 8 16 24 32 ${DISPLAY} > ${currentDir}/nohup.$$ 2>&1 &
|
/usr/bin/nohup /usr/bin/X11/Xvfb -fbdir ${currentDir} -pixdepths 8 16 24 32 ${DISPLAY} > ${currentDir}/nohup.$$ 2>&1 &
|
||||||
fi
|
fi
|
||||||
WM="/usr/bin/X11/fvwm2"
|
WM="/usr/bin/X11/fvwm2"
|
||||||
if [ ! -x ${WM} ] ; then
|
|
||||||
WM="/opt/sfw/bin/fvwm2"
|
|
||||||
fi
|
|
||||||
#
|
#
|
||||||
# Wait for Xvfb to initialize:
|
# Wait for Xvfb to initialize:
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
|
|
||||||
Rough hints for setting up MUSCLE on Solaris:
|
Rough hints for setting up MUSCLE on Solaris:
|
||||||
|
|
||||||
Make sure you have libusb, usually in /usr/sfw:
|
Make sure you have libusb, usually in /usr/lib:
|
||||||
|
|
||||||
ls -l /usr/sfw/lib/libusb.so
|
ls -l /usr/lib/libusb.so
|
||||||
lrwxrwxrwx 1 root other 11 Jan 12 16:02 /usr/sfw/lib/libusb.so -> libusb.so.1
|
lrwxrwxrwx 1 root other 11 Jan 12 16:02 /usr/lib/libusb.so -> libusb.so.1
|
||||||
|
|
||||||
Get PCSC and CCID.
|
Get PCSC and CCID.
|
||||||
-rwx------ 1 user staff 529540 Jun 16 18:24 ccid-1.0.1.tar.gz
|
-rwx------ 1 user staff 529540 Jun 16 18:24 ccid-1.0.1.tar.gz
|
||||||
-rwx------ 1 user staff 842654 Jun 16 18:24 pcsc-lite-1.3.1.tar.gz
|
-rwx------ 1 user staff 842654 Jun 16 18:24 pcsc-lite-1.3.1.tar.gz
|
||||||
|
|
||||||
Unpack pcsc
|
Unpack pcsc
|
||||||
Run ./configure --enable-libusb=/usr/sfw (??)
|
Run ./configure --enable-libusb (??)
|
||||||
gnumake
|
gnumake
|
||||||
Make /usr/local writeable for user
|
Make /usr/local writeable for user
|
||||||
gnumake install
|
gnumake install
|
||||||
|
|
|
@ -1761,7 +1761,7 @@ public class KeyToolTest {
|
||||||
//PKCS#11 tests
|
//PKCS#11 tests
|
||||||
|
|
||||||
// 1. sccs edit cert8.db key3.db
|
// 1. sccs edit cert8.db key3.db
|
||||||
//Runtime.getRuntime().exec("/usr/ccs/bin/sccs edit cert8.db key3.db");
|
//Runtime.getRuntime().exec("/usr/bin/sccs edit cert8.db key3.db");
|
||||||
testOK("", p11Arg + ("-storepass test12 -genkey -alias genkey" +
|
testOK("", p11Arg + ("-storepass test12 -genkey -alias genkey" +
|
||||||
" -dname cn=genkey -keysize 512 -keyalg rsa"));
|
" -dname cn=genkey -keysize 512 -keyalg rsa"));
|
||||||
testOK("", p11Arg + "-storepass test12 -list");
|
testOK("", p11Arg + "-storepass test12 -list");
|
||||||
|
@ -1781,7 +1781,7 @@ public class KeyToolTest {
|
||||||
testOK("", p11Arg + "-storepass test12 -list");
|
testOK("", p11Arg + "-storepass test12 -list");
|
||||||
assertTrue(out.indexOf("Your keystore contains 0 entries") != -1);
|
assertTrue(out.indexOf("Your keystore contains 0 entries") != -1);
|
||||||
//(check for empty database listing)
|
//(check for empty database listing)
|
||||||
//Runtime.getRuntime().exec("/usr/ccs/bin/sccs unedit cert8.db key3.db");
|
//Runtime.getRuntime().exec("/usr/bin/sccs unedit cert8.db key3.db");
|
||||||
remove("genkey.cert");
|
remove("genkey.cert");
|
||||||
remove("genkey.certreq");
|
remove("genkey.certreq");
|
||||||
// 12. sccs unedit cert8.db key3.db
|
// 12. sccs unedit cert8.db key3.db
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class RunpathTest extends TestHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
final String findElfReader() {
|
final String findElfReader() {
|
||||||
String[] paths = {"/bin", "/sbin", "/usr/bin", "/usr/sbin", "/usr/ccs/bin"};
|
String[] paths = {"/usr/sbin", "/usr/bin"};
|
||||||
final String cmd = isSolaris ? "elfdump" : "readelf";
|
final String cmd = isSolaris ? "elfdump" : "readelf";
|
||||||
for (String x : paths) {
|
for (String x : paths) {
|
||||||
File p = new File(x);
|
File p = new File(x);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue