Can’t build a Lazarus project: lazbuild tries to write to a nonexistent home directory
My dear developer friends,
I’m new to Launchpad an I’m trying to publish my small project written in FreePascal/Lazarus IDE via a Ubuntu PPA.
I use the LazPackager tool, formerly called LazDebian. Had to tweak it a bit to meet today’s standards. Got to the point where the source package uploads OK but the builds still fail.
Here is an example of a failed build log:
https:/
The critical part seems to be this:
dpkg-buildpackage
-----------------
dpkg-buildpackage: info: source package wimeed
dpkg-buildpackage: info: source version 0.1.0.5-1
dpkg-buildpackage: info: source distribution bionic
dpkg-source --before-build wimeed-0.1.0.5
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh clean
debian/rules override_
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f -r lib
rm -f lib *.res wimeed
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean
debian/rules build
dh build
dh_update_
debian/rules override_
make[1]: Entering directory '/<<PKGBUILDDIR>>'
lazbuild WIMEEd.lpi
CopySecondaryCo
WARNING: unable to create primary config directory "/sbuild-
Error: (lazarus) invalid Lazarus directory "": directory lcl not found
Error: (lazarus) Building failed: WIMEEd.lpi
debian/rules:10: recipe for target 'override_
make[1]: *** [override_
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:17: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
-------
Build finished at 20181003-2110
Finished
--------
E: Build failure (dpkg-buildpackage died)
It seems that lazbuild tries to find the home directory of the user that the build process is running under and doesn’t find it and in result it tries to write to a nonexistent directory. Is there a way how I could work around this? Or are there any fixes to the lazbuild binary and the Lazarus Ubuntu package that could be made?
Should I report a bug?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: