Installation does not set Freepascal source directory

Bug #303709 reported by Chris J Cheney
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazarus (Debian)
Fix Released
Unknown
lazarus (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

The symptom is that Lazarus, when it starts up, displays a message box saying

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

A screen-shot is attached to the bug.

I can confirm that the relevant directory is installed (in Xubuntu, and probably also was in Kubuntu) and it is just
the Environment Option setting that is missing. The text of the message box misled me.

After setting this path correctly the message does not return. The preferred behavior of the package should be that this path is set automatically. Otherwise, the warning message should be changed.

=== Original description:
Binary package hint: lazarus

Appears to be the same as
   #126003 Please add package fpc-src

But that bug is said to be fixed. Well it isn't fixed in Kubuntu/Xubuntu 8.10 (or current updates).

BTW Just installing the missing package(s) isn't sufficient - the Lazarus IDE Environment Options FPC Source directory needs to be filled in (with /usr/share/fpcsrc/2.2.0/).

Lazarus package version 0.9.24-0-9

BTW Launchpad is VERY slow (my broadband connection is fine)

ProblemType: Bug
Architecture: i386
Dependencies:

DistroRelease: Ubuntu 8.10
NonfreeKernelModules: fglrx
Package: lazarus None [modified: /var/lib/dpkg/info/lazarus.list]
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB
SourcePackage: lazarus
Uname: Linux 2.6.27-7-generic i686

Tags: whishlist
Revision history for this message
Paul Gevers (paul-climbing) wrote :

Thank you for taking the time to make Ubuntu better.

When I look at [1] I see that fpc-source (mind the name) is in the recommends section of lazarus. As far as I can tell in (k|x|)ubuntu most package manners pull in recommends automatically. What package manager do you use, it looks like the behavior you experience is different from the actual behavior? And can you give the output of "apt-cache show lazarus"

And please be clearer in which of the (two) bugs you like to report in this report. Each separated bug should go in one report. You can reopen bug 126003 again if you really think it is still/again open, but I tend to think the problem lies elsewhere. Looking at the title of this report you want to report here what is in your "BTW", ie some option in lazarus should be pre-filled?

[1] https://launchpad.net/ubuntu/intrepid/amd64/lazarus/0.9.24-0-9

Changed in lazarus:
status: New → Incomplete
Revision history for this message
Chris J Cheney (c.j.cheney) wrote : Re: [Bug 303709] Re: Installation does not set Freepascal source directory
Download full text (3.4 KiB)

> When I look at [1] I see that fpc-source (mind the name) is in the
> recommends section of lazarus. As far as I can tell in (k|x|)ubuntu most
> package manners pull in recommends automatically. What package manager do
> you use, it looks like the behavior you experience is different from the
> actual behavior? And can you give the output of "apt-cache show lazarus"

> And please be clearer in which of the (two) bugs you like to report in
> this report. Each separated bug should go in one report. You can reopen
> bug 126003 again if you really think it is still/again open, but I tend to
> think the problem lies elsewhere. Looking at the title of this report you
> want to report here what is in your "BTW", ie some option in lazarus
> should be pre-filled?

Package managers: Adept on Kubuntu and Synaptic on Xubuntu.

By Googling and trying various suggestions (read flailing around), I
fixed the problem on Kubuntu (before putting in the bug report). However,
my Xubuntu installation of Lazarus is "clean".

The symptom is that Lazarus, when it starts up, displays a message box
saying

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

After further research I can confirm that the relevant directory is
installed (in Xubuntu, and probably also was in Kubuntu) and it is just
the Environment Option setting that is missing (as you suggest above).
The text of the message box misled me.

> [1] https://launchpad.net/ubuntu/intrepid/amd64/lazarus/0.9.24-0-9

ia86 not amd64. Sorry for not making that clear.

Xubuntu apt-cache show lazarus

Package: lazarus
Priority: optional
Section: universe/devel
Installed-Size: 68
Maintainer: Ubuntu MOTU Developers <email address hidden>
Original-Maintainer: Carlos Laviola <email address hidden>
Architecture: all
Version: 0.9.24-0-9
Depends: lazarus-ide, lazarus-src, lazarus-doc
Pre-Depends: dpkg (>= 1.10.24)
Recommends: fpc, fpc-source
Suggests: fp-utils, fp-docs
Filename: pool/universe/l/lazarus/lazarus_0.9.24-0-9_all.deb
Size: 14196
MD5sum: 52ef80d7b568ed230036573e378e7a31
SHA1: 258b9038d19191c7884215c0665c133076ad390e
SHA256: 2285791c7086ef8f1687334eae829a920b2b8c99f8c04f31b56fd49f80731cd6
Description: Rapid Application Development (RAD) tool for Free Pascal
 Lazarus are the class libraries for Free Pascal that emulate Delphi.
 Free Pascal is a GPL'd compiler that runs on Linux, Win32, OS/2, 68K
 and other OS's. Free Pascal is designed to be able to understand and
 compile programs written with the Delphi syntax, which is object-
oriented.
 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's "write once, run anywhere" motto, Lazarus and Free Pascal
 strive for "write once, compile anywhere". Since the exact same compiler
 is available on all of the above platforms you don't need to do any
recoding
 to produce identical products for different platforms.
 .
 In short, Lazarus is a free RAD tool for Free Pascal using its Lazarus
 Component Library (LCL).
 .
 This IDE will e...

Read more...

Revision history for this message
Paul Gevers (paul-climbing) wrote :

If I understand correctly you get the screen that I attach to this bug. Right?

description: updated
Changed in lazarus:
status: Incomplete → Confirmed
Changed in lazarus:
importance: Undecided → Wishlist
status: Confirmed → Triaged
Revision history for this message
Chris J Cheney (c.j.cheney) wrote :

> If I understand correctly you get the screen that I attach to this bug.
> Right?
>
> ** Attachment added: "Screenshot with error message"
> http://launchpadlibrarian.net/20114769/Lazarus_screenshot.png

Correct.

Revision history for this message
Paul Gevers (paul-climbing) wrote :

This bug is fixed in version 0.9.24-10, so that means that it is fixed in jaunty. However, if you do an upgrade you won't see that it is solved due to files in ~/.lazarus/ So it is fixed for fresh installs, but not for updates (and never will because this is user space which is respected).

Due to the nature of this bug (wishlist) and the status of bug 275688, which influences lazarus indirectly via fpc, I don't nominate this bug for intrepid (or other releases).

Changed in lazarus:
status: Triaged → Fix Released
Changed in lazarus:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.