http://sourceforge.net/p/lazarus/code/HEAD/tree/trunk/ide/buildmanager.pas#l1755 have hardcode "List:=RunTool(Prog,'--get-cache');" this create /root/.cache and pkg build Failed: build_fs_violation For example http://bsdnir.info/files/porting/log_lazarus_depends_faile/ Documentation http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames have env variable InstantFPCCache however --get-cache without arguments rewrite this. Most likely need to add a variable to support this command, or change the order of the builder call Unfortunately I can not offer a ready Patch.
Could you try respecting MAKE_ENV in your ports ? some commands are launched without ${SETENV} ${MAKE_ENV} I believe this would solve the problem (default cache is $HOME/.cache/instantfpc and MAKE_ENV has HOME=${WRKDIR})
Created attachment 157904 [details] poudriere bulk -t log Yes set ${SETENV} ${MAKE_ENV} remove this error - @cd ${WRKSRC} && \ + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ ${LAZBUILD_CMD} --ws="${LCL_PLATFORM}" --lazarusdir=${LAZARUS_DIR} ${PROJECT_FILE}
So, can this PR be closed?
Is it possible to correct this error is centralized or each port should monitor these variables on their own?
Each port should respect MAKE_ENV. If your port has custom do-build, it must include the MAKE_ENV variable in it.
Thank you for the clarification, I will offer patches to ports where discovered his absence, leading to errors. This I think should be closed