Sign in Join

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

Mailing lists / lazarus / 2023-06

Output directories

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt

Hello,

There is a problem when installing Lazarus through the package manager on Linux, and when you try to install/recompile additional packages:

Error: (lazarus) unable to create package output directory "/usr/share/lazarus/2.2.4/components/fpweb/lib/x86_64-linux" of package "weblaz 1.0"

I suspect that the IDE tries to create the output directories of packages, but of course it has no write permission in /usr/share.

Should this not be detected and the output put in ~/.local/share/lazarus/... instead ?

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 15 lines
Hello, There is a problem when installing Lazarus through the package manager on Linux, and when you try to install/recompile additional packages: Error: (lazarus) unable to create package output directory "/usr/share/lazarus/2.2.4/components/fpweb/lib/x86_64-linux" of package "weblaz 1.0" I suspect that the IDE tries to create the output directories of packages, but of course it has no write permission in /usr/share. Should this not be detected and the output put in ~/.local/share/lazarus/... instead ?

Yes, sounds like a regression.

Mattias

Reply by email

Giuliano Colla
to Michael Van Canneyt: There is a problem when installing Lazarus through the package manager on Linux, and when…

Il 07/06/23 11:43, Michael Van Canneyt via lazarus ha scritto:

Show quoted text 19 lines
Hello, There is a problem when installing Lazarus through the package manager on Linux, and when you try to install/recompile additional packages: Error: (lazarus) unable to create package output directory "/usr/share/lazarus/2.2.4/components/fpweb/lib/x86_64-linux" of package "weblaz 1.0" I suspect that the IDE tries to create the output directories of packages, but of course it has no write permission in /usr/share. Should this not be detected and the output put in ~/.local/share/lazarus/... instead ? Michael.

There's a number of such bugs.

When you're rebuilding Lazarus with source code in a write protected folder, your local copy is created in a local ~/.lazarus folder. Everything should be written there and the write protected folder should be left? untouched. But whenever a subfolder is needed, there is a check that it does exist in the write protected area, even if it will not be used, and an error is flagged if the folder doesn't exist and can't be created.

It occurred to me with qt ws. Just sudo mkdir the missing directory in the lazarus tree, the folder is left empty, but the IDE compiles properly.

Giuliano

Reply by email

Mattias Gaertner
to Giuliano Colla
Show quoted text 8 lines
[...] When you're rebuilding Lazarus with source code in a write protected folder, your local copy is created in a local ~/.lazarus folder. Everything should be written there and the write protected folder should be left? untouched. But whenever a subfolder is needed, there is a check that it does exist in the write protected area, even if it will not be used, and an error is flagged if the folder doesn't exist and can't be created.

Fixed.

Mattias

Reply by email