View Issue Details

IDProjectCategoryView StatusLast Update
0038075FPCPatchpublic2020-11-21 19:55
ReporterAndrey Sobol Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformi386OSWindows 
Product Version3.2.0 
Summary0038075: The fpcmake utility can not find packages directory for lazarus fpc build.
DescriptionThe fpcmake utility can not find packages directory for lazarus fpc build.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

Andrey Sobol

2020-11-13 15:59

reporter  

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);

Marco van de Voort

2020-11-13 16:20

manager   ~0126880

Why is this change suddenly necessary? Isn't it simply a case of a misconfigured FPCDIR ?

Andrey Sobol

2020-11-13 16:39

reporter   ~0126881

Last edited: 2020-11-13 17:10

View 3 revisions

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.

Jonas Maebe

2020-11-15 19:37

manager   ~0126974

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?

Andrey Sobol

2020-11-18 21:35

reporter   ~0127037

Last edited: 2020-11-19 04:23

View 4 revisions

:) 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

Andrey Sobol

2020-11-19 04:25

reporter   ~0127042

This is from the fpcmake page

Jonas Maebe

2020-11-21 18:00

manager   ~0127084

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.

Andrey Sobol

2020-11-21 19:49

reporter   ~0127087

Last edited: 2020-11-21 19:55

View 2 revisions

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.

Issue History

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