Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-03

upgrading fpc rpm removes fpc.cfg

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

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

Reply by email

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
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

Reply by email

Luca Olivetti
to Mattias Gaertner: I just installed on a fresh Linux Fedora 14 the fpc rpm via yum, which installed fpc…

Al 17/03/11 12:20, En/na Mattias Gaertner ha escrit:

Show quoted text 8 lines
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:

~]$ 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

Reply by email