[Pkg-pascal-devel] Bug#1060273: Bug#1060273: Bug#1060273: lazarus-3.0: Lazarus fails to compile itself

Abou Al Montacir abou.almontacir at sfr.fr
Mon Jan 29 10:44:47 GMT 2024


I've check more deeply this issue and could find that the IDE build make file
mixes old and newly compiled units which leads to a compiler deadlock in finding
the right ppu for dialogs unit.

I was able to patch ide/Makefile to resolve this locally, but I'm not this is
the right way to do, so I need more time to investigate this issue and confirm
with upstream that this is the right fix.

diff --git a/ide/Makefile.fpc b/ide/Makefile.fpc
index 9275b2b2..af53d875 100644
--- a/ide/Makefile.fpc
+++ b/ide/Makefile.fpc
@@ -179,21 +179,21 @@ idepackages:
 #-----------------------------------------------------------------------------
 # compile IDE without extra packages
 ide: $(COMPILER_UNITTARGETDIR) revisioninc
-        $(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(DEFAULT_IDE_OPTIONS) $(LAZARUS_OPT) $(OPT)'
+        $(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(if $(patsubst @%,@,${OPT}),${OPT},$(DEFAULT_IDE_OPTIONS) $(LAZARUS_OPT) $(OPT))'
 
 #-----------------------------------------------------------------------------
 # compile IDE with some extra packages
 bigide: $(COMPILER_UNITTARGETDIR) revisioninc
         -$(DEL) $(COMPILER_UNITTARGETDIR)/pkgmanager$(PPUEXT)
-        $(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(OPT) $(BIG_IDE_OPTIONS)'
+        $(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT) OPT='$(if $(patsubst @%,@,${OPT}),${OPT},$(OPT) $(BIG_IDE_OPTIONS))'
 
 #-----------------------------------------------------------------------------
 starter: $(COMPILER_UNITTARGETDIR)
-        $(MAKE) --assume-new=startlazarus.lpr startlazarus$(EXEEXT) OPT='$(DEFAULT_IDE_OPTIONS) $(LAZARUS_OPT) $(OPT)'
+        $(MAKE) --assume-new=startlazarus.lpr startlazarus$(EXEEXT) OPT='$(if $(patsubst @%,@,${OPT}),${OPT},$(DEFAULT_IDE_OPTIONS) $(LAZARUS_OPT) $(OPT))'
 
 #-----------------------------------------------------------------------------
 lazbuilder: $(COMPILER_UNITTARGETDIR)
-        $(MAKE) --assume-new=lazbuild.lpr lazbuild$(EXEEXT) OPT='$(DEFAULT_IDE_OPTIONS) $(OPT)'
+        $(MAKE) --assume-new=lazbuild.lpr lazbuild$(EXEEXT) OPT='$(if $(patsubst @%,@,${OPT}),${OPT},$(DEFAULT_IDE_OPTIONS) $(OPT))'
 
 #-----------------------------------------------------------------------------
 all: ide starter lazbuilder

-- 
Cheers,
Abou Al Montacir

-- 
Cheers,
Abou Al Montacir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20240129/0067a3e0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-pascal-devel/attachments/20240129/0067a3e0/attachment.sig>


More information about the Pkg-pascal-devel mailing list