From owner-freebsd-ports Tue Feb 25 10:56:35 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E7B437B401 for ; Tue, 25 Feb 2003 10:56:31 -0800 (PST) Received: from wrzx35.rz.uni-wuerzburg.de (wrzx35.rz.uni-wuerzburg.de [132.187.3.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE51943FA3 for ; Tue, 25 Feb 2003 10:56:29 -0800 (PST) (envelope-from q@uni.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx35.rz.uni-wuerzburg.de (8.8.8/8.8.8/uniwue-MM-1.05) with ESMTP id TAA438530; Tue, 25 Feb 2003 19:56:28 +0100 (CET) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id B36586796D; Tue, 25 Feb 2003 19:56:28 +0100 (CET) Received: from wrzx07.rz.uni-wuerzburg.de ([132.187.1.7]) by virusscan (wrzx34 [132.187.3.34:25]) (amavisd-new) with ESMTP id 08848-03; Tue, 25 Feb 2003 19:56:28 +0100 (CET) Received: from spamchecker (localhost [127.0.0.1]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id D4B144973; Tue, 25 Feb 2003 19:56:27 +0100 (CET) Received: from coyote.dnsalias.net (gb-007.galgenberg.net [132.187.222.7]) by wrzx07.rz.uni-wuerzburg.de (Postfix) with ESMTP id A52DF4970; Tue, 25 Feb 2003 19:56:27 +0100 (CET) Received: from roadrunner.local (roadrunner [192.168.0.147]) by coyote.dnsalias.net (8.12.6/8.12.6) with ESMTP id h1PIuRjM022811; Tue, 25 Feb 2003 19:56:28 +0100 (CET) (envelope-from q@uni.de) Received: from roadrunner.local (localhost [127.0.0.1]) by roadrunner.local (8.12.6/8.12.6) with ESMTP id h1PIuOWV060259; Tue, 25 Feb 2003 19:56:24 +0100 (CET) (envelope-from q@uni.de) Received: (from q@localhost) by roadrunner.local (8.12.6/8.12.6/Submit) id h1PIuMwq060258; Tue, 25 Feb 2003 19:56:22 +0100 (CET) X-Authentication-Warning: roadrunner.local: q set sender to q@uni.de using -f Date: Tue, 25 Feb 2003 19:56:22 +0100 From: Ulrich Spoerlein To: Bjarne Wichmann Petersen Cc: ports@FreeBSD.ORG Subject: Re: StarOffice kills java (Re: StarOffice 6.0 CDROM install) Message-ID: <20030225185622.GF289@galgenberg.net> Mail-Followup-To: Bjarne Wichmann Petersen , ports@FreeBSD.ORG 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OBd5C1Lgu00Gd/Tn" Content-Disposition: inline In-Reply-To: <200302251236.53756.freebsd.nospam@mekanix.dk> User-Agent: Mutt/1.4i X-No-Archive: yes X-Spam-Status: No, hits=-14.1 required=8.0 tests=IN_REP_TO,LOCAL_CLIENT,NICE_HELO,PGP_SIGNATURE_2, REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT, X_AUTH_WARNING version=2.43-string_20021002 X-Spam-Level: X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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