[Pkg-pascal-devel] problems with compiling astap

Peter peter at pblackman.plus.com
Sat Mar 5 11:14:57 GMT 2022


On 05/03/2022 09:01, Thorsten Alteholz wrote:
> Hi,
>
> there is a problem compiling a new upstream version of astap using lazbuild from the new version 2.2.0 of lcl-utils. 
> Can you please have a look at [1]. It contains some errors that I don't know how to resolve:
>
>
> lazbuild -B --pcp=/etc/lazarus  astap_linux.lpi
> SetPrimaryConfigPath NewValue="/etc/lazarus" -> "/etc/lazarus"
> Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP"
> Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas"
> Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-iWTOTP" "-Px86_64" "-Tlinux"
> Hint: (lazarus) [RunTool] "/usr/bin/fpc" "-va" "compilertest.pas" "-Px86_64" "-Tlinux"
> Hint: (lazarus) Missing state file of freetypelaz 1.0: 
> /usr/lib/lazarus/2.2.0/components/freetype/lib/x86_64-linux/freetypelaz.compiled
> 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"
> 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/"
> TParsedCompilerOptions.SetOutputDirectoryOverride New=/etc/lazarus/lib/freetypelaz/lib/x86_64-linux
> Hint: (lazarus) Missing state file of freetypelaz 1.0: /etc/lazarus/lib/freetypelaz/lib/x86_64-linux/freetypelaz.compiled
> Error: (lazarus) unable to create package output directory "/etc/lazarus/lib/freetypelaz/lib/x86_64-linux" of package 
> "freetypelaz 1.0"
> Error: (lazarus) [TLazPackageGraph.PreparePackageOutputDirectory] failed to create writable directory: 
> /etc/lazarus/lib/freetypelaz/lib/x86_64-linux
> Error: (lazarus) [TLazPackageGraph.CompilePackage] PreparePackageOutputDirectory failed: freetypelaz 1.0
> Error: (lazbuild) Project dependencies of /<<PKGBUILDDIR>>/astap_linux.lpi
>
>
> Do you have any idea what went wrong?
>
>
> Best regards
> Thorsten
>
>
> [1] https://buildd.debian.org/status/fetch.php?pkg=astap&arch=amd64&ver=2022.03.01-2&stamp=1646445819&raw=0
>
>
> _______________________________________________
> Pkg-pascal-devel mailing list
> Pkg-pascal-devel at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-pascal-devel

Hi Thorsten,

Try removing lazarus as a build depends (its not needed) and use lcl-gtk2 instead.

I just use
fpc, lcl, lcl-gtk2, lcl-qt5
as build depends for lazbuild packages.

lazarus will pull in lazarus-src, which will cause any used packages to be rebuilt (which fails because root is needed 
for the output)

This may have changed in 2.2.0. I didn't see all these extra rebuilds will lazarus-src installed before.


Cheers,
Peter








More information about the Pkg-pascal-devel mailing list