Compiling source bin9-9.10.3 to support MySQL

Alexandre Vilarinho acvoliveira at yahoo.com.br
Thu Apr 13 22:57:15 UTC 2017


Hello all
After downloading the source files of bind9-9.10.3 and installing dh-exec. I've modified the debian/rules files and added the following lines to enable MySQL to Bind9:
—-enable-ipv4 \--with-dlz-mysql=yes \  --with-dlz-filesystem=yes \  --with-dlz-stub=yes 
Then I executed the followind command
dpkg-buildpackage
To build de bind package, but during the building process the following error appeared:
dpkg-deb: building package 'bind9-doc' in '../bind9-doc_9.10.3.dfsg.P4-10.1ubuntu4_all.deb'.dpkg-deb: building package 'host' in '../host_9.10.3.dfsg.P4-10.1ubuntu4_all.deb'.dh_testdir -adh_testroot -adh_installdocs -adh_installexamples -adh_installmenu -adh_systemd_enable -pbind9 --no-enable --name=bind9-resolvconf bind9-resolvconf.servicedh_systemd_enable -pbind9 --no-enable --name=bind9-pkcs11 bind9-pkcs11.servicedh_systemd_enable -pbind9 bind9.servicedh_systemd_enable -plwresd lwresd.servicedh_installinit -a --no-start -- defaults 15 85dh_installcron -adh_installdebconf -pbind9dh_installinfo -adh_installchangelogs -a # CHANGES # upstream changelog only in bind9-docdh_install --sourcedir=debian/tmp -a --fail-missingdh_install: bind9utils missing files: usr/sbin/pkcs11-destroydh_install: bind9utils missing files: usr/sbin/pkcs11-keygendh_install: bind9utils missing files: usr/sbin/pkcs11-listdh_install: bind9utils missing files: usr/sbin/pkcs11-tokensdh_install: bind9utils missing files: usr/share/man/man8/pkcs11-destroy.8dh_install: bind9utils missing files: usr/share/man/man8/pkcs11-keygen.8dh_install: bind9utils missing files: usr/share/man/man8/pkcs11-list.8dh_install: bind9utils missing files: usr/share/man/man8/pkcs11-tokens.8dh_install: missing files, abortingdebian/rules:220: recipe for target 'binary-arch' failedmake: *** [binary-arch] Error 2dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Which missing files are missing?What could be this binary-arch?
Regards
Alex 

    Em Quinta-feira, 13 de Abril de 2017 18:57, Alexandre Vilarinho <acvoliveira at yahoo.com.br> escreveu:
 

 Hello all
I've compiled the debian/rules files with the following modifications:
 ./configure --prefix=/usr \        --mandir=\$${prefix}/share/man \        --infodir=\$${prefix}/share/info \        --sysconfdir=/etc/bind \        --localstatedir=/var/run/bind \        --enable-threads \        --with-libtool \        --enable-shared \        --enable-static \        --with-openssl=/usr \        --with-gnu-ld \        --enable-ipv6 \     —-enable-ipv4 \        --with-dlz-mysql=yes \  --with-dlz-filesystem=yes \  --with-dlz-stub=yes 
When a started to build the package the following erro presented
dpkg-checkbuilddeps: error: Unmet build dependencies: dh-exec

How do It get this dependency?
Regards
Alex
 

    Em Segunda-feira, 10 de Abril de 2017 12:38, Alexandre Vilarinho <acvoliveira at yahoo.com.br> escreveu:
 

 It worked, thanks.
Regards
Alex 

    Em Segunda-feira, 10 de Abril de 2017 12:22, Nish Aravamudan <nish.aravamudan at canonical.com> escreveu:
 

 On 08.04.2017 [04:23:06 +0000], Alexandre Vilarinho wrote:
> Hello all
> I'm trying to get the source file for bind9, so I can compile it to support MySQL, but when I run the following command I get an error informing that the source code wasn't found.
> root at Linux-Services-Server:/usr/local/src/bind9# apt-get build-dep bind9Reading package lists... DoneE: Unable to find a source package for bind9
> root at Linux-Services-Server:/usr/local/src/bind9# apt-get source bind9Reading package lists... DoneE: Unable to find a source package for bind9root at Linux-Services-Server:/usr/local/src/bind9# 

Do you have any deb-src lines in /etc/apt/sources.list?

Alternatively, use `pull-lp-source` as Mathieu said.

-Nish

-- 
Nishanth Aravamudan
Ubuntu Server
Canonical Ltd


   

   

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20170413/54d345e1/attachment.html>


More information about the Ubuntu-devel-discuss mailing list