Date: Tue, 25 Feb 2003 19:56:22 +0100 From: Ulrich Spoerlein <q@uni.de> To: Bjarne Wichmann Petersen <freebsd.nospam@mekanix.dk> Cc: ports@FreeBSD.ORG Subject: Re: StarOffice kills java (Re: StarOffice 6.0 CDROM install) Message-ID: <20030225185622.GF289@galgenberg.net> In-Reply-To: <200302251236.53756.freebsd.nospam@mekanix.dk> References: <20030218130754.GA92719@wop21.wop.wtb.tue.nl> <200302191115.19657.freebsd.nospam@mekanix.dk> <20030219123158.GA96378@wop21.wop.wtb.tue.nl> <200302251236.53756.freebsd.nospam@mekanix.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
--OBd5C1Lgu00Gd/Tn Content-Type: multipart/mixed; boundary="2B/JsCI69OhZNC5r" Content-Disposition: inline --2B/JsCI69OhZNC5r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 25.02.2003 at 12:36:53 +0100, Bjarne Wichmann Petersen wrote: > > What version of linux_base do you have? I have 7.1, and libXrender.so > > is installed as part of that port (the linux version within /compat/lin= ux). >=20 > Ah, yes, that was it... but now I'm back to my good old problem: linux-ja= va=20 > doesn't work with linux-base 7+. >=20 > What *is* this problem about? It have been an issue almost as long as I'v= e=20 > been using FreeBSD. Why doesn't linux(ibm|sun)-java work under linux-base= 7? Try the attached patch. It's working fine for me. --2B/JsCI69OhZNC5r Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="linux-jdk.patch" Content-Transfer-Encoding: quoted-printable --- sys/posix4/p1003_1b.c.orig Fri Nov 8 13:07:33 2002 +++ sys/posix4/p1003_1b.c Fri Nov 8 13:19:11 2002 @@ -178,15 +178,22 @@ int sched_getparam(struct proc *p, struct sched_getparam_args *uap) { - int e; + int e =3D 0; + struct proc *targetp; struct sched_param sched_param; =20 - (void) (0 - || (e =3D p31b_proc(p, uap->pid, &p)) - || (e =3D ksched_getparam(&p->p_retval[0], ksched, p, &sched_param)) - ); + if (uap->pid =3D=3D 0) { + targetp =3D p; + } else { + targetp =3D pfind(uap->pid); + if (targetp =3D=3D NULL) + e =3D ESRCH; + } + + if (e =3D=3D 0) + e =3D ksched_getparam(&p->p_retval[0], ksched, targetp, &sched_param); =20 - if (!e) + if (e =3D=3D 0) copyout(&sched_param, uap->param, sizeof(sched_param)); =20 return e; @@ -211,13 +218,21 @@ int sched_getscheduler(struct proc *p, struct sched_getscheduler_args *uap) { - int e; - (void) (0 - || (e =3D p31b_proc(p, uap->pid, &p)) - || (e =3D ksched_getscheduler(&p->p_retval[0], ksched, p)) - ); + int e =3D 0; + struct proc *targetp; =20 - return e; + if (uap->pid =3D=3D 0) { + targetp =3D p; + } else { + targetp =3D pfind(uap->pid); + if (targetp =3D=3D NULL) + e =3D ESRCH; + } + + if (e =3D=3D 0) + e =3D ksched_getscheduler(&p->p_retval[0], ksched, targetp); + + return (e); } int sched_yield(struct proc *p, struct sched_yield_args *uap) --2B/JsCI69OhZNC5r-- --OBd5C1Lgu00Gd/Tn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+W7xWmArGtfDbn0QRApBNAJ9zuJVemjKp7F4a9q0YSZ+DdbOW3wCfTfoi vYBNH0tLyTYKeXF53iEVNEc= =0HCM -----END PGP SIGNATURE----- --OBd5C1Lgu00Gd/Tn-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030225185622.GF289>