FS#60584 - [lazarus-gtk2] Fatal: Can't find unit LazFileUtils used by Gtk2Int

Attached to Project: Community Packages
Opened by regid (regid1) - Thursday, 25 October 2018, 18:13 GMT
Last edited by Ike Devolder (BlackEagle) - Sunday, 31 March 2019, 12:48 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Ike Devolder (BlackEagle)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
fpc -S2cgi -O1 -gl -vewnhi -l -Fu/usr/lib/lazarus/lcl/units/x86_64-linux/ -Fu/usr/lib/lazarus/lcl/units/x86_64-linux/ -Fu/usr/lib/lazarus/lcl/units/x86_64-linux/gtk2/ -Fu/usr/lib/lazarus/packager/units/x86_64-linux/ -Fu. -o./magnifier -dLCL -dLCLgtk2 magnifier.dpr

fails: Fatal: Can't find unit LazFileUtils used by Gtk2Int

Additional info:
* lazarus-gtk2 1.8.4-4
* No lazarus, fpc, whatever pascal related config files modified, or added, to what is installed by the related packages.

Steps to reproduce:
# Have lazarus-gtk2, and all its dependencies, installed.
$ curl -L https://sourceforge.net/projects/magnifier/files/new%20source%20code/3.4/magnifier-3.4.zip --output magnifier-3.4.zip
$ bsdtar --strip-components 1 -xf magnifier-3.4.zip
$ cd mgnifier-3.4
$ sed -i '/ -WG/s///' make.sh
# I asked at https://bbs.archlinux.org/viewtopic.php?id=241459 for -WG.
# No answer at the time of writing.
$ make
./make.sh
Target architecture: x86_64
Target operating system: linux
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2018/10/18] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling magnifier.dpr
Fatal: Can't find unit LazFileUtils used by Gtk2Int
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
make: *** [Makefile:15: all] Error 1
# There is a LazFileUtils unit at
# https://github.com/alrieckert/lazarus/blob/master/components/lazutils/lazfileutils.pas
# I don't know if it is relevant.
This task depends upon

Closed by  Ike Devolder (BlackEagle)
Sunday, 31 March 2019, 12:48 GMT
Reason for closing:  Not a bug
Comment by regid (regid1) - Thursday, 25 October 2018, 18:15 GMT
In the original description, steps to reproduce:
Should cd to magnifier-3.4, not mgnifier-3.4
Comment by loqs (loqs) - Thursday, 25 October 2018, 18:31 GMT
usr/lib/lazarus/components/lazutils/lazfileutils.pas is supplied by lazarus 1.8.4-4
Comment by regid (regid1) - Thursday, 25 October 2018, 19:24 GMT
@loqs: indeed. So does /usr/lib/lazarus/components/gtk2int.
pacman -Ql lazarus| grep --color -i gtk2int
finds 3 files.
pacman -Ql lazarus| grep --color -i lazfileutils
has 8 results.
Are you suggesting to close this bug report, since it is probably a lazarus issue? And more than that, it is probably more about my ignorance about using fpc than anything else?
Comment by loqs (loqs) - Thursday, 25 October 2018, 19:45 GMT
@regid1 I would not have opened the bug report at this stage as it is not clear to me that the issue is with the packaging and integration of lazarus but it is open now.
So perhaps others can see such an issue when the bug report is reviewed.
Comment by regid (regid1) - Thursday, 25 October 2018, 22:04 GMT
For now I think I have found the answer for the problem at hand. I have posted it on https://bbs.archlinux.org/viewtopic.php?id=241459. loqs comment was lightning.

Loading...