Closed TheChymera closed 5 years ago
Yes, I use the Github repository. As noted one the main page, you can set your own opts.inc - if you remove {$DEFINE MYPY} the software should not need this package. However, the dependency may also need to be removed in the project inspector. I have never worked out how to dynamically remove package dependencies (I have requested this feature for the Lazarus IDE).
Ok, so I installed python4lazarus, with:
lazbuild -B --lazarusdir="/usr/share/lazarus/" python4lazarus/python4lazarus_package.lpk
But it seems it's not properly detected when I try to build surf-ice. Please see the full log.
Any ideas?
Also, any idea how I can reach @Alexey-T ? His repo seems to not have an issue tracker, and I can't find an email address on his profile. Basicall I'm unsure what license his code is under (relevant for packaging), and it would be cool if it had a release so I can link to a static ~stable archive.
I am not familiar with your distro, but it looks like you are building/compiling the package rather than installing it. I think you will want to explore lazbuild --add-package
.
Ok, I tried to build with:
lazbuild -B --lazarusdir="/usr/share/lazarus/" --build-ide= --add-package python4lazarus/python4lazarus_package.lpk
And this seems to work for a bit, and then fails with one of two [1,2] access violation errors. Do you perhaps know what installing a lazarus .lpk
package in the IDE entails? Does the file just get copied somewhere, or do files belonging to the lazarus package actually get modified in order for this to happen.
If the latter, the package management might start getting adventurous. IT would be really cool if just copying the file someplace would work.
I have no experience with your Linux distribution, and the approach you are taking for Gentoo support is dissimilar to my approach for Debian. I suggest you look at your logs and parse the errors. Perhaps you can work with someone familiar with your distribution. On a quick glance I wonder if the issue is with file permissions, as you are requesting it to build in a specific folder and the system reports a read-only directory. I assume with Gentoo you can not sudo
during a compile?
skipping read only directory /usr/share/lazarus/components/synedit/languages/
...
lazbuild -B --lazarusdir="/usr/share/lazarus/"
I'm pretty sure it's about file permissions. The problem is, the files under /usr/share/lazarus
belong to the lazarus package. If other packages start modifying them, there is no way to ascertain that they will be returned to their initial state once those packages are removed by the package manager.
How do you handle this on Debian?
On my NeuroDebian VirtualBox Linux with default user (brain) i have Lazarus installed locally, so which lazarus
returns /home/brain/lazarus/lazarus
. You may want to look at this web page
@TheChymera can we close this issue now? I do not have issues with Debian, and provide pre-compiled executables for typical users. While Gentoo support would be great, it is outside my expertise. If you can resolve this and close this issue, that would be great. I would be happy to include the python4lazarus_package source code with this repository if that makes it easier to distribute, but it will still require adding the package to Lazarus.
This issue has been solved on Gentoo Linux. Commit on the Gentoo package repository and longer description of implementation on the Lazarus forum.
Fantastic.
I am trying to install the newest version: https://github.com/neurolabusc/surf-ice/archive/v1.0.20180622.tar.gz and I am getting the following build log:
I guess I need and am missing the
python4lazarus_package
. I'm lookig to package it for Gentoo so that the dependency can be handled automatically, but I'm not sure where the source code is located. Is it here?