Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33019 - Lazarus - a kylix/delphi-like (free)pascal IDE [ebuild request]
Summary: Lazarus - a kylix/delphi-like (free)pascal IDE [ebuild request]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: George Shapovalov (RETIRED)
URL: http://www.lazarus.freepascal.org/
Whiteboard:
Keywords:
: 72972 75458 82818 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-08 10:39 UTC by Matija "hook" Šuklje
Modified: 2005-04-10 02:08 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lazarus-0.9.1.4.ebuild (lazarus-0.9.1.4.ebuild,1.05 KB, text/plain)
2004-07-10 08:27 UTC, Boris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matija "hook" Šuklje 2003-11-08 10:39:13 UTC
---ripped from their page [start]---
 So just what is Lazarus?

Lazarus is the class libraries for Free Pascal that emulate Delphi. Free Pascal is a GPL'ed compiler that runs on Linux, Win32, OS/2, 68K and more. Free Pascal is designed to be able to understand and compile Delphi syntax, which is of course OOP. Lazarus is the part of the missing puzzle that will allow you to develop Delphi like programs in all of the above platforms. Unlike Java which strives to be a write once run anywhere, Lazarus and Free Pascal strives for write once compile anywhere. Since the exact same compiler is available on all of the above platforms it means you don't need to do any recoding to produce identical products for different platforms. 
---ripped from their page [end]---

I could just describe it as a free open-sourced IDE with a kylix/delphi touch (and a bit less bloat, polish and features) that's based on Free Pascal and doesn't need wine to run (as kylix does!)
Comment 1 Troy Dack 2003-11-15 06:20:33 UTC
I'll see what I can do, no promises though :)
Comment 2 Boris 2004-07-10 08:27:11 UTC
Created attachment 35115 [details]
lazarus-0.9.1.4.ebuild

I made an ebuild. But I could not test it properly since I have got no gtk.
Feel free to use it and work on it.

Please note, that fpc-1.9.3 or greater is needed. You find an ebuild in Bug
#56608
Comment 3 Carlos Eduardo Monti 2004-08-15 15:24:58 UTC
Anyone tested this?
Comment 4 Johannes Bauer 2004-09-16 02:12:45 UTC
Yes, I tested it right now.

I installed the fpc 1.9.4 (the package, not from source) and lazarus 0.9.1.4 (from your ebuild). However, sadly, I could not get it to run.

It seems to be only a tiny bit to get it working, however. Lazarus starts up fine, the whole IDE shows up and everything. When starting, it complains:

"The Free Pascal Source directory was not found.
Some functions will not work.
It is recommended that you install it and set the path
Environment -> Environment Options -> Files"

I only have an "Ignore" button then. Alright, I thought, let's set the path. However, it did not accept any of my inputs. What came close was

/usr/lib/fpc/1.9.4/units/linux/

but I also tried

/usr/lib/fpc/1.9.4/units/
/usr/lib/fpc/1.9.4/
/usr/lib/fpc/
/usr/lib/

Nothing worked. It always said

"The FPC Source directory '/usr/lib/fpc/' does not look correct. Normally it contains directories like rtl, packages, compiler, ... ."

Then I downloaded the FPC source from the FPC homepage. However, even in these sources I could not find an "rtl" directory! It did not accept the path of the "clean" sources, either.

Therefore I can now run the GUI, but cannot compile any programs. It always fails with

"/tmp/project1.lpr(1,1) Fatal: Can't find Unit GLIB"

(line 1 of the project file is the "program project1;" line).

Could you maybe have a look into that, please? I really would be grateful if lazarus made it into the Gentoo tree as it is a great tool for developing GUI-applications fast (!). Thanks for your work so far!

Greetings,
Johannes
Comment 5 Daniel Black (RETIRED) gentoo-dev 2004-10-02 07:08:22 UTC
tad is not an active developer. 
Comment 6 samx 2004-10-28 17:37:49 UTC
The lazarus ebuild works, but you need the sources of fpc. I have written an ebuild: http://bugs.gentoo.org/show_bug.cgi?id=69336

/usr/lib/fpc only contains the binaries, the sources can be found in /usr/share/src/fpc-1.9.4 after you install fpcsrc (so fpcsrc has to be a dependancy of lazarus)
So perhaps it's time to get this into portage...
Comment 7 Johannes Bauer 2004-11-05 07:17:56 UTC
Okay, I've tried that out (installed fpcsrc).

Lazarus now finds the sources and doesn't complain anymore.

However, it still quits with the very same error message (console when trying to execute a program):
----------
[TMainIDE.DoRunProject] A
TMainIDE.DoSaveAll
TMainIDE.DoSaveProject A SaveAs=FALSE SaveToTestDir=FALSE
TMainIDE.DoSaveProject End
[TCompiler.Compile] CmdLine="/usr/bin/ppc386  -Rintel -S2cgi -CD -OG1p1 -gl -XD -vewnhi -l -Fu/usr/share/lazarus/lcl/units/i386/linux/ -Fu/usr/share/lazarus/lcl/units/i386/linux/gtk/ -Fu/usr/share/lazarus/packager/units/i386/linux/ -Fu. -dLCL /tmp/project1.lpr"
Free Pascal Compiler version 1.9.4 [2004/05/30] for i386
Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for i386
Compiling /tmp/project1.lpr
Fatal: Can't find unit GLIB
[TMainIDE.DoOpenMainUnit] A ProjectLoading=FALSE MainUnitID=0
----------

Can't find GLIB? Where is it?

Greetings,
Johannes
Comment 8 samx 2004-11-05 14:46:14 UTC
You are probably missing a fpc config file, typically /etc/fpc.cfg
There are some more details on http://lazarus-ccr.sourceforge.net/index.php?wiki=LazarusFaq

You'll need those lines in the config file:

-Fu/usr/lib/fpc/1.9.4/units/$target
-Fu/usr/lib/fpc/1.9.4/units/$target/*
-Fu/usr/lib/fpc/1.9.4/units/$target/rtl

There is a script to create a sample config file: /usr/share/src/fpc-1.9.4/compiler/utils/samplecfg

I will suggest running this script in the fpcsrc-ebuild so that the fpc.cfg file will be installed by default.
Comment 9 Johannes Bauer 2004-11-07 17:51:24 UTC
Works!

Okay, here's the story: I almost was so far that I'd have trashed the whole thing. It annoyed me pretty much, kept not working and so on. I compiled on the command line, always adding more include paths to figured out what I needed. But it kept requiring more and more libraries. After he found GLIB, he required GTK, GTKInt and some others. Horribly annoying.

Then I read your posting again (because I wanted to write I didn't succeed). And found you refered to that script. Well, first, I had to mark it executable and then I ran it. Worked perfectly. Like a charm. Everything working now. Thanks!

Here's what I did (as root):

chmod +x /usr/share/src/fpc-1.9.4/compiler/utils/samplecfg
/usr/share/src/fpc-1.9.4/compiler/utils/samplecfg /usr/lib/fpc/1.9.4 /etc

Greetings, and thanks again,
Johannes
Comment 10 samx 2004-11-08 01:32:59 UTC
I noticed that the permissions for /usr/share/lazarus/tools/runwait.sh were not right - I had to add execution permissions manually in order to run any of my programs.
So the following line should be added to the ebuild (in the src_install() section):
chmod 0755  ${D}/usr/share/lazarus/tools/runwait.sh
Comment 11 Daniel Herzog 2004-11-28 09:46:15 UTC
Please be aware of bug #71677
Comment 12 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-23 13:03:37 UTC
*** Bug 75458 has been marked as a duplicate of this bug. ***
Comment 13 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-21 09:43:40 UTC
*** Bug 82818 has been marked as a duplicate of this bug. ***
Comment 14 Daniel Herzog 2005-02-23 04:35:38 UTC
*** Bug 72972 has been marked as a duplicate of this bug. ***
Comment 15 Daniel Herzog 2005-02-23 04:38:59 UTC
Anyone working on this? If so, tell me. Otherwise I'll start it.
Comment 16 Rodolphe Bosch 2005-04-09 03:29:58 UTC
I tried the installation of this ebuild. The dependencies installed all well - nothing seemed to make any problem, until....

[ last lines of the compiler-messages: ]

Writing Resource String Table file: lclstrconsts.rst
Compiling fpcadds.pas
Compiling lazlinkedlist.pas
Compiling dynhasharray.pp
Compiling lclproc.pas
Compiling lcltype.pp
Compiling lclmemmanager.pas
Compiling avglvltree.pas
Compiling stringhashlist.pas
Compiling extendedstrings.pas
Compiling dynamicarray.pas
Compiling utrace.pp
Compiling textstrings.pas
Compiling lclrescache.pas
Compiling graphmath.pp
Compiling filectrl.pp
Compiling stdctrls.pp
Compiling lmessages.pp
Compiling graphtype.pp
Compiling graphics.pp
Fatal: Can't find unit Contnrs
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `/var/tmp/portage/lazarus-0.9.6/work/lazarus/lcl'
make: *** [lcl] Error 2

!!! ERROR: dev-lang/lazarus-0.9.6 failed.

... the ebuild seems to lack something.
Is anyone maintaining this ebuild, or shall I try to recreate it?
Comment 17 Daniel Herzog 2005-04-09 08:57:30 UTC
I am maintaining lazarus and fpc stuff in a way.


Your error looks pretty much like a misconfiguration.
Check your /etc/fpc.cfg
Make sure it looks like this:

<stuff>
-Fu/usr/lib/fpc/1.9.8/units/$fpctarget
-Fu/usr/lib/fpc/1.9.8/units/$fpctarget/*
-Fu/usr/lib/fpc/1.9.8/units/$fpctarget/rtl
<otherstuff>
-Fl/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5
<yetmorestuff>
Comment 18 George Shapovalov (RETIRED) gentoo-dev 2005-04-10 02:08:56 UTC
Ok, I see lazarus is in the tree already. Thanks Daniel!
Hopefully I can start in June to be more productive (when I finally move to a new place).
Closing this bug.

George