Skip to content
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

Working debian build system #777

Merged
merged 8 commits into from
May 17, 2013
Merged

Conversation

cmouse
Copy link
Contributor

@cmouse cmouse commented May 7, 2013

No description provided.

@zeha
Copy link
Collaborator

zeha commented May 13, 2013

 /bin/mkdir -p '/home/ch/Source/powerdns/debian/tmp/usr/share/man/man8'
 /usr/bin/install -c -m 644 pdns/docs/dnsreplay.8 pdns/docs/dnsscope.8 pdns/docs/dnswasher.8 pdns/docs/pdns_control.8 pdns/docs/pdnssec.8 pdns/docs/pdns_server.8 pdns/docs/zone2ldap.8 pdns/docs/zone2sql.8 '/home/ch/Source/powerdns/debian/tmp/usr/share/man/man8'
make[3]: Leaving directory `/home/ch/Source/powerdns'
make[2]: Leaving directory `/home/ch/Source/powerdns'
make[1]: Leaving directory `/home/ch/Source/powerdns'
   dh_install -O--with-autotools_dev -O--parallel
cp: cannot stat `./pdns/docs/html/about.html': No such file or directory
dh_install: cp -a ./pdns/docs/html/about.html debian/pdns-doc/usr/share/doc/pdns-3.2// returned exit code 1
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
dpkg-buildpackage  293.00s user 21.84s system 94% cpu 5:33.08 total

Full build log: https://gist.github.com/zeha/5566951

@zeha
Copy link
Collaborator

zeha commented May 13, 2013

Minimal stuff to get docs to build:
https://gist.github.com/5567174

@zeha
Copy link
Collaborator

zeha commented May 13, 2013

Further Build-Depends for building in a clean chroot, giving up for now (-> likely incomplete):

diff --git a/debian/control b/debian/control
index e4f2321..117c2ea 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: net
 Priority: extra
 Standards-Version: 3.5.8
 Maintainer: bert hubert <bert.hubert@netherlabs.nl>
-Build-Depends: autoconf, libtool, flex, bison, docbook-utils, libmysqlclient-dev, postgresql-dev | libpq-dev, libgdbm-dev, libsqlite3-dev, dpkg-dev (>= 1.10.17), libboost-dev (>=1.34), libboost-program-options-dev, libboost-serialization-dev, pkg-config, ragel, libbotan1.10-dev, liblua5.1-dev
+Build-Depends: debhelper (>= 5), autotools-dev, autoconf, automake, dpkg-dev (>= 1.10.17), libtool, flex, bison, docbook-utils, libmysqlclient-dev, postgresql-dev | libpq-dev, libgdbm-dev, libsqlite3-dev, libboost-dev (>=1.34), libboost-program-options-dev, libboost-serialization-dev, pkg-config, ragel, libbotan1.10-dev, liblua5.1-dev, dblatex, libcrypto++-dev

 Package: pdns-server
 Architecture: any

@zeha
Copy link
Collaborator

zeha commented May 13, 2013

% lintian -EI pdns*dsc
W: pdns source: native-package-with-dash-version
W: pdns source: debhelper-but-no-misc-depends pdns-server
W: pdns source: debhelper-but-no-misc-depends pdns-doc
W: pdns source: debhelper-but-no-misc-depends pdns-server-dbg
W: pdns source: dbg-package-missing-depends pdns-server-dbg
E: pdns source: not-using-po-debconf
W: pdns source: ancient-standards-version 3.5.8 (current is 3.9.4)

@cmouse
Copy link
Contributor Author

cmouse commented May 14, 2013

Usage so far:

make a fresh git repository and then run

git archive -o ../pdns_3.2.orig.tar.gz --prefix pdns-3.2/ HEAD
dpkg-buildpackage

This should result in packages. You can use dpkg-buildpackage -b to skip the git archive phase to produce just binaries. Also, running with env STATIC=1 dpkg-buildpackage -b should generate semistatic package

@zeha
Copy link
Collaborator

zeha commented May 17, 2013

standard build works for me now; didn't try the STATIC build yet.
There are a few things that could/should be improved, but I guess they can wait.

Habbie added a commit that referenced this pull request May 17, 2013
@Habbie Habbie merged commit 1f258a5 into PowerDNS:master May 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants