[fpc-pascal] upgrading fpc rpm removes fpc.cfg
Hi all, I just installed on a fresh Linux Fedora 14 the fpc rpm via yum, which installed fpc 2.4.0. Then I downloaded from www.freepascal.org the rpm for fpc 2.4.2 and installed it via upgrade function (rpm -Uvh fpc-2.4.2-1.i686.rpm). To my surprise this renamed the /etc/fpc.cfg to /etc/fpc.cfg.orig and did *not* install a new fpc.cfg, thus no unit can be found. Is this known? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] upgrading fpc rpm removes fpc.cfg
On 17 Mar 2011, at 12:20, Mattias Gaertner wrote: I just installed on a fresh Linux Fedora 14 the fpc rpm via yum, which installed fpc 2.4.0. Then I downloaded from www.freepascal.org the rpm for fpc 2.4.2 and installed it via upgrade function (rpm -Uvh fpc-2.4.2-1.i686.rpm). To my surprise this renamed the /etc/fpc.cfg to /etc/fpc.cfg.orig That is normal. and did *not* install a new fpc.cfg, thus no unit can be found. This is not. Is this known? I haven't seen any bug reports about this, which is quite strange since FPC 2.4.2 has been available for quite a while already. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] upgrading fpc rpm removes fpc.cfg
Al 17/03/11 12:20, En/na Mattias Gaertner ha escrit: > Hi all, > > I just installed on a fresh Linux Fedora 14 the fpc rpm via yum, which > installed fpc 2.4.0. > Then I downloaded from www.freepascal.org the rpm for fpc 2.4.2 and > installed it via upgrade function (rpm -Uvh fpc-2.4.2-1.i686.rpm). > To my surprise this renamed the /etc/fpc.cfg to /etc/fpc.cfg.orig and > did *not* install a new fpc.cfg, thus no unit can be found. Under mandriva (2010.0) I used -i instead of -U (probably I had to force installation due to file conflicts -- man pages -- and a missing requirements -- libtinfo.so.5) so I have more than one version installed: [luca@po68 ~]$ rpm -q fpc fpc-2.2.4-1 fpc-2.4.0-1 fpc-2.4.2-1 I have an /etc/fpc.cfg and its date is the same date as the install date of fpc-2.4.2 (I don't think I touched it but I don't really remember). I do remember that I had to manually adjust the simlink /usr/bin/ppc386. The fact that I used -i instead of -U shouldn't matter (the postinstall script that creates fpc.cfg doesn't check if it's an install or an upgrade). Bye -- Luca ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Type of file mode variable
In the file \lazarus\fpc\2.4.3\source\rtl\inc\systemh.inc I found the following definitions: { file input modes } fmClosed = $D7B0; fmInput = $D7B1; fmOutput = $D7B2; fmInOut = $D7B3; fmAppend = $D7B4; Filemode : byte = 2; If I assign "Filemode := fmInOut" I get a constant range check error (at compilation time) which is clear because all constants are larger than byte. Is this a bug? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Type of file mode variable
On 17 Mar 2011, at 19:07, Jürgen Hestermann wrote: > If I assign "Filemode := fmInOut" I get a constant range check error (at > compilation time) which is clear because all constants are larger than byte. > Is this a bug? No. See http://www.freepascal.org/faq.var#filemode for more info. Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Type of file mode variable
Jonas Maebe schrieb: On 17 Mar 2011, at 19:07, Jürgen Hestermann wrote: If I assign "Filemode := fmInOut" I get a constant range check error (at compilation time) which is clear because all constants are larger than byte. Is this a bug? No. See http://www.freepascal.org/faq.var#filemode for more info. I didn't find "fminout" and the other constants mentioned at this link. Are they not for assigning to filemode? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Type of file mode variable
On 17 Mar 2011, at 19:24, Jürgen Hestermann wrote: > Jonas Maebe schrieb: >> On 17 Mar 2011, at 19:07, Jürgen Hestermann wrote: >> >>> If I assign "Filemode := fmInOut" I get a constant range check error (at >>> compilation time) which is clear because all constants are larger than byte. >>> Is this a bug? >>> >> No. See http://www.freepascal.org/faq.var#filemode for more info. >> > > I didn't find "fminout" and the other constants mentioned at this link. It describes the values you can assign to filemode and their effect. > Are they not for assigning to filemode? No. They're mainly for internal use in the system unit. I guess the only reason they are public is that they can also be useful when you implement your own text file driver (which you're unlikely to want to do). Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Type of file mode variable
Jonas Maebe schrieb: >> I didn't find "fminout" and the other constants mentioned at this link. > It describes the values you can assign to filemode and their effect. Does that mean, that only 3 values for filemode (0, 1 and 2) exist? Then it is quite confusing to group the filemode declaration and the other (multi byte) fm constants together if they are completely unrelated. In the link it also says: "For more information, consult the Free Pascal reference manual" I found filemode mentioned in the RTL manual where in section 10.5 it says: "For their defnitions consult the following table:" But there is no following table. A bug in the manual? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal