<html><head></head><body><div>Hi Thorsten,</div><div><br></div><div>Sorry it seems I forgot to copy you in my last message.</div><div><br></div><div>On Sat, 2022-03-05 at 12:19 +0100, Abou Al Montacir wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hi Thosten,</div><div><br></div><div>On Sat, 2022-03-05 at 09:01 +0000, Thorsten Alteholz wrote:</div><div>Hi,<br></div><div><br></div><div>there is a problem compiling a new upstream version of astap using <br></div><div>lazbuild from the new version 2.2.0 of lcl-utils. <br></div><div>Can you please have a look at [1]. It contains some errors that I don't <br></div><div>know how to resolve:<br></div><div><br></div><div><br></div><div>lazbuild -B --pcp=/etc/lazarus astap_linux.lpi<br></div><div>SetPrimaryConfigPath NewValue="/etc/lazarus" -> "/etc/lazarus"<br></div><div>Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"<br></div><div>Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"<br></div><div>Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP" "-Px86_64" "-Tlinux"<br></div><div>Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas" "-Px86_64" "-Tlinux"<br></div><div>Hint: (lazarus) Missing state file of freetypelaz 1.0: /usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux/freetypelaz.compiled<br></div><div>Error: (lazarus) unable to create package output directory "/usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux" of package "freetypelaz 1.0"<br></div><div>Hint: (lazarus) normal output directory of package freetypelaz 1.0 is not writable: "/usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux/"<br></div><div>TParsedCompilerOptions.SetOutputDirectoryOverride <br></div><div>New=/etc/lazarus/lib/freetypelaz/lib/x86_64-linux<br></div><div>Hint: (lazarus) Missing state file of freetypelaz 1.0: /etc/lazarus/lib/freetypelaz/lib/x86_64-linux/freetypelaz.compiled<br></div><div>Error: (lazarus) unable to create package output directory "/etc/lazarus/lib/freetypelaz/lib/x86_64-linux" of package "freetypelaz 1.0"<br></div><div>Error: (lazarus) [TLazPackageGraph.PreparePackageOutputDirectory] failed to create writable directory: /etc/lazarus/lib/freetypelaz/lib/x86_64-linux<br></div><div>Error: (lazarus) [TLazPackageGraph.CompilePackage] <br></div><div>PreparePackageOutputDirectory failed: freetypelaz 1.0<br></div><div>Error: (lazbuild) Project dependencies of /<<PKGBUILDDIR>>/astap_linux.lpi<br></div><div><br></div><div><br></div><div>Do you have any idea what went wrong?</div><div>Can you tell why do you set primary configuration files loction to /et/lazarus?</div><div>I wouldn't encourage that, because lazarus uses pcp to install lpl files (package link files) and /etc/lazarus is not writable for obvious reasons.</div></blockquote><div>I managed to build it using the following patches.</div><pre style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-variant-caps: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;"><br></pre><div>I'm almost sure that -B option is not needed. It will just trigger rebuilding a bunch of packages, while it is not needed especially if you use gbp with cowbuilder. I tried it and it builds fine. This will help reducing build time. You just may want to ensure clean target in debian/rules is correctly working.</div><div><br></div><div>Also as said Peter in his mail, you may not want to build depend on Lazarus but on lcl-utils which provides lazbuild.</div><div><br></div><div>Please let me know if you need more help.</div><pre>-- <br></pre><pre style="caret-color: rgb(46, 52, 54); color: rgb(46, 52, 54); font-variant-caps: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;">Cheers,
Abou Al Montacir</pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"></blockquote></body></html>