View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038075 | FPC | Patch | public | 2020-11-13 15:59 | 2020-12-06 14:06 |
Reporter | Andrey Sobol | Assigned To | Jonas Maebe | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | i386 | OS | Windows | ||
Product Version | 3.2.0 | ||||
Summary | 0038075: The fpcmake utility can not find packages directory for lazarus fpc build. | ||||
Description | The fpcmake utility can not find packages directory for lazarus fpc build. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
FPCOldBugId | |||||
FPCTarget | - | ||||
Attached Files |
|
|
fpcmmain_laz_path_fix.pp.patch (617 bytes)
Index: fpcmmain.pp =================================================================== --- fpcmmain.pp (revision 47408) +++ fpcmmain.pp (working copy) @@ -1279,7 +1279,7 @@ SetVariable('FPCDIR',s,false); { PACKAGESDIR } if GetVariable('PACKAGESDIR',false)='' then - SetVariable('PACKAGESDIR','$(FPCDIR) $(FPCDIR)/packages',false); + SetVariable('PACKAGESDIR','$(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/source/packages',false); { UNITSDIR } if GetVariable('UNITSDIR',false)='' then SetVariable('UNITSDIR','$(FPCDIR)/units/$(FULLTARGET)',false); |
|
Why is this change suddenly necessary? Isn't it simply a case of a misconfigured FPCDIR ? |
|
No, FPCDIR do not fix problem. The sources for packages into lazarus build has another path than into base FPC assembly. My path for package sources is M:\lazarus\fpc\3.2.0\source\packages FPCDIR=M:\lazarus\fpc\3.2.0 I don`t know where is sources for linux, but a issue https://bugs.freepascal.org/view.php?id=29566 it seems like. Now the fpcmake don`t work, into a lazarus assembly. I have warning - package "regexpr" not found by applying fpcmake into M:\lazarus\fpc\ide directory. |
|
The FPCDIR environment variable, if set, always has to point to the directory that contains the compiler, rtl and packages directories of the FPC repository. If Lazarus puts everything in a "source" subdirectory, then you have to modify FPCDIR to point to this source subdirectory. What breaks if you make FPCDIR point there? |
|
:) Then I will get problems in another places if I change FPCDIR and use FPC without Lazarus as FreePascal. The fpcmake has to work with Lazarus or it has to removed from Lazarus assembly . I was digging two day for find why the fpcmake could not find the packages. No where written that FPCDIR should contains the path to packages. The FPCDIR environment variable always has to point to the directory that contains the compiler. For example from the fpcmake page https://wiki.freepascal.org/Fpcmake |
|
This is from the fpcmake page |
|
Sorry, I don't understand what you mean. The screenshot you posted literally says what I also said: the "FPC source directory" from the screenshot is the same as the " the directory that contains the compiler, rtl and packages directories of the FPC repository" that I mentioned. |
|
But relatively this FPCDIR directory not exists the source path to packages for lazarus, I already wrote that. For my case need to write then FPCDIR=M:\lazarus\fpc\3.2.0\source\packages but the compiler is not here, rtl and so on. I have to set FPCDIR=M:\lazarus\fpc\3.2.0\source\packages for running fpcmake. Then if I need another utility I have to set FPCDIR=M:\lazarus\fpc\3.2.0. If you think that it should be so, then it is necessary to write in Help and close this issue. |
|
Close please this issue. I placed a sources into wrong place. |
|
Thanks for following up. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-11-13 15:59 | Andrey Sobol | New Issue | |
2020-11-13 15:59 | Andrey Sobol | File Added: fpcmmain_laz_path_fix.pp.patch | |
2020-11-13 16:20 | Marco van de Voort | Note Added: 0126880 | |
2020-11-13 16:39 | Andrey Sobol | Note Added: 0126881 | |
2020-11-13 16:41 | Andrey Sobol | Note Edited: 0126881 | View Revisions |
2020-11-13 17:10 | Andrey Sobol | Note Edited: 0126881 | View Revisions |
2020-11-15 19:37 | Jonas Maebe | Note Added: 0126974 | |
2020-11-18 21:35 | Andrey Sobol | Note Added: 0127037 | |
2020-11-18 21:38 | Andrey Sobol | Note Edited: 0127037 | View Revisions |
2020-11-19 04:23 | Andrey Sobol | Note Edited: 0127037 | View Revisions |
2020-11-19 04:23 | Andrey Sobol | Note Edited: 0127037 | View Revisions |
2020-11-19 04:25 | Andrey Sobol | Note Added: 0127042 | |
2020-11-19 04:25 | Andrey Sobol | File Added: 2020-11-19 06_17_20-Fpcmake - Free Pascal wiki - Opera.jpg | |
2020-11-21 18:00 | Jonas Maebe | Note Added: 0127084 | |
2020-11-21 19:49 | Andrey Sobol | Note Added: 0127087 | |
2020-11-21 19:55 | Andrey Sobol | Note Edited: 0127087 | View Revisions |
2020-12-06 13:47 | Andrey Sobol | Note Added: 0127372 | |
2020-12-06 14:06 | Jonas Maebe | Assigned To | => Jonas Maebe |
2020-12-06 14:06 | Jonas Maebe | Status | new => resolved |
2020-12-06 14:06 | Jonas Maebe | Resolution | open => no change required |
2020-12-06 14:06 | Jonas Maebe | FPCTarget | => - |
2020-12-06 14:06 | Jonas Maebe | Note Added: 0127373 |