New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debian package fails trying to build sqlhpwippool #1270
Conversation
Quickly managed to build on jessie and works fine without this patch, but with this patch then doesn't build sqlhpwippool (but otherwise OK), so this might not be the best solution. Not sure what else to suggest though. I don't know why the make stage is running configure. |
I have built a lot of Debian-packages, and never had any problem with that module. The source of it doesn't really point to development packages that may be missing. What exactly is the error that you're getting? |
OK, I've had time to so some more testing on this now. Rather than my previous build machine which could have all sorts of random packages installed, this is in a clean wheezy chroot. Chroot is built with:
The following works, and successfully builds the packages:
However, the following (which is how I usually build debian packages) fails:
The last part of the output is as follows:
The obvious difference between ./configure && make deb and dpkg-buildpackage is that the former runs configure twice. And interestingly if you run the dpkg-buildpackage command again after it fails then it will successfully build the packages the second time around. So it looks like there may be some sort of dependency problem whereby to build the debian packages you have to run configure twice - it's just that the make deb way you have to do it (to get the Makefile). This also seems to show that debian/rules clean isn't tidying up properly. Still investigating... |
On Sep 29, 2015, at 11:48 AM, Matthew Newton notifications@github.com wrote:
Hmm... that's probably because something touched "configure" or "all.mk.in" in that directory. The solution is to not do that. :( The problem is figuring out what piece of the build did that. A simple work-around is to do 'rm config.log" after running configure the first time. That causes the top-level Makefile to not check for the above dependencies, and to not re-run configure.
It should remove config.log. The key part of the Makefile is this: If we've already run configure, then add rules which cause themodule-specific "all.mk" files to depend on the mk.in files, and onthe configure script.ifneq "$(wildcard config.log)" "" src/%all.mk: src/%all.mk.in src/%configure Remove that rule, and it won't re-run configure. |
Utterly weird - it turns out that building with fakeroot (which is done by make deb, and sbuild) everything is fine. Without fakeroot get this problem. Lack of fakeroot generally will cause permission problems in the final package, not make to call configure again, so it looks like fakeroot is somehow hiding another issue. So the problem can be worked around by adding dh_testroot to the configure target of the Makefile - update patch for this. The even more weird thing is that with dh_testroot in there, running without fakeroot now doesn't bomb out as I'd expect - it actually builds the packages. Completely lost for words now... but new patch should safely fix the issue. |
debian package fails trying to build sqlhpwippool
Fails trying to run "configure" in src/modules/rlm_sqlhpwippool at make time,
but having disabled it in configure, it all builds fine, including sqlhpwippool...
Probably wants reviewing to make sure this is sane - system here is debian wheezy, so maybe it's fine on jessie, but I can't easily test right now.