Re: [fpc-devel] Quick patch for bug 3762

2005-04-01 Thread Tomas Hajny
From: "DrDiettrich" <[EMAIL PROTECTED]>
To: "FPC developers' list" 
Subject: Re: [fpc-devel] Quick patch for bug 3762
Date: 31.3.2005 - 22:49:06


> > The main problem is that there's a lot platform independent
> > functionality in Crt unit which is re-implemented for every
> > platform again and again. The best solution would be to throw
> > all
> > the individual implementations away completely and implement
> > cross-platform Crt unit based on capabilities provided by
> > units
> > Keyboard and Video (possibly missing functionalities within
> > these
> > units necessary for Crt could be either handled by platform
> > specific include file, or by extending current Keyboard
> > and/or
> > Video).
> 
> From the discussion I have the impression that there exist
> problems in
> separating keyboard and mouse events. If I'm right here, then
> I'd
> suggest to separate platforms with separate mouse and keyboard
> events
> from platforms with common events for both devices. The
> platform
> independent implementation then should assume and use separate
> queues,
> as provided (separated if required) by the platform specific
> code.

Implementation of the low-level units (Keyboard, Mouse and Video)
for all supported platforms is different from each other (well,
with the exception of Unix being handled as one common group), so
no special separation is necessary there. OTOH, Crt (once rewritten
to be built on top of these low-level units) should be (almost?)
completely platform independent and thus no separation would exist
there either.

Tomas



-- 
Akcni unorova nabidka "3 za cenu 1"! Ziskejte
VOLNY ADSL 512/128 3GB za cenu 1GB!
http://adsl.volny.cz


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Create installer for MacOSX

2005-04-01 Thread Vincent Snijders
Jonas Maebe wrote:

Maybe it's included in XCode 1.5. I'm still using XCode 1.2

Yes, I most likely have a different version of PackageMaker.
I also get a warning:
2005-04-01 07:39:47.651 PackageMaker[18875] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data 
is not proper UTF-8. The file name for this data could be:
/Users/fpcfan/src/fpc/install/macosx/fpc-1.9.8.pmsp
The parser will retry as in 10.2, but the problem should be 
corrected in the plist.

Vincent.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Create installer for MacOSX

2005-04-01 Thread Jonas Maebe
On 1 apr 2005, at 14:16, Vincent Snijders wrote:
PackageMaker has a command line interface for building packages too.
Hoe dan? (of bedoel je pax?)
try
PackageMaker -help
Out of a script:
$PACKAGEMAKER -build -f $INSTALLDIR \
  -r $FPCSOURCEDIR/install/macosx/resources/ \
  -d $FPCSOURCEDIR/install/macosx/fpc-1.9.8.pmsp -p ~/pkg/fpc-1.9.9.pkg
Maybe it's included in XCode 1.5. I'm still using XCode 1.2
Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Create installer for MacOSX

2005-04-01 Thread Vincent Snijders
Jonas Maebe wrote:
On 1 apr 2005, at 13:55, Vincent Snijders wrote:
Another important remark about making a package: always make sure all 
files you add to a package are owned by root/wheel (or root/admin). 
You don't want a random user on the target system, who happens to 
have the same UID as you do, to be able to overwrite those files.

PackageMaker has a command line interface for building packages too.

Hoe dan? (of bedoel je pax?)
try
PackageMaker -help
Out of a script:
$PACKAGEMAKER -build -f $INSTALLDIR \
  -r $FPCSOURCEDIR/install/macosx/resources/ \
  -d $FPCSOURCEDIR/install/macosx/fpc-1.9.8.pmsp -p ~/pkg/fpc-1.9.9.pkg
Vincent.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Create installer for MacOSX

2005-04-01 Thread Jonas Maebe
On 1 apr 2005, at 14:11, Jonas Maebe wrote:

Another important remark about making a package: always make sure 
all files you add to a package are owned by root/wheel (or 
root/admin). You don't want a random user on the target system, who 
happens to have the same UID as you do, to be able to overwrite 
those files.
PackageMaker has a command line interface for building packages too.
Hoe dan? (of bedoel je pax?)
How can I add files to the packages with these ownership (without 
being root myself). With debian/linux I could use fakeroot, but I 
didn't see any ports of this tool to darwin / Mac OS X.
Voor zover ik weet gaat dat niet.
Sorry, I thought it was a private mail :) Anyway, my answers are 
respectively:

"How then? (or do you mean pax?)
and
"As far as I know, that is not possible."
Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Create installer for MacOSX

2005-04-01 Thread Jonas Maebe
On 1 apr 2005, at 13:55, Vincent Snijders wrote:
Another important remark about making a package: always make sure all 
files you add to a package are owned by root/wheel (or root/admin). 
You don't want a random user on the target system, who happens to 
have the same UID as you do, to be able to overwrite those files.
PackageMaker has a command line interface for building packages too.
Hoe dan? (of bedoel je pax?)
How can I add files to the packages with these ownership (without 
being root myself). With debian/linux I could use fakeroot, but I 
didn't see any ports of this tool to darwin / Mac OS X.
Voor zover ik weet gaat dat niet.
Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Create installer for MacOSX

2005-04-01 Thread Vincent Snijders
Jonas Maebe wrote:
On 15 mrt 2005, at 05:58, Adriaan van Os wrote:
PackageMaker is basically a GUI interface to pax, so it might be 
possible to create a Mac OS X installer package with command line 
tools. You would have to look at the file layout of a package by using 
PackageMaker first or by looking at an existing package. I didn't try 
this, it is just an idea.

Another important remark about making a package: always make sure all 
files you add to a package are owned by root/wheel (or root/admin). You 
don't want a random user on the target system, who happens to have the 
same UID as you do, to be able to overwrite those files.

PackageMaker has a command line interface for building packages too.
How can I add files to the packages with these ownership (without being 
root myself). With debian/linux I could use fakeroot, but I didn't see 
any ports of this tool to darwin / Mac OS X.

Vincent.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel