ibara / openbsd-ports-wip

Work-in-progress ports for OpenBSD
12 stars 1 forks source link

[devel/lazarus] Shows FPC sources missing on welcome dialog #2

Open adnan360 opened 2 years ago

adnan360 commented 2 years ago

devel/lazarus shows an FPC sources missing error on startup dialog.

All the other items are fine, shows the following on FPC sources page:

Directory: /usr/local/share/lazarus/

Error: directory rtl not found
You can download FPC and the FPC sources from http://sourceforge.net/projects/lazarus/?source=directory

Here is a screenshot:

lazarus-error-fpc-fs8

~It is probably due to how the fpc sources are. It doesn't have the paths for *BSD platforms there. Even the dialog suggests a rtl/linux path.~ It seems there are sources for bsd. So maybe the rtl/linux is just an example?

The problem is also discussed here for PC-BSD and it has a probable solution:

... missing fpc files: I have downloaded the source files and made an extra directory in /usr/pbi/lazarus-amd64/local/share/lazarus names "fpc". I dumped all the files there, it wasn't enough to only copy the "rtl" directory and I didn't want to search for the who and what. I dumped everything there. Now at start-up he still complains about missing rtl. Point him to the self made fpc directory and ready.

Steps to reproduce:

Current result:

Shows the FPC sources error above

Expected result:

Start up without the above error

EDIT: Crossed out some lines

adnan360 commented 2 years ago

The problem is also discussed here for PC-BSD and it has a probable solution

I tried something like this:

cd ~/Downloads
ftp ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.2.2/source/fpc-3.2.2.source.tar.gz
cd /usr/local/share/lazarus
doas mkdir fpc
cd fpc
doas tar xvzf ~/Downloads/fpc-3.2.2.source.tar.gz

Then I entered the path /usr/local/share/lazarus/fpc/fpc-3.2.2 in the dialog box. It showed "OK" and I was able to get it working.

lazarus-error-path-2-fs8

I was able to hit Run -> Run and the blank project was build successfully. So I guess this is a good workaround.

I ran a find /usr -name 'system.pp' before doing the above and it returned empty. So maybe we need a devel-fpc package?