nigoroll / libvmod-dynamic

The Varnish dns/named director continued
BSD 2-Clause "Simplified" License
96 stars 34 forks source link

Difficulties compiling for Varnish 5.2 into a .deb package #54

Closed Thertor closed 4 years ago

Thertor commented 4 years ago

Hi, I'm trying to compile the module from source and building it into a .deb package in ubuntu, but I'm getting errors during the last step, see below logs:

Building using working tree
Building package in normal mode
Purging the build dir: /home/eivind/build-area/libvmod-dynamic-5.2-1
Looking for a way to retrieve the upstream tarball
Upstream tarball already exists in build directory, using that
Building the package in /home/eivind/build-area/libvmod-dynamic-5.2-1, using debuild -us -uc
 dpkg-buildpackage -rfakeroot -us -uc -ui
dpkg-buildpackage: info: source package libvmod-dynamic
dpkg-buildpackage: info: source version 5.2-1-1
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by Eivind Sivertsen <eivind.sivertsen@visma.com>
 dpkg-source --before-build libvmod-dynamic-5.2-1
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_clean
 dpkg-source -b libvmod-dynamic-5.2-1
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building libvmod-dynamic using existing ./libvmod-dynamic_5.2-1.orig.tar.gz
dpkg-source: info: building libvmod-dynamic in libvmod-dynamic_5.2-1-1.debian.tar.xz
dpkg-source: info: building libvmod-dynamic in libvmod-dynamic_5.2-1-1.dsc
 debian/rules build
dh build
   dh_update_autotools_config
   dh_autoreconf
aclocal: error: couldn't open directory '/aclocal': No such file or directory
autoreconf: aclocal failed with exit status: 1
dh_autoreconf: autoreconf -f -i returned exit code 1
debian/rules:18: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui failed
bzr: ERROR: The build failed.
nigoroll commented 4 years ago

Please provide the specific steps on how to reproduce the issue.

Thertor commented 4 years ago
wget https://github.com/nigoroll/libvmod-dynamic/archive/5.2.tar.gz
tar xf 5.2.tar.gz
cd libvmod-dynamic-5.2/
./autogen.sh
cd ../
bzr dh-make libvmod-dynamic 5.2-1 5.2.tar.gz
cd libvmod-dynamic
bzr add debian/source/format
bzr builddeb -- -us -uc
nigoroll commented 4 years ago

I am not familiar with these tools, but at least a quick attempt to reproduce the issue shows a failure for me as well - yet at a later step then for your attempts.

slink@haggis:/tmp/dyn/libvmod-dynamic$ bzr builddeb -- -us -uc
Building using working tree
Building package in normal mode
Looking for a way to retrieve the upstream tarball
Using the upstream tarball that is present in /tmp/dyn
Building the package in /tmp/dyn/build-area/libvmod-dynamic-5.2-1, using debuild -us -uc
 dpkg-buildpackage -rfakeroot -us -uc
dpkg-buildpackage: info: source package libvmod-dynamic
dpkg-buildpackage: info: source version 5.2-1-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Nils Goroll <slink@haggis.office.uplex.de>
 dpkg-source --before-build libvmod-dynamic-5.2-1
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
 dpkg-source -b libvmod-dynamic-5.2-1
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building libvmod-dynamic using existing ./libvmod-dynamic_5.2-1.orig.tar.gz
dpkg-source: info: building libvmod-dynamic in libvmod-dynamic_5.2-1-1.debian.tar.xz
dpkg-source: info: building libvmod-dynamic in libvmod-dynamic_5.2-1-1.dsc
 debian/rules build
dh build
   dh_testdir
   dh_update_autotools_config
   dh_auto_configure
   dh_auto_build
   dh_auto_test
   create-stamp debian/debhelper-build-stamp
 fakeroot debian/rules binary
dh binary
   create-stamp debian/debhelper-build-stamp
   dh_testroot
   dh_prep
   dh_installdirs
   dh_auto_install
   dh_install
dh_install: Cannot find (any matches for) "usr/include/*" (tried in "." and "debian/tmp")
dh_install: libvmod-dynamic-dev missing files: usr/include/*
dh_install: Cannot find (any matches for) "usr/lib/*/lib*.so" (tried in "." and "debian/tmp")
dh_install: libvmod-dynamic-dev missing files: usr/lib/*/lib*.so
dh_install: Cannot find (any matches for) "usr/lib/*/pkgconfig/*" (tried in "." and "debian/tmp")
dh_install: libvmod-dynamic-dev missing files: usr/lib/*/pkgconfig/*
dh_install: Cannot find (any matches for) "usr/share/pkgconfig/*" (tried in "." and "debian/tmp")
dh_install: libvmod-dynamic-dev missing files: usr/share/pkgconfig/*
dh_install: missing files, aborting
debian/rules:18: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc failed
bzr: ERROR: The build failed.

At any rate, this issue is not related to the dynamic vmod and I can not provide community support for it. If you are interested in commercial support, get in touch or consider the github sponsor option.

Thertor commented 4 years ago

What distribution and version did you build it on?

nigoroll commented 4 years ago
$ cat /etc/debian_version 
9.12
Thertor commented 4 years ago

Could you try doing it on Ubuntu 18? I'm sorry, forgot to mention that earlier :)

nigoroll commented 4 years ago

Again:

At any rate, this issue is not related to the dynamic vmod and I can not provide community support for it. If you are interested in commercial support, get in touch or consider the github sponsor option.