Write error: Unable to create file "/usr/lib64/lazarus/components/printers/printer4lazarus.pas"
Original Reporter info from Mantis: LongTimePascaler
-
Reporter name: Gregg Moore
Original Reporter info from Mantis: LongTimePascaler
- Reporter name: Gregg Moore
Description:
A small GUI successfully built on Windows Vista fails to compile when ported to Linux (openSUSE and using the FPC and Lazarus installations from the openSUSE repositories). The code uses the package PrintersDlgs (the whole file is very long so not attached to this report for now).
Building on Linux generates the error message:
Write error: Unable to create file "/usr/lib64/lazarus/components/printers/printer4lazarus.pas"
File: /usr/lib64/lazarus/components/printers/printer4lazarus.pas
package main source file
Note that /usr/lib64/lazarus/components/printers/printer4lazarus.pas already exists, put there as part of the installation and owned by root.
Clicking on Abort on the message box shows a second message:
The package "Printer4Lazarus 0.5" failed to compile.
Remove it from the installation list?
In fact, selecting the remove option doesn't solve the problem.
No application on Unix should be trying to write files to a subdirectory of /usr/lib64, so this appears either to be a coding bug or a design defect.
Steps to reproduce:
In the Lazarus IDE select Run->Build.
Mantis conversion info:
- Mantis ID: 25173
- OS: openSUSE Linux
- OS Build: 12.3
- Platform: x86_64-linux-gtk 2
- Version: 1.0.10
- Fixed in revision: 43219 (#cc8134c2)