Please help debug building jo

Asked by Hồng Quân on 2020-02-09

Because Ubuntu repo doesn't contain jo 1.3, I tried to build in on my PPA, but it failed: https://launchpad.net/~ng-hong-quan/+archive/ubuntu/ppa/+build/18669249, even though that it works when I build at local (with debuild command).

Please help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Colin Watson
Solved:
2020-02-10
Last query:
2020-02-10
Last reply:
2020-02-09
Best Colin Watson (cjwatson) said : #1

./configure: line 4478: syntax error near unexpected token `bashcompdir,'
./configure: line 4478: `PKG_CHECK_VAR(bashcompdir, bash-completion, completionsdir, ,'

You need to add pkg-config to your Build-Depends line in debian/control, otherwise autoreconf doesn't have enough information to generate the configure script correctly.

debuild isn't a sufficient test for this sort of thing, because it doesn't build in a clean environment. Try sbuild instead (https://wiki.ubuntu.com/SimpleSbuild).

Hồng Quân (ng-hong-quan) said : #2

Thank you. I added pkg-config and it is built successfully: https://launchpad.net/~ng-hong-quan/+archive/ubuntu/ppa

Hồng Quân (ng-hong-quan) said : #3

Thanks Colin Watson, that solved my question.